From f7085ebbcc7947e1d690671e477aa4da17a3e347 Mon Sep 17 00:00:00 2001
From: lj1412
+ * The following features are supported:
+ *
+ *
+ *
+ * If the meaning of the 'Number Of Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Requests' attribute. + * @see #setNumberOfRequests(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getApi_NumberOfRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.Api#getNumberOfRequests Number Of Requests}' attribute. + * + * + * @param value the new value of the 'Number Of Requests' attribute. + * @see #getNumberOfRequests() + * @generated + */ + void setNumberOfRequests(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the 'Number Of Error Requests' attribute. + * + *+ * If the meaning of the 'Number Of Error Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Error Requests' attribute. + * @see #setNumberOfErrorRequests(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getApi_NumberOfErrorRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfErrorRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.Api#getNumberOfErrorRequests Number Of Error Requests}' attribute. + * + * + * @param value the new value of the 'Number Of Error Requests' attribute. + * @see #getNumberOfErrorRequests() + * @generated + */ + void setNumberOfErrorRequests(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the 'Number Of Completed Requests' attribute. + * + *+ * If the meaning of the 'Number Of Completed Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Completed Requests' attribute. + * @see #setNumberOfCompletedRequests(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getApi_NumberOfCompletedRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfCompletedRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.Api#getNumberOfCompletedRequests Number Of Completed Requests}' attribute. + * + * + * @param value the new value of the 'Number Of Completed Requests' attribute. + * @see #getNumberOfCompletedRequests() + * @generated + */ + void setNumberOfCompletedRequests(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the 'Outstanding Requests' attribute. + * + *+ * If the meaning of the 'Outstanding Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Outstanding Requests' attribute. + * @see #setOutstandingRequests(LongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getApi_OutstandingRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.LongMetricAttribute" + * @generated + */ + LongMetricAttribute getOutstandingRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.Api#getOutstandingRequests Outstanding Requests}' attribute. + * + * + * @param value the new value of the 'Outstanding Requests' attribute. + * @see #getOutstandingRequests() + * @generated + */ + void setOutstandingRequests(LongMetricAttribute value); + + /** + * Returns the value of the 'Last Request Duration' attribute. + * + *+ * If the meaning of the 'Last Request Duration' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Last Request Duration' attribute. + * @see #setLastRequestDuration(LongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getApi_LastRequestDuration() + * @model unique="false" dataType="org.openecomp.ncomp.core.LongMetricAttribute" + * @generated + */ + LongMetricAttribute getLastRequestDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.Api#getLastRequestDuration Last Request Duration}' attribute. + * + * + * @param value the new value of the 'Last Request Duration' attribute. + * @see #getLastRequestDuration() + * @generated + */ + void setLastRequestDuration(LongMetricAttribute value); + + /** + * + * + * @model unique="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Component Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Component Name' attribute. + * @see #setComponentName(String) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_ComponentName() + * @model unique="false" + * @generated + */ + String getComponentName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getComponentName Component Name}' attribute. + * + * + * @param value the new value of the 'Component Name' attribute. + * @see #getComponentName() + * @generated + */ + void setComponentName(String value); + + /** + * Returns the value of the 'Resource Path' attribute. + * + *+ * If the meaning of the 'Resource Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Resource Path' attribute. + * @see #setResourcePath(String) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_ResourcePath() + * @model unique="false" + * @generated + */ + String getResourcePath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getResourcePath Resource Path}' attribute. + * + * + * @param value the new value of the 'Resource Path' attribute. + * @see #getResourcePath() + * @generated + */ + void setResourcePath(String value); + + /** + * Returns the value of the 'Transaction Id' attribute. + * + *+ * If the meaning of the 'Transaction Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Transaction Id' attribute. + * @see #setTransactionId(String) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_TransactionId() + * @model unique="false" + * @generated + */ + String getTransactionId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getTransactionId Transaction Id}' attribute. + * + * + * @param value the new value of the 'Transaction Id' attribute. + * @see #getTransactionId() + * @generated + */ + void setTransactionId(String value); + + /** + * Returns the value of the 'Parent Transaction Id' attribute. + * + *+ * If the meaning of the 'Parent Transaction Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Parent Transaction Id' attribute. + * @see #setParentTransactionId(String) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_ParentTransactionId() + * @model unique="false" + * @generated + */ + String getParentTransactionId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getParentTransactionId Parent Transaction Id}' attribute. + * + * + * @param value the new value of the 'Parent Transaction Id' attribute. + * @see #getParentTransactionId() + * @generated + */ + void setParentTransactionId(String value); + + /** + * Returns the value of the 'Action' attribute. + * + *+ * If the meaning of the 'Action' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Action' attribute. + * @see #setAction(String) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_Action() + * @model unique="false" + * @generated + */ + String getAction(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getAction Action}' attribute. + * + * + * @param value the new value of the 'Action' attribute. + * @see #getAction() + * @generated + */ + void setAction(String value); + + /** + * Returns the value of the 'Duration' attribute. + * + *+ * If the meaning of the 'Duration' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Duration' attribute. + * @see #setDuration(Long) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_Duration() + * @model unique="false" + * @generated + */ + Long getDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getDuration Duration}' attribute. + * + * + * @param value the new value of the 'Duration' attribute. + * @see #getDuration() + * @generated + */ + void setDuration(Long value); + + /** + * Returns the value of the 'Status' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.component.ApiRequestStatus}. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see org.openecomp.ncomp.component.ApiRequestStatus + * @see #setStatus(ApiRequestStatus) + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequest_Status() + * @model unique="false" + * @generated + */ + ApiRequestStatus getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ApiRequest#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see org.openecomp.ncomp.component.ApiRequestStatus + * @see #getStatus() + * @generated + */ + void setStatus(ApiRequestStatus value); + +} // ApiRequest diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ApiRequestStatus.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ApiRequestStatus.java new file mode 100644 index 0000000..59df9b1 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ApiRequestStatus.java @@ -0,0 +1,278 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.component; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Api Request Status', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.component.ComponentPackage#getApiRequestStatus() + * @model + * @generated + */ +public enum ApiRequestStatus implements Enumerator { + /** + * The 'OKAY' literal object. + * + * + * @see #OKAY_VALUE + * @generated + * @ordered + */ + OKAY(0, "OKAY", "OKAY"), + + /** + * The 'ERROR' literal object. + * + * + * @see #ERROR_VALUE + * @generated + * @ordered + */ + ERROR(0, "ERROR", "ERROR"), + + /** + * The 'INPROGRESS' literal object. + * + * + * @see #INPROGRESS_VALUE + * @generated + * @ordered + */ + INPROGRESS(0, "INPROGRESS", "INPROGRESS"), /** + * The 'START' literal object. + * + * + * @see #START_VALUE + * @generated + * @ordered + */ + START(0, "START", "START"); + + /** + * The 'OKAY' literal value. + * + *+ * If the meaning of 'OKAY' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OKAY + * @model + * @generated + * @ordered + */ + public static final int OKAY_VALUE = 0; + + /** + * The 'ERROR' literal value. + * + *+ * If the meaning of 'ERROR' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #ERROR + * @model + * @generated + * @ordered + */ + public static final int ERROR_VALUE = 0; + + /** + * The 'INPROGRESS' literal value. + * + *+ * If the meaning of 'INPROGRESS' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #INPROGRESS + * @model + * @generated + * @ordered + */ + public static final int INPROGRESS_VALUE = 0; + + /** + * The 'START' literal value. + * + *+ * If the meaning of 'START' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #START + * @model + * @generated + * @ordered + */ + public static final int START_VALUE = 0; + + /** + * An array of all the 'Api Request Status' enumerators. + * + * + * @generated + */ + private static final ApiRequestStatus[] VALUES_ARRAY = + new ApiRequestStatus[] { + OKAY, + ERROR, + INPROGRESS, + START, + }; + + /** + * A public read-only list of all the 'Api Request Status' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Classes' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Classes' containment reference list. + * @see org.openecomp.ncomp.component.ComponentPackage#getComponent_Classes() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Drools Runtimes' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Drools Runtimes' containment reference list. + * @see org.openecomp.ncomp.component.ComponentPackage#getComponent_DroolsRuntimes() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Apis' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Apis' containment reference list. + * @see org.openecomp.ncomp.component.ComponentPackage#getComponentClass_Apis() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Number Of Resources' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Resources' attribute. + * @see #setNumberOfResources(LongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getComponentClass_NumberOfResources() + * @model unique="false" dataType="org.openecomp.ncomp.core.LongMetricAttribute" + * @generated + */ + LongMetricAttribute getNumberOfResources(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ComponentClass#getNumberOfResources Number Of Resources}' attribute. + * + * + * @param value the new value of the 'Number Of Resources' attribute. + * @see #getNumberOfResources() + * @generated + */ + void setNumberOfResources(LongMetricAttribute value); + + /** + * Returns the value of the 'Number Of Update Requests' attribute. + * + *+ * If the meaning of the 'Number Of Update Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Update Requests' attribute. + * @see #setNumberOfUpdateRequests(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getComponentClass_NumberOfUpdateRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfUpdateRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ComponentClass#getNumberOfUpdateRequests Number Of Update Requests}' attribute. + * + * + * @param value the new value of the 'Number Of Update Requests' attribute. + * @see #getNumberOfUpdateRequests() + * @generated + */ + void setNumberOfUpdateRequests(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the 'Number Of Create Requests' attribute. + * + *+ * If the meaning of the 'Number Of Create Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Create Requests' attribute. + * @see #setNumberOfCreateRequests(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getComponentClass_NumberOfCreateRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfCreateRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ComponentClass#getNumberOfCreateRequests Number Of Create Requests}' attribute. + * + * + * @param value the new value of the 'Number Of Create Requests' attribute. + * @see #getNumberOfCreateRequests() + * @generated + */ + void setNumberOfCreateRequests(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the 'Number Of Delete Requests' attribute. + * + *+ * If the meaning of the 'Number Of Delete Requests' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Delete Requests' attribute. + * @see #setNumberOfDeleteRequests(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getComponentClass_NumberOfDeleteRequests() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfDeleteRequests(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.ComponentClass#getNumberOfDeleteRequests Number Of Delete Requests}' attribute. + * + * + * @param value the new value of the 'Number Of Delete Requests' attribute. + * @see #getNumberOfDeleteRequests() + * @generated + */ + void setNumberOfDeleteRequests(IncreasingULongMetricAttribute value); + +} // ComponentClass diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ComponentFactory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ComponentFactory.java new file mode 100644 index 0000000..6781364 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ComponentFactory.java @@ -0,0 +1,108 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.component; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.component.ComponentPackage + * @generated + */ +public interface ComponentFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ComponentFactory eINSTANCE = org.openecomp.ncomp.component.impl.ComponentFactoryImpl.init(); + + /** + * Returns a new object of class 'Component'. + * + * + * @return a new object of class 'Component'. + * @generated + */ + Component createComponent(); + + /** + * Returns a new object of class 'Class'. + * + * + * @return a new object of class 'Class'. + * @generated + */ + ComponentClass createComponentClass(); + + /** + * Returns a new object of class 'Api'. + * + * + * @return a new object of class 'Api'. + * @generated + */ + Api createApi(); + + /** + * Returns a new object of class 'Api Request'. + * + * + * @return a new object of class 'Api Request'. + * @generated + */ + ApiRequest createApiRequest(); + + /** + * Returns a new object of class 'Drools Runtime'. + * + * + * @return a new object of class 'Drools Runtime'. + * @generated + */ + DroolsRuntime createDroolsRuntime(); + + /** + * Returns a new object of class 'Drools Rule'. + * + * + * @return a new object of class 'Drools Rule'. + * @generated + */ + DroolsRule createDroolsRule(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ComponentPackage getComponentPackage(); + +} //ComponentFactory diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ComponentPackage.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ComponentPackage.java new file mode 100644 index 0000000..5202b63 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/ComponentPackage.java @@ -0,0 +1,1253 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.component; + +import org.openecomp.ncomp.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * If the meaning of 'INSERTED' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #INSERTED + * @model + * @generated + * @ordered + */ + public static final int INSERTED_VALUE = 0; + + /** + * The 'DELETED' literal value. + * + *+ * If the meaning of 'DELETED' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DELETED + * @model + * @generated + * @ordered + */ + public static final int DELETED_VALUE = 0; + + /** + * The 'UPDATED' literal value. + * + *+ * If the meaning of 'UPDATED' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UPDATED + * @model + * @generated + * @ordered + */ + public static final int UPDATED_VALUE = 0; + + /** + * An array of all the 'Drools Object Change' enumerators. + * + * + * @generated + */ + private static final DroolsObjectChange[] VALUES_ARRAY = + new DroolsObjectChange[] { + INSERTED, + DELETED, + UPDATED, + }; + + /** + * A public read-only list of all the 'Drools Object Change' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Number Of Fires' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Fires' attribute. + * @see #setNumberOfFires(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.component.ComponentPackage#getDroolsRule_NumberOfFires() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumberOfFires(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.component.DroolsRule#getNumberOfFires Number Of Fires}' attribute. + * + * + * @param value the new value of the 'Number Of Fires' attribute. + * @see #getNumberOfFires() + * @generated + */ + void setNumberOfFires(IncreasingULongMetricAttribute value); + +} // DroolsRule diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/DroolsRuntime.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/DroolsRuntime.java new file mode 100644 index 0000000..4fa94a8 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/DroolsRuntime.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.component; + +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Drools Runtime'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rules' containment reference list. + * @see org.openecomp.ncomp.component.ComponentPackage#getDroolsRuntime_Rules() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Sub Resources' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Sub Resources' containment reference list. + * @see org.openecomp.ncomp.component.ComponentPackage#getResource_SubResources() + * @model containment="true" + * @generated + */ + EList+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.component.ComponentPackage#eNS_URI + * @see #init() + * @generated + */ + private ComponentPackageImpl() { + super(eNS_URI, ComponentFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link ComponentPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ComponentPackage init() { + if (isInited) return (ComponentPackage)EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); + + // Obtain or create and register package + ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ComponentPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theComponentPackage.createPackageContents(); + + // Initialize created meta-data + theComponentPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theComponentPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ComponentPackage.eNS_URI, theComponentPackage); + return theComponentPackage; + } + + /** + * + * + * @generated + */ + public EClass getComponent() { + return componentEClass; + } + + /** + * + * + * @generated + */ + public EReference getComponent_Classes() { + return (EReference)componentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getComponent_DroolsRuntimes() { + return (EReference)componentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getComponentClass() { + return componentClassEClass; + } + + /** + * + * + * @generated + */ + public EReference getComponentClass_Apis() { + return (EReference)componentClassEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getComponentClass_NumberOfResources() { + return (EAttribute)componentClassEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getComponentClass_NumberOfUpdateRequests() { + return (EAttribute)componentClassEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getComponentClass_NumberOfCreateRequests() { + return (EAttribute)componentClassEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getComponentClass_NumberOfDeleteRequests() { + return (EAttribute)componentClassEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getApi() { + return apiEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getApi_NumberOfRequests() { + return (EAttribute)apiEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getApi_NumberOfErrorRequests() { + return (EAttribute)apiEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getApi_NumberOfCompletedRequests() { + return (EAttribute)apiEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getApi_OutstandingRequests() { + return (EAttribute)apiEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getApi_LastRequestDuration() { + return (EAttribute)apiEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getApi__CurrentRequests() { + return apiEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EClass getApiRequest() { + return apiRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_ComponentName() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_ResourcePath() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_TransactionId() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_ParentTransactionId() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_Action() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_Duration() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getApiRequest_Status() { + return (EAttribute)apiRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getDroolsRuntime() { + return droolsRuntimeEClass; + } + + /** + * + * + * @generated + */ + public EReference getDroolsRuntime_Rules() { + return (EReference)droolsRuntimeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getDroolsRule() { + return droolsRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDroolsRule_NumberOfFires() { + return (EAttribute)droolsRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getApiRequestStatus() { + return apiRequestStatusEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getDroolsObjectChange() { + return droolsObjectChangeEEnum; + } + + /** + * + * + * @generated + */ + public ComponentFactory getComponentFactory() { + return (ComponentFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + componentEClass = createEClass(COMPONENT); + createEReference(componentEClass, COMPONENT__CLASSES); + createEReference(componentEClass, COMPONENT__DROOLS_RUNTIMES); + + componentClassEClass = createEClass(COMPONENT_CLASS); + createEReference(componentClassEClass, COMPONENT_CLASS__APIS); + createEAttribute(componentClassEClass, COMPONENT_CLASS__NUMBER_OF_RESOURCES); + createEAttribute(componentClassEClass, COMPONENT_CLASS__NUMBER_OF_UPDATE_REQUESTS); + createEAttribute(componentClassEClass, COMPONENT_CLASS__NUMBER_OF_CREATE_REQUESTS); + createEAttribute(componentClassEClass, COMPONENT_CLASS__NUMBER_OF_DELETE_REQUESTS); + + apiEClass = createEClass(API); + createEAttribute(apiEClass, API__NUMBER_OF_REQUESTS); + createEAttribute(apiEClass, API__NUMBER_OF_ERROR_REQUESTS); + createEAttribute(apiEClass, API__NUMBER_OF_COMPLETED_REQUESTS); + createEAttribute(apiEClass, API__OUTSTANDING_REQUESTS); + createEAttribute(apiEClass, API__LAST_REQUEST_DURATION); + createEOperation(apiEClass, API___CURRENT_REQUESTS); + + apiRequestEClass = createEClass(API_REQUEST); + createEAttribute(apiRequestEClass, API_REQUEST__COMPONENT_NAME); + createEAttribute(apiRequestEClass, API_REQUEST__RESOURCE_PATH); + createEAttribute(apiRequestEClass, API_REQUEST__TRANSACTION_ID); + createEAttribute(apiRequestEClass, API_REQUEST__PARENT_TRANSACTION_ID); + createEAttribute(apiRequestEClass, API_REQUEST__ACTION); + createEAttribute(apiRequestEClass, API_REQUEST__DURATION); + createEAttribute(apiRequestEClass, API_REQUEST__STATUS); + + droolsRuntimeEClass = createEClass(DROOLS_RUNTIME); + createEReference(droolsRuntimeEClass, DROOLS_RUNTIME__RULES); + + droolsRuleEClass = createEClass(DROOLS_RULE); + createEAttribute(droolsRuleEClass, DROOLS_RULE__NUMBER_OF_FIRES); + + // Create enums + apiRequestStatusEEnum = createEEnum(API_REQUEST_STATUS); + droolsObjectChangeEEnum = createEEnum(DROOLS_OBJECT_CHANGE); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + componentEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + componentClassEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + apiEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + apiRequestEClass.getESuperTypes().add(theCorePackage.getEvent()); + droolsRuntimeEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + droolsRuleEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getComponent_Classes(), this.getComponentClass(), null, "classes", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getComponent_DroolsRuntimes(), this.getDroolsRuntime(), null, "droolsRuntimes", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(componentClassEClass, ComponentClass.class, "ComponentClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getComponentClass_Apis(), this.getApi(), null, "apis", null, 0, -1, ComponentClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getComponentClass_NumberOfResources(), theCorePackage.getLongMetricAttribute(), "numberOfResources", null, 0, 1, ComponentClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getComponentClass_NumberOfUpdateRequests(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfUpdateRequests", null, 0, 1, ComponentClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getComponentClass_NumberOfCreateRequests(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfCreateRequests", null, 0, 1, ComponentClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getComponentClass_NumberOfDeleteRequests(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfDeleteRequests", null, 0, 1, ComponentClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(apiEClass, Api.class, "Api", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getApi_NumberOfRequests(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfRequests", null, 0, 1, Api.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApi_NumberOfErrorRequests(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfErrorRequests", null, 0, 1, Api.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApi_NumberOfCompletedRequests(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfCompletedRequests", null, 0, 1, Api.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApi_OutstandingRequests(), theCorePackage.getLongMetricAttribute(), "outstandingRequests", null, 0, 1, Api.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApi_LastRequestDuration(), theCorePackage.getLongMetricAttribute(), "lastRequestDuration", null, 0, 1, Api.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getApi__CurrentRequests(), this.getApiRequest(), "currentRequests", 0, -1, !IS_UNIQUE, IS_ORDERED); + + initEClass(apiRequestEClass, ApiRequest.class, "ApiRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getApiRequest_ComponentName(), theEcorePackage.getEString(), "componentName", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiRequest_ResourcePath(), theEcorePackage.getEString(), "resourcePath", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiRequest_TransactionId(), theEcorePackage.getEString(), "transactionId", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiRequest_ParentTransactionId(), theEcorePackage.getEString(), "parentTransactionId", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiRequest_Action(), theEcorePackage.getEString(), "action", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiRequest_Duration(), theEcorePackage.getELongObject(), "duration", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiRequest_Status(), this.getApiRequestStatus(), "status", null, 0, 1, ApiRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(droolsRuntimeEClass, DroolsRuntime.class, "DroolsRuntime", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDroolsRuntime_Rules(), this.getDroolsRule(), null, "rules", null, 0, -1, DroolsRuntime.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(droolsRuleEClass, DroolsRule.class, "DroolsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDroolsRule_NumberOfFires(), theCorePackage.getIncreasingULongMetricAttribute(), "numberOfFires", null, 0, 1, DroolsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(apiRequestStatusEEnum, ApiRequestStatus.class, "ApiRequestStatus"); + addEEnumLiteral(apiRequestStatusEEnum, ApiRequestStatus.OKAY); + addEEnumLiteral(apiRequestStatusEEnum, ApiRequestStatus.ERROR); + addEEnumLiteral(apiRequestStatusEEnum, ApiRequestStatus.INPROGRESS); + addEEnumLiteral(apiRequestStatusEEnum, ApiRequestStatus.START); + + initEEnum(droolsObjectChangeEEnum, DroolsObjectChange.class, "DroolsObjectChange"); + addEEnumLiteral(droolsObjectChangeEEnum, DroolsObjectChange.INSERTED); + addEEnumLiteral(droolsObjectChangeEEnum, DroolsObjectChange.DELETED); + addEEnumLiteral(droolsObjectChangeEEnum, DroolsObjectChange.UPDATED); + + // Create resource + createResource(eNS_URI); + } + +} //ComponentPackageImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/impl/DroolsRuleImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/impl/DroolsRuleImpl.java new file mode 100644 index 0000000..ba07a54 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/impl/DroolsRuleImpl.java @@ -0,0 +1,187 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.component.impl; + +import org.openecomp.ncomp.component.ComponentPackage; +import org.openecomp.ncomp.component.DroolsRule; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Drools Rule'. + * + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.component.ComponentPackage
+ * @generated
+ */
+public class ComponentAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static ComponentPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public ComponentAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ComponentPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected ComponentSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.component.Component Component}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.component.Component
+ * @generated
+ */
+ public Adapter createComponentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.component.ComponentClass Class}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.component.ComponentClass
+ * @generated
+ */
+ public Adapter createComponentClassAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.component.Api Api}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.component.Api
+ * @generated
+ */
+ public Adapter createApiAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.component.ApiRequest Api Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.component.ApiRequest
+ * @generated
+ */
+ public Adapter createApiRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.component.DroolsRuntime Drools Runtime}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.component.DroolsRuntime
+ * @generated
+ */
+ public Adapter createDroolsRuntimeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.component.DroolsRule Drools Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.component.DroolsRule
+ * @generated
+ */
+ public Adapter createDroolsRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.Event Event}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.Event
+ * @generated
+ */
+ public Adapter createEventAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //ComponentAdapterFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/util/ComponentSwitch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/util/ComponentSwitch.java
new file mode 100644
index 0000000..ba62bce
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/component/util/ComponentSwitch.java
@@ -0,0 +1,275 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.component.util;
+
+import org.openecomp.ncomp.component.*;
+
+import org.openecomp.ncomp.core.Event;
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.component.ComponentPackage
+ * @generated
+ */
+public class ComponentSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case ComponentPackage.COMPONENT: {
+ Component component = (Component)theEObject;
+ T result = caseComponent(component);
+ if (result == null) result = caseNamedEntity(component);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComponentPackage.COMPONENT_CLASS: {
+ ComponentClass componentClass = (ComponentClass)theEObject;
+ T result = caseComponentClass(componentClass);
+ if (result == null) result = caseNamedEntity(componentClass);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComponentPackage.API: {
+ Api api = (Api)theEObject;
+ T result = caseApi(api);
+ if (result == null) result = caseNamedEntity(api);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComponentPackage.API_REQUEST: {
+ ApiRequest apiRequest = (ApiRequest)theEObject;
+ T result = caseApiRequest(apiRequest);
+ if (result == null) result = caseEvent(apiRequest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComponentPackage.DROOLS_RUNTIME: {
+ DroolsRuntime droolsRuntime = (DroolsRuntime)theEObject;
+ T result = caseDroolsRuntime(droolsRuntime);
+ if (result == null) result = caseNamedEntity(droolsRuntime);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComponentPackage.DROOLS_RULE: {
+ DroolsRule droolsRule = (DroolsRule)theEObject;
+ T result = caseDroolsRule(droolsRule);
+ if (result == null) result = caseNamedEntity(droolsRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Component'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Component'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseComponent(Component object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Class'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Class'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseComponentClass(ComponentClass object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Api'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Api'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseApi(Api object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Api Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Api Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseApiRequest(ApiRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Drools Runtime'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Drools Runtime'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDroolsRuntime(DroolsRuntime object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Drools Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Drools Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDroolsRule(DroolsRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Event'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Event'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEvent(Event object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //ComponentSwitch
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/.gitignore b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/.gitignore
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/.gitignore
@@ -0,0 +1 @@
+
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/CoreFactory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/CoreFactory.java
new file mode 100644
index 0000000..c3369fd
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/CoreFactory.java
@@ -0,0 +1,63 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ *
+ * The Factory for the model.
+ * It provides a create method for each non-abstract class of the model.
+ *
+ * @see org.openecomp.ncomp.core.CorePackage
+ * @generated
+ */
+public interface CoreFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ CoreFactory eINSTANCE = org.openecomp.ncomp.core.impl.CoreFactoryImpl.init();
+
+ /**
+ * Returns a new object of class 'User'.
+ *
+ *
+ * @return a new object of class 'User'.
+ * @generated
+ */
+ User createUser();
+
+ /**
+ * Returns the package supported by this factory.
+ *
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ CorePackage getCorePackage();
+
+} //CoreFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/CorePackage.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/CorePackage.java
new file mode 100644
index 0000000..7ae2807
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/CorePackage.java
@@ -0,0 +1,816 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+/**
+ *
+ * The Package for the model.
+ * It contains accessors for the meta objects to represent
+ * + * If the meaning of 'UNDEPLOYED' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNDEPLOYED + * @model + * @generated + * @ordered + */ + public static final int UNDEPLOYED_VALUE = 0; + + /** + * The 'DEPLOYED' literal value. + * + *+ * If the meaning of 'DEPLOYED' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DEPLOYED + * @model + * @generated + * @ordered + */ + public static final int DEPLOYED_VALUE = 0; + + /** + * The 'DEPLOYED PARTIALLY' literal value. + * + *+ * If the meaning of 'DEPLOYED PARTIALLY' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DEPLOYED_PARTIALLY + * @model + * @generated + * @ordered + */ + public static final int DEPLOYED_PARTIALLY_VALUE = 0; + + /** + * The 'DEPLOYED ERRORS' literal value. + * + *+ * If the meaning of 'DEPLOYED ERRORS' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DEPLOYED_ERRORS + * @model + * @generated + * @ordered + */ + public static final int DEPLOYED_ERRORS_VALUE = 0; + + /** + * An array of all the 'Deployment Status' enumerators. + * + * + * @generated + */ + private static final DeploymentStatus[] VALUES_ARRAY = + new DeploymentStatus[] { + UNDEPLOYED, + DEPLOYED, + DEPLOYED_PARTIALLY, + DEPLOYED_ERRORS, + }; + + /** + * A public read-only list of all the 'Deployment Status' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Operational State' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Operational State' attribute. + * @see org.openecomp.ncomp.core.OperationalState + * @see #setOperationalState(OperationalState) + * @see org.openecomp.ncomp.core.CorePackage#getHasOperationalState_OperationalState() + * @model unique="false" + * @generated + */ + OperationalState getOperationalState(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.HasOperationalState#getOperationalState Operational State}' attribute. + * + * + * @param value the new value of the 'Operational State' attribute. + * @see org.openecomp.ncomp.core.OperationalState + * @see #getOperationalState() + * @generated + */ + void setOperationalState(OperationalState value); + +} // HasOperationalState diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/LogLevel.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/LogLevel.java new file mode 100644 index 0000000..b25a2a2 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/LogLevel.java @@ -0,0 +1,358 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Log Level', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.core.CorePackage#getLogLevel() + * @model + * @generated + */ +public enum LogLevel implements Enumerator { + /** + * The 'UNKNOWN' literal object. + * + * + * @see #UNKNOWN_VALUE + * @generated + * @ordered + */ + UNKNOWN(0, "UNKNOWN", "UNKNOWN"), + + /** + * The 'TRACE' literal object. + * + * + * @see #TRACE_VALUE + * @generated + * @ordered + */ + TRACE(0, "TRACE", "TRACE"), + + /** + * The 'DEBUG' literal object. + * + * + * @see #DEBUG_VALUE + * @generated + * @ordered + */ + DEBUG(0, "DEBUG", "DEBUG"), + + /** + * The 'INFO' literal object. + * + * + * @see #INFO_VALUE + * @generated + * @ordered + */ + INFO(0, "INFO", "INFO"), + + /** + * The 'WARN' literal object. + * + * + * @see #WARN_VALUE + * @generated + * @ordered + */ + WARN(0, "WARN", "WARN"), + + /** + * The 'ERROR' literal object. + * + * + * @see #ERROR_VALUE + * @generated + * @ordered + */ + ERROR(0, "ERROR", "ERROR"), + + /** + * The 'FATAL' literal object. + * + * + * @see #FATAL_VALUE + * @generated + * @ordered + */ + FATAL(0, "FATAL", "FATAL"); + + /** + * The 'UNKNOWN' literal value. + * + *+ * If the meaning of 'UNKNOWN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNKNOWN + * @model + * @generated + * @ordered + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * The 'TRACE' literal value. + * + *+ * If the meaning of 'TRACE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TRACE + * @model + * @generated + * @ordered + */ + public static final int TRACE_VALUE = 0; + + /** + * The 'DEBUG' literal value. + * + *+ * If the meaning of 'DEBUG' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DEBUG + * @model + * @generated + * @ordered + */ + public static final int DEBUG_VALUE = 0; + + /** + * The 'INFO' literal value. + * + *+ * If the meaning of 'INFO' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #INFO + * @model + * @generated + * @ordered + */ + public static final int INFO_VALUE = 0; + + /** + * The 'WARN' literal value. + * + *+ * If the meaning of 'WARN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #WARN + * @model + * @generated + * @ordered + */ + public static final int WARN_VALUE = 0; + + /** + * The 'ERROR' literal value. + * + *+ * If the meaning of 'ERROR' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #ERROR + * @model + * @generated + * @ordered + */ + public static final int ERROR_VALUE = 0; + + /** + * The 'FATAL' literal value. + * + *+ * If the meaning of 'FATAL' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FATAL + * @model + * @generated + * @ordered + */ + public static final int FATAL_VALUE = 0; + + /** + * An array of all the 'Log Level' enumerators. + * + * + * @generated + */ + private static final LogLevel[] VALUES_ARRAY = + new LogLevel[] { + UNKNOWN, + TRACE, + DEBUG, + INFO, + WARN, + ERROR, + FATAL, + }; + + /** + * A public read-only list of all the 'Log Level' enumerators. + * + * + * @generated + */ + public static final List+ * If the meaning of 'UNKNOWN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNKNOWN + * @model + * @generated + * @ordered + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * The 'SEV1' literal value. + * + *+ * If the meaning of 'SEV1' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV1 + * @model + * @generated + * @ordered + */ + public static final int SEV1_VALUE = 0; + + /** + * The 'SEV2' literal value. + * + *+ * If the meaning of 'SEV2' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV2 + * @model + * @generated + * @ordered + */ + public static final int SEV2_VALUE = 0; + + /** + * The 'SEV3' literal value. + * + *+ * If the meaning of 'SEV3' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV3 + * @model + * @generated + * @ordered + */ + public static final int SEV3_VALUE = 0; + + /** + * The 'SEV4' literal value. + * + *+ * If the meaning of 'SEV4' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV4 + * @model + * @generated + * @ordered + */ + public static final int SEV4_VALUE = 0; + + /** + * An array of all the 'Log Severity' enumerators. + * + * + * @generated + */ + private static final LogSeverity[] VALUES_ARRAY = + new LogSeverity[] { + UNKNOWN, + SEV1, + SEV2, + SEV3, + SEV4, + }; + + /** + * A public read-only list of all the 'Log Severity' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.core.CorePackage#getNamedEntity_Name() + * @model unique="false" + * annotation="http://openecomp.org type='configuration'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.NamedEntity#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Last Polled' attribute. + * + *+ * If the meaning of the 'Last Polled' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Last Polled' attribute. + * @see #setLastPolled(Date) + * @see org.openecomp.ncomp.core.CorePackage#getNamedEntity_LastPolled() + * @model unique="false" + * @generated + */ + Date getLastPolled(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.NamedEntity#getLastPolled Last Polled}' attribute. + * + * + * @param value the new value of the 'Last Polled' attribute. + * @see #getLastPolled() + * @generated + */ + void setLastPolled(Date value); + + /** + * Returns the value of the 'Last Changed' attribute. + * + *+ * If the meaning of the 'Last Changed' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Last Changed' attribute. + * @see #setLastChanged(Date) + * @see org.openecomp.ncomp.core.CorePackage#getNamedEntity_LastChanged() + * @model unique="false" + * @generated + */ + Date getLastChanged(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.NamedEntity#getLastChanged Last Changed}' attribute. + * + * + * @param value the new value of the 'Last Changed' attribute. + * @see #getLastChanged() + * @generated + */ + void setLastChanged(Date value); + + /** + * Returns the value of the 'Created' attribute. + * + *+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(Date) + * @see org.openecomp.ncomp.core.CorePackage#getNamedEntity_Created() + * @model unique="false" + * @generated + */ + Date getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.NamedEntity#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(Date value); + +} // NamedEntity diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/OperationalState.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/OperationalState.java new file mode 100644 index 0000000..ca4406e --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/OperationalState.java @@ -0,0 +1,228 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Operational State', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.core.CorePackage#getOperationalState() + * @model + * @generated + */ +public enum OperationalState implements Enumerator { + /** + * The 'OPERATIONAL' literal object. + * + * + * @see #OPERATIONAL_VALUE + * @generated + * @ordered + */ + OPERATIONAL(0, "OPERATIONAL", "OPERATIONAL"), + + /** + * The 'SUSPENDED' literal object. + * + * + * @see #SUSPENDED_VALUE + * @generated + * @ordered + */ + SUSPENDED(0, "SUSPENDED", "SUSPENDED"); + + /** + * The 'OPERATIONAL' literal value. + * + *+ * If the meaning of 'OPERATIONAL' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OPERATIONAL + * @model + * @generated + * @ordered + */ + public static final int OPERATIONAL_VALUE = 0; + + /** + * The 'SUSPENDED' literal value. + * + *+ * If the meaning of 'SUSPENDED' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SUSPENDED + * @model + * @generated + * @ordered + */ + public static final int SUSPENDED_VALUE = 0; + + /** + * An array of all the 'Operational State' enumerators. + * + * + * @generated + */ + private static final OperationalState[] VALUES_ARRAY = + new OperationalState[] { + OPERATIONAL, + SUSPENDED, + }; + + /** + * A public read-only list of all the 'Operational State' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Public Key' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Public Key' attribute. + * @see #setPublicKey(String) + * @see org.openecomp.ncomp.core.CorePackage#getUser_PublicKey() + * @model unique="false" + * @generated + */ + String getPublicKey(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.User#getPublicKey Public Key}' attribute. + * + * + * @param value the new value of the 'Public Key' attribute. + * @see #getPublicKey() + * @generated + */ + void setPublicKey(String value); + + /** + * Returns the value of the 'Deployment Status' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.DeploymentStatus}. + * + *+ * If the meaning of the 'Deployment Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Deployment Status' attribute. + * @see org.openecomp.ncomp.core.DeploymentStatus + * @see #setDeploymentStatus(DeploymentStatus) + * @see org.openecomp.ncomp.core.CorePackage#getUser_DeploymentStatus() + * @model unique="false" + * @generated + */ + DeploymentStatus getDeploymentStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.User#getDeploymentStatus Deployment Status}' attribute. + * + * + * @param value the new value of the 'Deployment Status' attribute. + * @see org.openecomp.ncomp.core.DeploymentStatus + * @see #getDeploymentStatus() + * @generated + */ + void setDeploymentStatus(DeploymentStatus value); + +} // User diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/Alert.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/Alert.java new file mode 100644 index 0000000..aba8882 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/Alert.java @@ -0,0 +1,160 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts; + +import org.openecomp.ncomp.core.HasOperationalState; +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.core.logs.LogSeverity; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * + * A representation of the model object 'Alert'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #setSeverity(LogSeverity) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlert_Severity() + * @model unique="false" + * @generated + */ + LogSeverity getSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.Alert#getSeverity Severity}' attribute. + * + * + * @param value the new value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getSeverity() + * @generated + */ + void setSeverity(LogSeverity value); + + /** + * Returns the value of the 'Damping Rule' containment reference. + * + *+ * If the meaning of the 'Damping Rule' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Damping Rule' containment reference. + * @see #setDampingRule(DampingRule) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlert_DampingRule() + * @model containment="true" + * @generated + */ + DampingRule getDampingRule(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.Alert#getDampingRule Damping Rule}' containment reference. + * + * + * @param value the new value of the 'Damping Rule' containment reference. + * @see #getDampingRule() + * @generated + */ + void setDampingRule(DampingRule value); + + /** + * Returns the value of the 'Num Alerts' attribute. + * + *+ * If the meaning of the 'Num Alerts' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Num Alerts' attribute. + * @see #setNumAlerts(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlert_NumAlerts() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumAlerts(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.Alert#getNumAlerts Num Alerts}' attribute. + * + * + * @param value the new value of the 'Num Alerts' attribute. + * @see #getNumAlerts() + * @generated + */ + void setNumAlerts(IncreasingULongMetricAttribute value); + + /** + * Returns the value of the 'Num Alerts Suppressed' attribute. + * + *+ * If the meaning of the 'Num Alerts Suppressed' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Num Alerts Suppressed' attribute. + * @see #setNumAlertsSuppressed(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlert_NumAlertsSuppressed() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getNumAlertsSuppressed(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.Alert#getNumAlertsSuppressed Num Alerts Suppressed}' attribute. + * + * + * @param value the new value of the 'Num Alerts Suppressed' attribute. + * @see #getNumAlertsSuppressed() + * @generated + */ + void setNumAlertsSuppressed(IncreasingULongMetricAttribute value); + +} // Alert diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/AlertContainer.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/AlertContainer.java new file mode 100644 index 0000000..d23eeca --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/AlertContainer.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Alert Container'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Alerts' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Alerts' containment reference list. + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlertContainer_Alerts() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Alerting Template' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Alerting Template' reference. + * @see #setAlertingTemplate(AlertingTemplate) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlertContainer_AlertingTemplate() + * @model + * @generated + */ + AlertingTemplate getAlertingTemplate(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.AlertContainer#getAlertingTemplate Alerting Template}' reference. + * + * + * @param value the new value of the 'Alerting Template' reference. + * @see #getAlertingTemplate() + * @generated + */ + void setAlertingTemplate(AlertingTemplate value); + +} // AlertContainer diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/AlertingTemplate.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/AlertingTemplate.java new file mode 100644 index 0000000..6567166 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/AlertingTemplate.java @@ -0,0 +1,63 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Alerting Template'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Alerts' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Alerts' containment reference list. + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getAlertingTemplate_Alerts() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Interval' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Interval' attribute. + * @see #setInterval(String) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getMaxAlertPerInterval_Interval() + * @model unique="false" + * @generated + */ + String getInterval(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.MaxAlertPerInterval#getInterval Interval}' attribute. + * + * + * @param value the new value of the 'Interval' attribute. + * @see #getInterval() + * @generated + */ + void setInterval(String value); + + /** + * Returns the value of the 'Max Alerts' attribute. + * The default value is"1"
.
+ *
+ * + * If the meaning of the 'Max Alerts' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Max Alerts' attribute. + * @see #setMaxAlerts(int) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getMaxAlertPerInterval_MaxAlerts() + * @model default="1" unique="false" + * @generated + */ + int getMaxAlerts(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.MaxAlertPerInterval#getMaxAlerts Max Alerts}' attribute. + * + * + * @param value the new value of the 'Max Alerts' attribute. + * @see #getMaxAlerts() + * @generated + */ + void setMaxAlerts(int value); + +} // MaxAlertPerInterval diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/ThresholdAlert.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/ThresholdAlert.java new file mode 100644 index 0000000..b9b3921 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/ThresholdAlert.java @@ -0,0 +1,178 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts; + + +/** + * + * A representation of the model object 'Threshold Alert'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Metric Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metric Name' attribute. + * @see #setMetricName(String) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getThresholdAlert_MetricName() + * @model unique="false" + * @generated + */ + String getMetricName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.ThresholdAlert#getMetricName Metric Name}' attribute. + * + * + * @param value the new value of the 'Metric Name' attribute. + * @see #getMetricName() + * @generated + */ + void setMetricName(String value); + + /** + * Returns the value of the 'Lower Bound' attribute. + * + *+ * If the meaning of the 'Lower Bound' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Lower Bound' attribute. + * @see #setLowerBound(Double) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getThresholdAlert_LowerBound() + * @model unique="false" + * @generated + */ + Double getLowerBound(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.ThresholdAlert#getLowerBound Lower Bound}' attribute. + * + * + * @param value the new value of the 'Lower Bound' attribute. + * @see #getLowerBound() + * @generated + */ + void setLowerBound(Double value); + + /** + * Returns the value of the 'Upper Bound' attribute. + * + *+ * If the meaning of the 'Upper Bound' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Upper Bound' attribute. + * @see #setUpperBound(Double) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getThresholdAlert_UpperBound() + * @model unique="false" + * @generated + */ + Double getUpperBound(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.ThresholdAlert#getUpperBound Upper Bound}' attribute. + * + * + * @param value the new value of the 'Upper Bound' attribute. + * @see #getUpperBound() + * @generated + */ + void setUpperBound(Double value); + + /** + * Returns the value of the 'Duration' attribute. + * + *+ * If the meaning of the 'Duration' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Duration' attribute. + * @see #setDuration(String) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getThresholdAlert_Duration() + * @model unique="false" + * @generated + */ + String getDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.ThresholdAlert#getDuration Duration}' attribute. + * + * + * @param value the new value of the 'Duration' attribute. + * @see #getDuration() + * @generated + */ + void setDuration(String value); + + /** + * Returns the value of the 'Max Delay' attribute. + * + *+ * If the meaning of the 'Max Delay' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Max Delay' attribute. + * @see #setMaxDelay(String) + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#getThresholdAlert_MaxDelay() + * @model unique="false" + * @generated + */ + String getMaxDelay(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.alerts.ThresholdAlert#getMaxDelay Max Delay}' attribute. + * + * + * @param value the new value of the 'Max Delay' attribute. + * @see #getMaxDelay() + * @generated + */ + void setMaxDelay(String value); + +} // ThresholdAlert diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/AlertContainerImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/AlertContainerImpl.java new file mode 100644 index 0000000..109458f --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/AlertContainerImpl.java @@ -0,0 +1,236 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts.impl; + +import org.openecomp.ncomp.core.alerts.Alert; +import org.openecomp.ncomp.core.alerts.AlertContainer; +import org.openecomp.ncomp.core.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.alerts.AlertsPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Alert Container'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.core.alerts.AlertsPackage#eNS_URI + * @see #init() + * @generated + */ + private AlertsPackageImpl() { + super(eNS_URI, AlertsFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link AlertsPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static AlertsPackage init() { + if (isInited) return (AlertsPackage)EPackage.Registry.INSTANCE.getEPackage(AlertsPackage.eNS_URI); + + // Obtain or create and register package + AlertsPackageImpl theAlertsPackage = (AlertsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AlertsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AlertsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + LogsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theAlertsPackage.createPackageContents(); + + // Initialize created meta-data + theAlertsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theAlertsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(AlertsPackage.eNS_URI, theAlertsPackage); + return theAlertsPackage; + } + + /** + * + * + * @generated + */ + public EClass getAlert() { + return alertEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAlert_Severity() { + return (EAttribute)alertEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAlert_DampingRule() { + return (EReference)alertEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getAlert_NumAlerts() { + return (EAttribute)alertEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getAlert_NumAlertsSuppressed() { + return (EAttribute)alertEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getThresholdAlert() { + return thresholdAlertEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getThresholdAlert_MetricName() { + return (EAttribute)thresholdAlertEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getThresholdAlert_LowerBound() { + return (EAttribute)thresholdAlertEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getThresholdAlert_UpperBound() { + return (EAttribute)thresholdAlertEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getThresholdAlert_Duration() { + return (EAttribute)thresholdAlertEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getThresholdAlert_MaxDelay() { + return (EAttribute)thresholdAlertEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getAlertContainer() { + return alertContainerEClass; + } + + /** + * + * + * @generated + */ + public EReference getAlertContainer_Alerts() { + return (EReference)alertContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAlertContainer_AlertingTemplate() { + return (EReference)alertContainerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAlertingTemplate() { + return alertingTemplateEClass; + } + + /** + * + * + * @generated + */ + public EReference getAlertingTemplate_Alerts() { + return (EReference)alertingTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getDampingRule() { + return dampingRuleEClass; + } + + /** + * + * + * @generated + */ + public EClass getMaxAlertPerInterval() { + return maxAlertPerIntervalEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMaxAlertPerInterval_Interval() { + return (EAttribute)maxAlertPerIntervalEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMaxAlertPerInterval_MaxAlerts() { + return (EAttribute)maxAlertPerIntervalEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public AlertsFactory getAlertsFactory() { + return (AlertsFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + alertEClass = createEClass(ALERT); + createEAttribute(alertEClass, ALERT__SEVERITY); + createEReference(alertEClass, ALERT__DAMPING_RULE); + createEAttribute(alertEClass, ALERT__NUM_ALERTS); + createEAttribute(alertEClass, ALERT__NUM_ALERTS_SUPPRESSED); + + thresholdAlertEClass = createEClass(THRESHOLD_ALERT); + createEAttribute(thresholdAlertEClass, THRESHOLD_ALERT__METRIC_NAME); + createEAttribute(thresholdAlertEClass, THRESHOLD_ALERT__LOWER_BOUND); + createEAttribute(thresholdAlertEClass, THRESHOLD_ALERT__UPPER_BOUND); + createEAttribute(thresholdAlertEClass, THRESHOLD_ALERT__DURATION); + createEAttribute(thresholdAlertEClass, THRESHOLD_ALERT__MAX_DELAY); + + alertContainerEClass = createEClass(ALERT_CONTAINER); + createEReference(alertContainerEClass, ALERT_CONTAINER__ALERTS); + createEReference(alertContainerEClass, ALERT_CONTAINER__ALERTING_TEMPLATE); + + alertingTemplateEClass = createEClass(ALERTING_TEMPLATE); + createEReference(alertingTemplateEClass, ALERTING_TEMPLATE__ALERTS); + + dampingRuleEClass = createEClass(DAMPING_RULE); + + maxAlertPerIntervalEClass = createEClass(MAX_ALERT_PER_INTERVAL); + createEAttribute(maxAlertPerIntervalEClass, MAX_ALERT_PER_INTERVAL__INTERVAL); + createEAttribute(maxAlertPerIntervalEClass, MAX_ALERT_PER_INTERVAL__MAX_ALERTS); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + LogsPackage theLogsPackage = (LogsPackage)EPackage.Registry.INSTANCE.getEPackage(LogsPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + alertEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + alertEClass.getESuperTypes().add(theCorePackage.getHasOperationalState()); + thresholdAlertEClass.getESuperTypes().add(this.getAlert()); + alertingTemplateEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + maxAlertPerIntervalEClass.getESuperTypes().add(this.getDampingRule()); + + // Initialize classes, features, and operations; add parameters + initEClass(alertEClass, Alert.class, "Alert", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAlert_Severity(), theLogsPackage.getLogSeverity(), "severity", null, 0, 1, Alert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAlert_DampingRule(), this.getDampingRule(), null, "dampingRule", null, 0, 1, Alert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAlert_NumAlerts(), theCorePackage.getIncreasingULongMetricAttribute(), "numAlerts", null, 0, 1, Alert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAlert_NumAlertsSuppressed(), theCorePackage.getIncreasingULongMetricAttribute(), "numAlertsSuppressed", null, 0, 1, Alert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(thresholdAlertEClass, ThresholdAlert.class, "ThresholdAlert", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getThresholdAlert_MetricName(), theEcorePackage.getEString(), "metricName", null, 0, 1, ThresholdAlert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getThresholdAlert_LowerBound(), theEcorePackage.getEDoubleObject(), "lowerBound", null, 0, 1, ThresholdAlert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getThresholdAlert_UpperBound(), theEcorePackage.getEDoubleObject(), "upperBound", null, 0, 1, ThresholdAlert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getThresholdAlert_Duration(), theEcorePackage.getEString(), "duration", null, 0, 1, ThresholdAlert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getThresholdAlert_MaxDelay(), theEcorePackage.getEString(), "maxDelay", null, 0, 1, ThresholdAlert.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(alertContainerEClass, AlertContainer.class, "AlertContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAlertContainer_Alerts(), this.getAlert(), null, "alerts", null, 0, -1, AlertContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAlertContainer_AlertingTemplate(), this.getAlertingTemplate(), null, "alertingTemplate", null, 0, 1, AlertContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(alertingTemplateEClass, AlertingTemplate.class, "AlertingTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAlertingTemplate_Alerts(), this.getAlert(), null, "alerts", null, 0, -1, AlertingTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dampingRuleEClass, DampingRule.class, "DampingRule", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(maxAlertPerIntervalEClass, MaxAlertPerInterval.class, "MaxAlertPerInterval", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMaxAlertPerInterval_Interval(), theEcorePackage.getEString(), "interval", null, 0, 1, MaxAlertPerInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMaxAlertPerInterval_MaxAlerts(), theEcorePackage.getEInt(), "maxAlerts", "1", 0, 1, MaxAlertPerInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //AlertsPackageImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/DampingRuleImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/DampingRuleImpl.java new file mode 100644 index 0000000..84e9b9a --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/DampingRuleImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts.impl; + +import org.openecomp.ncomp.core.alerts.AlertsPackage; +import org.openecomp.ncomp.core.alerts.DampingRule; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Damping Rule'. + * + *
+ *
+ * + * @generated + */ +public abstract class DampingRuleImpl extends MinimalEObjectImpl.Container implements DampingRule { + /** + * + * + * @generated + */ + protected DampingRuleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return AlertsPackage.Literals.DAMPING_RULE; + } + +} //DampingRuleImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/MaxAlertPerIntervalImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/MaxAlertPerIntervalImpl.java new file mode 100644 index 0000000..24cce3f --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/impl/MaxAlertPerIntervalImpl.java @@ -0,0 +1,237 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.alerts.impl; + +import org.openecomp.ncomp.core.alerts.AlertsPackage; +import org.openecomp.ncomp.core.alerts.MaxAlertPerInterval; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Max Alert Per Interval'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.core.alerts.AlertsPackage
+ * @generated
+ */
+public class AlertsAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static AlertsPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public AlertsAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = AlertsPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected AlertsSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.Alert Alert}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.alerts.Alert
+ * @generated
+ */
+ public Adapter createAlertAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.ThresholdAlert Threshold Alert}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.alerts.ThresholdAlert
+ * @generated
+ */
+ public Adapter createThresholdAlertAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.AlertContainer Alert Container}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.alerts.AlertContainer
+ * @generated
+ */
+ public Adapter createAlertContainerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.AlertingTemplate Alerting Template}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.alerts.AlertingTemplate
+ * @generated
+ */
+ public Adapter createAlertingTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.DampingRule Damping Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.alerts.DampingRule
+ * @generated
+ */
+ public Adapter createDampingRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.alerts.MaxAlertPerInterval Max Alert Per Interval}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.alerts.MaxAlertPerInterval
+ * @generated
+ */
+ public Adapter createMaxAlertPerIntervalAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.HasOperationalState Has Operational State}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.HasOperationalState
+ * @generated
+ */
+ public Adapter createHasOperationalStateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //AlertsAdapterFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/util/AlertsSwitch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/util/AlertsSwitch.java
new file mode 100644
index 0000000..56d34cf
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/alerts/util/AlertsSwitch.java
@@ -0,0 +1,276 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.alerts.util;
+
+import org.openecomp.ncomp.core.HasOperationalState;
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.core.alerts.*;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.core.alerts.AlertsPackage
+ * @generated
+ */
+public class AlertsSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case AlertsPackage.ALERT: {
+ Alert alert = (Alert)theEObject;
+ T result = caseAlert(alert);
+ if (result == null) result = caseNamedEntity(alert);
+ if (result == null) result = caseHasOperationalState(alert);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case AlertsPackage.THRESHOLD_ALERT: {
+ ThresholdAlert thresholdAlert = (ThresholdAlert)theEObject;
+ T result = caseThresholdAlert(thresholdAlert);
+ if (result == null) result = caseAlert(thresholdAlert);
+ if (result == null) result = caseNamedEntity(thresholdAlert);
+ if (result == null) result = caseHasOperationalState(thresholdAlert);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case AlertsPackage.ALERT_CONTAINER: {
+ AlertContainer alertContainer = (AlertContainer)theEObject;
+ T result = caseAlertContainer(alertContainer);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case AlertsPackage.ALERTING_TEMPLATE: {
+ AlertingTemplate alertingTemplate = (AlertingTemplate)theEObject;
+ T result = caseAlertingTemplate(alertingTemplate);
+ if (result == null) result = caseNamedEntity(alertingTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case AlertsPackage.DAMPING_RULE: {
+ DampingRule dampingRule = (DampingRule)theEObject;
+ T result = caseDampingRule(dampingRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case AlertsPackage.MAX_ALERT_PER_INTERVAL: {
+ MaxAlertPerInterval maxAlertPerInterval = (MaxAlertPerInterval)theEObject;
+ T result = caseMaxAlertPerInterval(maxAlertPerInterval);
+ if (result == null) result = caseDampingRule(maxAlertPerInterval);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Alert'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Alert'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAlert(Alert object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Threshold Alert'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Threshold Alert'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseThresholdAlert(ThresholdAlert object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Alert Container'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Alert Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAlertContainer(AlertContainer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Alerting Template'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Alerting Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAlertingTemplate(AlertingTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Damping Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Damping Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDampingRule(DampingRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Max Alert Per Interval'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Max Alert Per Interval'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMaxAlertPerInterval(MaxAlertPerInterval object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Has Operational State'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Has Operational State'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHasOperationalState(HasOperationalState object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //AlertsSwitch
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/.gitignore b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/.gitignore
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/.gitignore
@@ -0,0 +1 @@
+
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/Function.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/Function.java
new file mode 100644
index 0000000..f788f94
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/Function.java
@@ -0,0 +1,39 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.function;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+/**
+ *
+ * A representation of the model object 'Function'.
+ *
+ *
+ *
+ * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunction()
+ * @model abstract="true"
+ * @generated
+ */
+public interface Function extends NamedEntity {
+} // Function
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionAction.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionAction.java
new file mode 100644
index 0000000..69a6a3b
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionAction.java
@@ -0,0 +1,71 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.function;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Action'.
+ *
+ *
+ * + * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionAction_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionAction#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // FunctionAction diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionFactory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionFactory.java new file mode 100644 index 0000000..aeea5a8 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionFactory.java @@ -0,0 +1,153 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.core.function.FunctionPackage + * @generated + */ +public interface FunctionFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + FunctionFactory eINSTANCE = org.openecomp.ncomp.core.function.impl.FunctionFactoryImpl.init(); + + /** + * Returns a new object of class 'Iterator Using Function'. + * + * + * @return a new object of class 'Iterator Using Function'. + * @generated + */ + IteratorUsingFunction createIteratorUsingFunction(); + + /** + * Returns a new object of class 'Rule Function'. + * + * + * @return a new object of class 'Rule Function'. + * @generated + */ + RuleFunction createRuleFunction(); + + /** + * Returns a new object of class 'Rule'. + * + * + * @return a new object of class 'Rule'. + * @generated + */ + FunctionRule createFunctionRule(); + + /** + * Returns a new object of class 'Action'. + * + * + * @return a new object of class 'Action'. + * @generated + */ + FunctionAction createFunctionAction(); + + /** + * Returns a new object of class 'Rule Update Function'. + * + * + * @return a new object of class 'Rule Update Function'. + * @generated + */ + RuleUpdateFunction createRuleUpdateFunction(); + + /** + * Returns a new object of class 'Update Rule'. + * + * + * @return a new object of class 'Update Rule'. + * @generated + */ + FunctionUpdateRule createFunctionUpdateRule(); + + /** + * Returns a new object of class 'Update Attribute'. + * + * + * @return a new object of class 'Update Attribute'. + * @generated + */ + FunctionUpdateAttribute createFunctionUpdateAttribute(); + + /** + * Returns a new object of class 'Match Attribute'. + * + * + * @return a new object of class 'Match Attribute'. + * @generated + */ + FunctionMatchAttribute createFunctionMatchAttribute(); + + /** + * Returns a new object of class 'Match Metric'. + * + * + * @return a new object of class 'Match Metric'. + * @generated + */ + FunctionMatchMetric createFunctionMatchMetric(); + + /** + * Returns a new object of class 'Match Instance Of'. + * + * + * @return a new object of class 'Match Instance Of'. + * @generated + */ + FunctionMatchInstanceOf createFunctionMatchInstanceOf(); + + /** + * Returns a new object of class 'String Value Pair'. + * + * + * @return a new object of class 'String Value Pair'. + * @generated + */ + StringValuePair createStringValuePair(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + FunctionPackage getFunctionPackage(); + +} //FunctionFactory diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatch.java new file mode 100644 index 0000000..40ba834 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatch.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Match'. + * + * + * + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatch() + * @model abstract="true" + * @generated + */ +public interface FunctionMatch extends EObject { +} // FunctionMatch diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchAttribute.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchAttribute.java new file mode 100644 index 0000000..578e0e7 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchAttribute.java @@ -0,0 +1,124 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + + +/** + * + * A representation of the model object 'Match Attribute'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchAttribute_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchAttribute#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the 'Match' attribute. + * + *+ * If the meaning of the 'Match' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Match' attribute. + * @see #setMatch(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchAttribute_Match() + * @model unique="false" + * @generated + */ + String getMatch(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchAttribute#getMatch Match}' attribute. + * + * + * @param value the new value of the 'Match' attribute. + * @see #getMatch() + * @generated + */ + void setMatch(String value); + + /** + * Returns the value of the 'Negation' attribute. + * + *+ * If the meaning of the 'Negation' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Negation' attribute. + * @see #setNegation(boolean) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchAttribute_Negation() + * @model unique="false" + * @generated + */ + boolean isNegation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchAttribute#isNegation Negation}' attribute. + * + * + * @param value the new value of the 'Negation' attribute. + * @see #isNegation() + * @generated + */ + void setNegation(boolean value); + +} // FunctionMatchAttribute diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchInstanceOf.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchInstanceOf.java new file mode 100644 index 0000000..5526d23 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchInstanceOf.java @@ -0,0 +1,97 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + + +/** + * + * A representation of the model object 'Match Instance Of'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'EPackage' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'EPackage' attribute. + * @see #setEPackage(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchInstanceOf_EPackage() + * @model unique="false" + * @generated + */ + String getEPackage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchInstanceOf#getEPackage EPackage}' attribute. + * + * + * @param value the new value of the 'EPackage' attribute. + * @see #getEPackage() + * @generated + */ + void setEPackage(String value); + + /** + * Returns the value of the 'EName' attribute. + * + *+ * If the meaning of the 'EName' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'EName' attribute. + * @see #setEName(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchInstanceOf_EName() + * @model unique="false" + * @generated + */ + String getEName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchInstanceOf#getEName EName}' attribute. + * + * + * @param value the new value of the 'EName' attribute. + * @see #getEName() + * @generated + */ + void setEName(String value); + +} // FunctionMatchInstanceOf diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchMetric.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchMetric.java new file mode 100644 index 0000000..ff555ff --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionMatchMetric.java @@ -0,0 +1,179 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.openecomp.ncomp.core.metrics.MetricValueOption; + +/** + * + * A representation of the model object 'Match Metric'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchMetric_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchMetric#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the 'Option' reference. + * + *+ * If the meaning of the 'Option' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Option' reference. + * @see #setOption(MetricValueOption) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchMetric_Option() + * @model + * @generated + */ + MetricValueOption getOption(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchMetric#getOption Option}' reference. + * + * + * @param value the new value of the 'Option' reference. + * @see #getOption() + * @generated + */ + void setOption(MetricValueOption value); + + /** + * Returns the value of the 'Lower Bound' attribute. + * + *+ * If the meaning of the 'Lower Bound' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Lower Bound' attribute. + * @see #setLowerBound(Double) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchMetric_LowerBound() + * @model unique="false" + * @generated + */ + Double getLowerBound(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchMetric#getLowerBound Lower Bound}' attribute. + * + * + * @param value the new value of the 'Lower Bound' attribute. + * @see #getLowerBound() + * @generated + */ + void setLowerBound(Double value); + + /** + * Returns the value of the 'Upper Bound' attribute. + * + *+ * If the meaning of the 'Upper Bound' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Upper Bound' attribute. + * @see #setUpperBound(Double) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchMetric_UpperBound() + * @model unique="false" + * @generated + */ + Double getUpperBound(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchMetric#getUpperBound Upper Bound}' attribute. + * + * + * @param value the new value of the 'Upper Bound' attribute. + * @see #getUpperBound() + * @generated + */ + void setUpperBound(Double value); + + /** + * Returns the value of the 'Negation' attribute. + * + *+ * If the meaning of the 'Negation' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Negation' attribute. + * @see #setNegation(boolean) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionMatchMetric_Negation() + * @model unique="false" + * @generated + */ + boolean isNegation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionMatchMetric#isNegation Negation}' attribute. + * + * + * @param value the new value of the 'Negation' attribute. + * @see #isNegation() + * @generated + */ + void setNegation(boolean value); + +} // FunctionMatchMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionPackage.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionPackage.java new file mode 100644 index 0000000..e6d93d7 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionPackage.java @@ -0,0 +1,1739 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.openecomp.ncomp.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * The following features are supported: + *
+ * If the meaning of the 'Matches' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Matches' containment reference list. + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionRule_Matches() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Action' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Action' containment reference. + * @see #setAction(FunctionAction) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionRule_Action() + * @model containment="true" + * @generated + */ + FunctionAction getAction(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionRule#getAction Action}' containment reference. + * + * + * @param value the new value of the 'Action' containment reference. + * @see #getAction() + * @generated + */ + void setAction(FunctionAction value); + +} // FunctionRule diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdate.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdate.java new file mode 100644 index 0000000..77f72f9 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdate.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Update'. + * + * + * + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionUpdate() + * @model abstract="true" + * @generated + */ +public interface FunctionUpdate extends EObject { +} // FunctionUpdate diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdateAttribute.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdateAttribute.java new file mode 100644 index 0000000..3c37e23 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdateAttribute.java @@ -0,0 +1,97 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + + +/** + * + * A representation of the model object 'Update Attribute'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionUpdateAttribute_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionUpdateAttribute#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the 'Value' attribute. + * + *+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionUpdateAttribute_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.FunctionUpdateAttribute#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // FunctionUpdateAttribute diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdateRule.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdateRule.java new file mode 100644 index 0000000..a3f135e --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/FunctionUpdateRule.java @@ -0,0 +1,80 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Update Rule'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Matches' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Matches' containment reference list. + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionUpdateRule_Matches() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Updates' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Updates' containment reference list. + * @see org.openecomp.ncomp.core.function.FunctionPackage#getFunctionUpdateRule_Updates() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Paths' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Paths' attribute list. + * @see org.openecomp.ncomp.core.function.FunctionPackage#getIteratorUsingFunction_Paths() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Recursive' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Recursive' attribute. + * @see #setRecursive(boolean) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getIteratorUsingFunction_Recursive() + * @model unique="false" + * @generated + */ + boolean isRecursive(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.IteratorUsingFunction#isRecursive Recursive}' attribute. + * + * + * @param value the new value of the 'Recursive' attribute. + * @see #isRecursive() + * @generated + */ + void setRecursive(boolean value); + + /** + * Returns the value of the 'Filter' containment reference. + * + *+ * If the meaning of the 'Filter' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Filter' containment reference. + * @see #setFilter(Function) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getIteratorUsingFunction_Filter() + * @model containment="true" + * @generated + */ + Function getFilter(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.IteratorUsingFunction#getFilter Filter}' containment reference. + * + * + * @param value the new value of the 'Filter' containment reference. + * @see #getFilter() + * @generated + */ + void setFilter(Function value); + +} // IteratorUsingFunction diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/RuleFunction.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/RuleFunction.java new file mode 100644 index 0000000..a6ff522 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/RuleFunction.java @@ -0,0 +1,61 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Rule Function'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rules' containment reference list. + * @see org.openecomp.ncomp.core.function.FunctionPackage#getRuleFunction_Rules() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rules' containment reference list. + * @see org.openecomp.ncomp.core.function.FunctionPackage#getRuleUpdateFunction_Rules() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getStringValuePair_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.StringValuePair#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // StringValuePair diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/ValuePair.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/ValuePair.java new file mode 100644 index 0000000..b58e19e --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/ValuePair.java @@ -0,0 +1,71 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Value Pair'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.core.function.FunctionPackage#getValuePair_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.function.ValuePair#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // ValuePair diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/.gitignore b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/.gitignore new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/.gitignore @@ -0,0 +1 @@ + diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionActionImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionActionImpl.java new file mode 100644 index 0000000..9ef32e8 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionActionImpl.java @@ -0,0 +1,184 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function.impl; + +import org.openecomp.ncomp.core.function.FunctionAction; +import org.openecomp.ncomp.core.function.FunctionPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Action'. + * + *+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class FunctionImpl extends NamedEntityImpl implements Function { + /** + * + * + * @generated + */ + protected FunctionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FunctionPackage.Literals.FUNCTION; + } + +} //FunctionImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionMatchAttributeImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionMatchAttributeImpl.java new file mode 100644 index 0000000..bf475fe --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionMatchAttributeImpl.java @@ -0,0 +1,291 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function.impl; + +import org.openecomp.ncomp.core.function.FunctionMatchAttribute; +import org.openecomp.ncomp.core.function.FunctionPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Match Attribute'. + * + *+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class FunctionMatchImpl extends MinimalEObjectImpl.Container implements FunctionMatch { + /** + * + * + * @generated + */ + protected FunctionMatchImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FunctionPackage.Literals.FUNCTION_MATCH; + } + +} //FunctionMatchImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionMatchInstanceOfImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionMatchInstanceOfImpl.java new file mode 100644 index 0000000..c722e58 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionMatchInstanceOfImpl.java @@ -0,0 +1,237 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function.impl; + +import org.openecomp.ncomp.core.function.FunctionMatchInstanceOf; +import org.openecomp.ncomp.core.function.FunctionPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Match Instance Of'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.core.function.FunctionPackage#eNS_URI + * @see #init() + * @generated + */ + private FunctionPackageImpl() { + super(eNS_URI, FunctionFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link FunctionPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static FunctionPackage init() { + if (isInited) return (FunctionPackage)EPackage.Registry.INSTANCE.getEPackage(FunctionPackage.eNS_URI); + + // Obtain or create and register package + FunctionPackageImpl theFunctionPackage = (FunctionPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FunctionPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FunctionPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + MetricsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theFunctionPackage.createPackageContents(); + + // Initialize created meta-data + theFunctionPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theFunctionPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(FunctionPackage.eNS_URI, theFunctionPackage); + return theFunctionPackage; + } + + /** + * + * + * @generated + */ + public EClass getFunction() { + return functionEClass; + } + + /** + * + * + * @generated + */ + public EClass getIterator() { + return iteratorEClass; + } + + /** + * + * + * @generated + */ + public EClass getIteratorUsingFunction() { + return iteratorUsingFunctionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getIteratorUsingFunction_Paths() { + return (EAttribute)iteratorUsingFunctionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getIteratorUsingFunction_Recursive() { + return (EAttribute)iteratorUsingFunctionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getIteratorUsingFunction_Filter() { + return (EReference)iteratorUsingFunctionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getRuleFunction() { + return ruleFunctionEClass; + } + + /** + * + * + * @generated + */ + public EReference getRuleFunction_Rules() { + return (EReference)ruleFunctionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFunctionRule() { + return functionRuleEClass; + } + + /** + * + * + * @generated + */ + public EReference getFunctionRule_Matches() { + return (EReference)functionRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getFunctionRule_Action() { + return (EReference)functionRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFunctionAction() { + return functionActionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionAction_Value() { + return (EAttribute)functionActionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getRuleUpdateFunction() { + return ruleUpdateFunctionEClass; + } + + /** + * + * + * @generated + */ + public EReference getRuleUpdateFunction_Rules() { + return (EReference)ruleUpdateFunctionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFunctionUpdateRule() { + return functionUpdateRuleEClass; + } + + /** + * + * + * @generated + */ + public EReference getFunctionUpdateRule_Matches() { + return (EReference)functionUpdateRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getFunctionUpdateRule_Updates() { + return (EReference)functionUpdateRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFunctionUpdate() { + return functionUpdateEClass; + } + + /** + * + * + * @generated + */ + public EClass getFunctionUpdateAttribute() { + return functionUpdateAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionUpdateAttribute_Path() { + return (EAttribute)functionUpdateAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionUpdateAttribute_Value() { + return (EAttribute)functionUpdateAttributeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFunctionMatch() { + return functionMatchEClass; + } + + /** + * + * + * @generated + */ + public EClass getFunctionMatchAttribute() { + return functionMatchAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchAttribute_Path() { + return (EAttribute)functionMatchAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchAttribute_Match() { + return (EAttribute)functionMatchAttributeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchAttribute_Negation() { + return (EAttribute)functionMatchAttributeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getFunctionMatchMetric() { + return functionMatchMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchMetric_Path() { + return (EAttribute)functionMatchMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getFunctionMatchMetric_Option() { + return (EReference)functionMatchMetricEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchMetric_LowerBound() { + return (EAttribute)functionMatchMetricEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchMetric_UpperBound() { + return (EAttribute)functionMatchMetricEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchMetric_Negation() { + return (EAttribute)functionMatchMetricEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getFunctionMatchInstanceOf() { + return functionMatchInstanceOfEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchInstanceOf_EPackage() { + return (EAttribute)functionMatchInstanceOfEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFunctionMatchInstanceOf_EName() { + return (EAttribute)functionMatchInstanceOfEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getValuePair() { + return valuePairEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getValuePair_Path() { + return (EAttribute)valuePairEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getStringValuePair() { + return stringValuePairEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getStringValuePair_Value() { + return (EAttribute)stringValuePairEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public FunctionFactory getFunctionFactory() { + return (FunctionFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + functionEClass = createEClass(FUNCTION); + + iteratorEClass = createEClass(ITERATOR); + + iteratorUsingFunctionEClass = createEClass(ITERATOR_USING_FUNCTION); + createEAttribute(iteratorUsingFunctionEClass, ITERATOR_USING_FUNCTION__PATHS); + createEAttribute(iteratorUsingFunctionEClass, ITERATOR_USING_FUNCTION__RECURSIVE); + createEReference(iteratorUsingFunctionEClass, ITERATOR_USING_FUNCTION__FILTER); + + ruleFunctionEClass = createEClass(RULE_FUNCTION); + createEReference(ruleFunctionEClass, RULE_FUNCTION__RULES); + + functionRuleEClass = createEClass(FUNCTION_RULE); + createEReference(functionRuleEClass, FUNCTION_RULE__MATCHES); + createEReference(functionRuleEClass, FUNCTION_RULE__ACTION); + + functionActionEClass = createEClass(FUNCTION_ACTION); + createEAttribute(functionActionEClass, FUNCTION_ACTION__VALUE); + + ruleUpdateFunctionEClass = createEClass(RULE_UPDATE_FUNCTION); + createEReference(ruleUpdateFunctionEClass, RULE_UPDATE_FUNCTION__RULES); + + functionUpdateRuleEClass = createEClass(FUNCTION_UPDATE_RULE); + createEReference(functionUpdateRuleEClass, FUNCTION_UPDATE_RULE__MATCHES); + createEReference(functionUpdateRuleEClass, FUNCTION_UPDATE_RULE__UPDATES); + + functionUpdateEClass = createEClass(FUNCTION_UPDATE); + + functionUpdateAttributeEClass = createEClass(FUNCTION_UPDATE_ATTRIBUTE); + createEAttribute(functionUpdateAttributeEClass, FUNCTION_UPDATE_ATTRIBUTE__PATH); + createEAttribute(functionUpdateAttributeEClass, FUNCTION_UPDATE_ATTRIBUTE__VALUE); + + functionMatchEClass = createEClass(FUNCTION_MATCH); + + functionMatchAttributeEClass = createEClass(FUNCTION_MATCH_ATTRIBUTE); + createEAttribute(functionMatchAttributeEClass, FUNCTION_MATCH_ATTRIBUTE__PATH); + createEAttribute(functionMatchAttributeEClass, FUNCTION_MATCH_ATTRIBUTE__MATCH); + createEAttribute(functionMatchAttributeEClass, FUNCTION_MATCH_ATTRIBUTE__NEGATION); + + functionMatchMetricEClass = createEClass(FUNCTION_MATCH_METRIC); + createEAttribute(functionMatchMetricEClass, FUNCTION_MATCH_METRIC__PATH); + createEReference(functionMatchMetricEClass, FUNCTION_MATCH_METRIC__OPTION); + createEAttribute(functionMatchMetricEClass, FUNCTION_MATCH_METRIC__LOWER_BOUND); + createEAttribute(functionMatchMetricEClass, FUNCTION_MATCH_METRIC__UPPER_BOUND); + createEAttribute(functionMatchMetricEClass, FUNCTION_MATCH_METRIC__NEGATION); + + functionMatchInstanceOfEClass = createEClass(FUNCTION_MATCH_INSTANCE_OF); + createEAttribute(functionMatchInstanceOfEClass, FUNCTION_MATCH_INSTANCE_OF__EPACKAGE); + createEAttribute(functionMatchInstanceOfEClass, FUNCTION_MATCH_INSTANCE_OF__ENAME); + + valuePairEClass = createEClass(VALUE_PAIR); + createEAttribute(valuePairEClass, VALUE_PAIR__PATH); + + stringValuePairEClass = createEClass(STRING_VALUE_PAIR); + createEAttribute(stringValuePairEClass, STRING_VALUE_PAIR__VALUE); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + MetricsPackage theMetricsPackage = (MetricsPackage)EPackage.Registry.INSTANCE.getEPackage(MetricsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + functionEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + iteratorEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + iteratorUsingFunctionEClass.getESuperTypes().add(this.getIterator()); + ruleFunctionEClass.getESuperTypes().add(this.getFunction()); + ruleUpdateFunctionEClass.getESuperTypes().add(this.getFunction()); + functionUpdateAttributeEClass.getESuperTypes().add(this.getFunctionUpdate()); + functionMatchAttributeEClass.getESuperTypes().add(this.getFunctionMatch()); + functionMatchMetricEClass.getESuperTypes().add(this.getFunctionMatch()); + functionMatchInstanceOfEClass.getESuperTypes().add(this.getFunctionMatch()); + stringValuePairEClass.getESuperTypes().add(this.getValuePair()); + + // Initialize classes, features, and operations; add parameters + initEClass(functionEClass, Function.class, "Function", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(iteratorEClass, Iterator.class, "Iterator", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(iteratorUsingFunctionEClass, IteratorUsingFunction.class, "IteratorUsingFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIteratorUsingFunction_Paths(), theEcorePackage.getEString(), "paths", null, 0, -1, IteratorUsingFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getIteratorUsingFunction_Recursive(), theEcorePackage.getEBoolean(), "recursive", null, 0, 1, IteratorUsingFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getIteratorUsingFunction_Filter(), this.getFunction(), null, "filter", null, 0, 1, IteratorUsingFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ruleFunctionEClass, RuleFunction.class, "RuleFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRuleFunction_Rules(), this.getFunctionRule(), null, "rules", null, 0, -1, RuleFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionRuleEClass, FunctionRule.class, "FunctionRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFunctionRule_Matches(), this.getFunctionMatch(), null, "matches", null, 0, -1, FunctionRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFunctionRule_Action(), this.getFunctionAction(), null, "action", null, 0, 1, FunctionRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionActionEClass, FunctionAction.class, "FunctionAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFunctionAction_Value(), theEcorePackage.getEString(), "value", null, 0, 1, FunctionAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ruleUpdateFunctionEClass, RuleUpdateFunction.class, "RuleUpdateFunction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRuleUpdateFunction_Rules(), this.getFunctionUpdateRule(), null, "rules", null, 0, -1, RuleUpdateFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionUpdateRuleEClass, FunctionUpdateRule.class, "FunctionUpdateRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFunctionUpdateRule_Matches(), this.getFunctionMatch(), null, "matches", null, 0, -1, FunctionUpdateRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFunctionUpdateRule_Updates(), this.getFunctionUpdate(), null, "updates", null, 0, -1, FunctionUpdateRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionUpdateEClass, FunctionUpdate.class, "FunctionUpdate", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(functionUpdateAttributeEClass, FunctionUpdateAttribute.class, "FunctionUpdateAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFunctionUpdateAttribute_Path(), theEcorePackage.getEString(), "path", null, 0, 1, FunctionUpdateAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionUpdateAttribute_Value(), theEcorePackage.getEString(), "value", null, 0, 1, FunctionUpdateAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionMatchEClass, FunctionMatch.class, "FunctionMatch", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(functionMatchAttributeEClass, FunctionMatchAttribute.class, "FunctionMatchAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFunctionMatchAttribute_Path(), theEcorePackage.getEString(), "path", null, 0, 1, FunctionMatchAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionMatchAttribute_Match(), theEcorePackage.getEString(), "match", null, 0, 1, FunctionMatchAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionMatchAttribute_Negation(), theEcorePackage.getEBoolean(), "negation", null, 0, 1, FunctionMatchAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionMatchMetricEClass, FunctionMatchMetric.class, "FunctionMatchMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFunctionMatchMetric_Path(), theEcorePackage.getEString(), "path", null, 0, 1, FunctionMatchMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFunctionMatchMetric_Option(), theMetricsPackage.getMetricValueOption(), null, "option", null, 0, 1, FunctionMatchMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionMatchMetric_LowerBound(), theEcorePackage.getEDoubleObject(), "lowerBound", null, 0, 1, FunctionMatchMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionMatchMetric_UpperBound(), theEcorePackage.getEDoubleObject(), "upperBound", null, 0, 1, FunctionMatchMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionMatchMetric_Negation(), theEcorePackage.getEBoolean(), "negation", null, 0, 1, FunctionMatchMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionMatchInstanceOfEClass, FunctionMatchInstanceOf.class, "FunctionMatchInstanceOf", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFunctionMatchInstanceOf_EPackage(), theEcorePackage.getEString(), "ePackage", null, 0, 1, FunctionMatchInstanceOf.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunctionMatchInstanceOf_EName(), theEcorePackage.getEString(), "eName", null, 0, 1, FunctionMatchInstanceOf.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(valuePairEClass, ValuePair.class, "ValuePair", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getValuePair_Path(), theEcorePackage.getEString(), "path", null, 0, 1, ValuePair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringValuePairEClass, StringValuePair.class, "StringValuePair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringValuePair_Value(), theEcorePackage.getEString(), "value", null, 0, 1, StringValuePair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //FunctionPackageImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionRuleImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionRuleImpl.java new file mode 100644 index 0000000..0680329 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionRuleImpl.java @@ -0,0 +1,242 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function.impl; + +import org.openecomp.ncomp.core.function.FunctionAction; +import org.openecomp.ncomp.core.function.FunctionMatch; +import org.openecomp.ncomp.core.function.FunctionPackage; +import org.openecomp.ncomp.core.function.FunctionRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Rule'. + * + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class FunctionUpdateImpl extends MinimalEObjectImpl.Container implements FunctionUpdate { + /** + * + * + * @generated + */ + protected FunctionUpdateImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FunctionPackage.Literals.FUNCTION_UPDATE; + } + +} //FunctionUpdateImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionUpdateRuleImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionUpdateRuleImpl.java new file mode 100644 index 0000000..84eda29 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/FunctionUpdateRuleImpl.java @@ -0,0 +1,210 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function.impl; + +import org.openecomp.ncomp.core.function.FunctionMatch; +import org.openecomp.ncomp.core.function.FunctionPackage; +import org.openecomp.ncomp.core.function.FunctionUpdate; +import org.openecomp.ncomp.core.function.FunctionUpdateRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Update Rule'. + * + *+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class IteratorImpl extends NamedEntityImpl implements Iterator { + /** + * + * + * @generated + */ + protected IteratorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FunctionPackage.Literals.ITERATOR; + } + +} //IteratorImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/IteratorUsingFunctionImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/IteratorUsingFunctionImpl.java new file mode 100644 index 0000000..df5ed3c --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/impl/IteratorUsingFunctionImpl.java @@ -0,0 +1,307 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.function.impl; + +import org.openecomp.ncomp.core.function.Function; +import org.openecomp.ncomp.core.function.FunctionPackage; +import org.openecomp.ncomp.core.function.IteratorUsingFunction; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Iterator Using Function'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.core.function.FunctionPackage
+ * @generated
+ */
+public class FunctionAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static FunctionPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public FunctionAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = FunctionPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected FunctionSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.Function Function}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.Function
+ * @generated
+ */
+ public Adapter createFunctionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.Iterator Iterator}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.Iterator
+ * @generated
+ */
+ public Adapter createIteratorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.IteratorUsingFunction Iterator Using Function}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.IteratorUsingFunction
+ * @generated
+ */
+ public Adapter createIteratorUsingFunctionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.RuleFunction Rule Function}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.RuleFunction
+ * @generated
+ */
+ public Adapter createRuleFunctionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionRule Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionRule
+ * @generated
+ */
+ public Adapter createFunctionRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionAction Action}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionAction
+ * @generated
+ */
+ public Adapter createFunctionActionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.RuleUpdateFunction Rule Update Function}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.RuleUpdateFunction
+ * @generated
+ */
+ public Adapter createRuleUpdateFunctionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionUpdateRule Update Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionUpdateRule
+ * @generated
+ */
+ public Adapter createFunctionUpdateRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionUpdate Update}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionUpdate
+ * @generated
+ */
+ public Adapter createFunctionUpdateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionUpdateAttribute Update Attribute}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionUpdateAttribute
+ * @generated
+ */
+ public Adapter createFunctionUpdateAttributeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionMatch Match}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionMatch
+ * @generated
+ */
+ public Adapter createFunctionMatchAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionMatchAttribute Match Attribute}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionMatchAttribute
+ * @generated
+ */
+ public Adapter createFunctionMatchAttributeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionMatchMetric Match Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionMatchMetric
+ * @generated
+ */
+ public Adapter createFunctionMatchMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.FunctionMatchInstanceOf Match Instance Of}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.FunctionMatchInstanceOf
+ * @generated
+ */
+ public Adapter createFunctionMatchInstanceOfAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.ValuePair Value Pair}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.ValuePair
+ * @generated
+ */
+ public Adapter createValuePairAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.function.StringValuePair String Value Pair}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.function.StringValuePair
+ * @generated
+ */
+ public Adapter createStringValuePairAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //FunctionAdapterFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/util/FunctionSwitch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/util/FunctionSwitch.java
new file mode 100644
index 0000000..5b6dd4c
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/function/util/FunctionSwitch.java
@@ -0,0 +1,476 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.function.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.core.function.*;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.core.function.FunctionPackage
+ * @generated
+ */
+public class FunctionSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case FunctionPackage.FUNCTION: {
+ Function function = (Function)theEObject;
+ T result = caseFunction(function);
+ if (result == null) result = caseNamedEntity(function);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.ITERATOR: {
+ Iterator iterator = (Iterator)theEObject;
+ T result = caseIterator(iterator);
+ if (result == null) result = caseNamedEntity(iterator);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.ITERATOR_USING_FUNCTION: {
+ IteratorUsingFunction iteratorUsingFunction = (IteratorUsingFunction)theEObject;
+ T result = caseIteratorUsingFunction(iteratorUsingFunction);
+ if (result == null) result = caseIterator(iteratorUsingFunction);
+ if (result == null) result = caseNamedEntity(iteratorUsingFunction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.RULE_FUNCTION: {
+ RuleFunction ruleFunction = (RuleFunction)theEObject;
+ T result = caseRuleFunction(ruleFunction);
+ if (result == null) result = caseFunction(ruleFunction);
+ if (result == null) result = caseNamedEntity(ruleFunction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_RULE: {
+ FunctionRule functionRule = (FunctionRule)theEObject;
+ T result = caseFunctionRule(functionRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_ACTION: {
+ FunctionAction functionAction = (FunctionAction)theEObject;
+ T result = caseFunctionAction(functionAction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.RULE_UPDATE_FUNCTION: {
+ RuleUpdateFunction ruleUpdateFunction = (RuleUpdateFunction)theEObject;
+ T result = caseRuleUpdateFunction(ruleUpdateFunction);
+ if (result == null) result = caseFunction(ruleUpdateFunction);
+ if (result == null) result = caseNamedEntity(ruleUpdateFunction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_UPDATE_RULE: {
+ FunctionUpdateRule functionUpdateRule = (FunctionUpdateRule)theEObject;
+ T result = caseFunctionUpdateRule(functionUpdateRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_UPDATE: {
+ FunctionUpdate functionUpdate = (FunctionUpdate)theEObject;
+ T result = caseFunctionUpdate(functionUpdate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_UPDATE_ATTRIBUTE: {
+ FunctionUpdateAttribute functionUpdateAttribute = (FunctionUpdateAttribute)theEObject;
+ T result = caseFunctionUpdateAttribute(functionUpdateAttribute);
+ if (result == null) result = caseFunctionUpdate(functionUpdateAttribute);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_MATCH: {
+ FunctionMatch functionMatch = (FunctionMatch)theEObject;
+ T result = caseFunctionMatch(functionMatch);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_MATCH_ATTRIBUTE: {
+ FunctionMatchAttribute functionMatchAttribute = (FunctionMatchAttribute)theEObject;
+ T result = caseFunctionMatchAttribute(functionMatchAttribute);
+ if (result == null) result = caseFunctionMatch(functionMatchAttribute);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_MATCH_METRIC: {
+ FunctionMatchMetric functionMatchMetric = (FunctionMatchMetric)theEObject;
+ T result = caseFunctionMatchMetric(functionMatchMetric);
+ if (result == null) result = caseFunctionMatch(functionMatchMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.FUNCTION_MATCH_INSTANCE_OF: {
+ FunctionMatchInstanceOf functionMatchInstanceOf = (FunctionMatchInstanceOf)theEObject;
+ T result = caseFunctionMatchInstanceOf(functionMatchInstanceOf);
+ if (result == null) result = caseFunctionMatch(functionMatchInstanceOf);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.VALUE_PAIR: {
+ ValuePair valuePair = (ValuePair)theEObject;
+ T result = caseValuePair(valuePair);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FunctionPackage.STRING_VALUE_PAIR: {
+ StringValuePair stringValuePair = (StringValuePair)theEObject;
+ T result = caseStringValuePair(stringValuePair);
+ if (result == null) result = caseValuePair(stringValuePair);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Function'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Function'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunction(Function object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Iterator'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Iterator'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIterator(Iterator object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Iterator Using Function'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Iterator Using Function'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIteratorUsingFunction(IteratorUsingFunction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Rule Function'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Rule Function'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRuleFunction(RuleFunction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionRule(FunctionRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Action'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Action'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionAction(FunctionAction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Rule Update Function'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Rule Update Function'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRuleUpdateFunction(RuleUpdateFunction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Update Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Update Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionUpdateRule(FunctionUpdateRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Update'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Update'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionUpdate(FunctionUpdate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Update Attribute'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Update Attribute'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionUpdateAttribute(FunctionUpdateAttribute object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Match'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Match'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionMatch(FunctionMatch object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Match Attribute'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Match Attribute'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionMatchAttribute(FunctionMatchAttribute object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Match Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Match Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionMatchMetric(FunctionMatchMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Match Instance Of'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Match Instance Of'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFunctionMatchInstanceOf(FunctionMatchInstanceOf object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Value Pair'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Value Pair'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseValuePair(ValuePair object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'String Value Pair'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'String Value Pair'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseStringValuePair(StringValuePair object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //FunctionSwitch
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/.gitignore b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/.gitignore
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/.gitignore
@@ -0,0 +1 @@
+
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/CoreFactoryImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/CoreFactoryImpl.java
new file mode 100644
index 0000000..ada1cd8
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/CoreFactoryImpl.java
@@ -0,0 +1,509 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.impl;
+
+import org.openecomp.ncomp.core.*;
+
+import org.openecomp.ncomp.core.types.metrics.DateMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.LongMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.StringMetricAttribute;
+
+import com.google.common.base.Objects;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.xtext.xbase.lib.Exceptions;
+import org.json.JSONObject;
+
+/**
+ *
+ * An implementation of the model Factory.
+ *
+ * @generated
+ */
+public class CoreFactoryImpl extends EFactoryImpl implements CoreFactory {
+ /**
+ * Creates the default factory implementation.
+ *
+ *
+ * @generated
+ */
+ public static CoreFactory init() {
+ try {
+ CoreFactory theCoreFactory = (CoreFactory)EPackage.Registry.INSTANCE.getEFactory(CorePackage.eNS_URI);
+ if (theCoreFactory != null) {
+ return theCoreFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new CoreFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ *
+ * @generated
+ */
+ public CoreFactoryImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case CorePackage.USER: return createUser();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case CorePackage.OPERATIONAL_STATE:
+ return createOperationalStateFromString(eDataType, initialValue);
+ case CorePackage.DEPLOYMENT_STATUS:
+ return createDeploymentStatusFromString(eDataType, initialValue);
+ case CorePackage.JSON_OBJECT:
+ return createJsonObjectFromString(eDataType, initialValue);
+ case CorePackage.REMOTE_CONTEXT:
+ return createRemoteContextFromString(eDataType, initialValue);
+ case CorePackage.INCREASING_ULONG_METRIC_ATTRIBUTE:
+ return createIncreasingULongMetricAttributeFromString(eDataType, initialValue);
+ case CorePackage.LONG_METRIC_ATTRIBUTE:
+ return createLongMetricAttributeFromString(eDataType, initialValue);
+ case CorePackage.DOUBLE_METRIC_ATTRIBUTE:
+ return createDoubleMetricAttributeFromString(eDataType, initialValue);
+ case CorePackage.STRING_METRIC_ATTRIBUTE:
+ return createStringMetricAttributeFromString(eDataType, initialValue);
+ case CorePackage.DATE_METRIC_ATTRIBUTE:
+ return createDateMetricAttributeFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case CorePackage.OPERATIONAL_STATE:
+ return convertOperationalStateToString(eDataType, instanceValue);
+ case CorePackage.DEPLOYMENT_STATUS:
+ return convertDeploymentStatusToString(eDataType, instanceValue);
+ case CorePackage.JSON_OBJECT:
+ return convertJsonObjectToString(eDataType, instanceValue);
+ case CorePackage.REMOTE_CONTEXT:
+ return convertRemoteContextToString(eDataType, instanceValue);
+ case CorePackage.INCREASING_ULONG_METRIC_ATTRIBUTE:
+ return convertIncreasingULongMetricAttributeToString(eDataType, instanceValue);
+ case CorePackage.LONG_METRIC_ATTRIBUTE:
+ return convertLongMetricAttributeToString(eDataType, instanceValue);
+ case CorePackage.DOUBLE_METRIC_ATTRIBUTE:
+ return convertDoubleMetricAttributeToString(eDataType, instanceValue);
+ case CorePackage.STRING_METRIC_ATTRIBUTE:
+ return convertStringMetricAttributeToString(eDataType, instanceValue);
+ case CorePackage.DATE_METRIC_ATTRIBUTE:
+ return convertDateMetricAttributeToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public User createUser() {
+ UserImpl user = new UserImpl();
+ return user;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public OperationalState createOperationalStateFromString(EDataType eDataType, String initialValue) {
+ OperationalState result = OperationalState.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertOperationalStateToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DeploymentStatus createDeploymentStatusFromString(EDataType eDataType, String initialValue) {
+ DeploymentStatus result = DeploymentStatus.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertDeploymentStatusToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public JSONObject createJsonObject(final String it) {
+ JSONObject _xtrycatchfinallyexpression = null;
+ try {
+ JSONObject _xifexpression = null;
+ boolean _notEquals = (!Objects.equal(it, null));
+ if (_notEquals) {
+ _xifexpression = new JSONObject(it);
+ }
+ _xtrycatchfinallyexpression = _xifexpression;
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ throw new RuntimeException(((("Bad JSON String: " + it) + " ") + e));
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ return _xtrycatchfinallyexpression;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public JSONObject createJsonObjectFromString(EDataType eDataType, String initialValue) {
+ return createJsonObject(initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertJsonObjectToString(EDataType eDataType, Object instanceValue) {
+ return super.convertToString(eDataType, instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public JSONObject createRemoteContext(final String it) {
+ JSONObject _xtrycatchfinallyexpression = null;
+ try {
+ JSONObject _xifexpression = null;
+ boolean _notEquals = (!Objects.equal(it, null));
+ if (_notEquals) {
+ _xifexpression = new JSONObject(it);
+ }
+ _xtrycatchfinallyexpression = _xifexpression;
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ throw new RuntimeException(((("Bad JSON String: " + it) + " ") + e));
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ return _xtrycatchfinallyexpression;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public JSONObject createRemoteContextFromString(EDataType eDataType, String initialValue) {
+ return createRemoteContext(initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertRemoteContextToString(EDataType eDataType, Object instanceValue) {
+ return super.convertToString(eDataType, instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public IncreasingULongMetricAttribute createIncreasingULongMetricAttributeFromString(EDataType eDataType, String initialValue) {
+ return (IncreasingULongMetricAttribute)super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertIncreasingULongMetricAttribute(IncreasingULongMetricAttribute it) {
+ try {
+ return it.toStringValue();
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ return null;
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertIncreasingULongMetricAttributeToString(EDataType eDataType, Object instanceValue) {
+ return convertIncreasingULongMetricAttribute((IncreasingULongMetricAttribute)instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public LongMetricAttribute createLongMetricAttributeFromString(EDataType eDataType, String initialValue) {
+ return (LongMetricAttribute)super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertLongMetricAttribute(LongMetricAttribute it) {
+ try {
+ return it.toStringValue();
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ return null;
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertLongMetricAttributeToString(EDataType eDataType, Object instanceValue) {
+ return convertLongMetricAttribute((LongMetricAttribute)instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DoubleMetricAttribute createDoubleMetricAttributeFromString(EDataType eDataType, String initialValue) {
+ return (DoubleMetricAttribute)super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertDoubleMetricAttribute(DoubleMetricAttribute it) {
+ try {
+ return it.toStringValue();
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ return null;
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertDoubleMetricAttributeToString(EDataType eDataType, Object instanceValue) {
+ return convertDoubleMetricAttribute((DoubleMetricAttribute)instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public StringMetricAttribute createStringMetricAttributeFromString(EDataType eDataType, String initialValue) {
+ return (StringMetricAttribute)super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertStringMetricAttribute(StringMetricAttribute it) {
+ try {
+ return it.toStringValue();
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ return null;
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertStringMetricAttributeToString(EDataType eDataType, Object instanceValue) {
+ return convertStringMetricAttribute((StringMetricAttribute)instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public DateMetricAttribute createDateMetricAttributeFromString(EDataType eDataType, String initialValue) {
+ return (DateMetricAttribute)super.createFromString(eDataType, initialValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertDateMetricAttribute(DateMetricAttribute it) {
+ try {
+ return it.toStringValue();
+ }
+ catch (final Throwable _t) {
+ if (_t instanceof Exception) {
+ final Exception e = (Exception)_t;
+ return null;
+ }
+ else {
+ throw Exceptions.sneakyThrow(_t);
+ }
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String convertDateMetricAttributeToString(EDataType eDataType, Object instanceValue) {
+ return convertDateMetricAttribute((DateMetricAttribute)instanceValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public CorePackage getCorePackage() {
+ return (CorePackage)getEPackage();
+ }
+
+ /**
+ *
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static CorePackage getPackage() {
+ return CorePackage.eINSTANCE;
+ }
+
+} //CoreFactoryImpl
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/CorePackageImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/CorePackageImpl.java
new file mode 100644
index 0000000..f97ef6e
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/CorePackageImpl.java
@@ -0,0 +1,561 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.impl;
+
+import org.openecomp.ncomp.core.CoreFactory;
+import org.openecomp.ncomp.core.CorePackage;
+import org.openecomp.ncomp.core.DeploymentStatus;
+import org.openecomp.ncomp.core.Event;
+import org.openecomp.ncomp.core.HasOperationalState;
+import org.openecomp.ncomp.core.NamedEntity;
+import org.openecomp.ncomp.core.OperationalState;
+
+import org.openecomp.ncomp.core.User;
+import org.openecomp.ncomp.core.types.metrics.DateMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.LongMetricAttribute;
+import org.openecomp.ncomp.core.types.metrics.StringMetricAttribute;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.json.JSONObject;
+
+/**
+ *
+ * An implementation of the model Package.
+ *
+ * @generated
+ */
+public class CorePackageImpl extends EPackageImpl implements CorePackage {
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass namedEntityEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass eventEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass hasOperationalStateEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass userEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum operationalStateEEnum = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EEnum deploymentStatusEEnum = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType jsonObjectEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType remoteContextEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType increasingULongMetricAttributeEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType longMetricAttributeEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType doubleMetricAttributeEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType stringMetricAttributeEDataType = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EDataType dateMetricAttributeEDataType = null;
+
+ /**
+ * Creates an instance of the model Package, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.core.CorePackage#eNS_URI + * @see #init() + * @generated + */ + private CorePackageImpl() { + super(eNS_URI, CoreFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link CorePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CorePackage init() { + if (isInited) return (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Obtain or create and register package + CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CorePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCorePackage.createPackageContents(); + + // Initialize created meta-data + theCorePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCorePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CorePackage.eNS_URI, theCorePackage); + return theCorePackage; + } + + /** + * + * + * @generated + */ + public EClass getNamedEntity() { + return namedEntityEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNamedEntity_Name() { + return (EAttribute)namedEntityEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNamedEntity_LastPolled() { + return (EAttribute)namedEntityEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNamedEntity_LastChanged() { + return (EAttribute)namedEntityEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNamedEntity_Created() { + return (EAttribute)namedEntityEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getEvent() { + return eventEClass; + } + + /** + * + * + * @generated + */ + public EClass getHasOperationalState() { + return hasOperationalStateEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHasOperationalState_OperationalState() { + return (EAttribute)hasOperationalStateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getUser() { + return userEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getUser_PublicKey() { + return (EAttribute)userEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getUser_DeploymentStatus() { + return (EAttribute)userEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EEnum getOperationalState() { + return operationalStateEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getDeploymentStatus() { + return deploymentStatusEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getJsonObject() { + return jsonObjectEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getRemoteContext() { + return remoteContextEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getIncreasingULongMetricAttribute() { + return increasingULongMetricAttributeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getLongMetricAttribute() { + return longMetricAttributeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getDoubleMetricAttribute() { + return doubleMetricAttributeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getStringMetricAttribute() { + return stringMetricAttributeEDataType; + } + + /** + * + * + * @generated + */ + public EDataType getDateMetricAttribute() { + return dateMetricAttributeEDataType; + } + + /** + * + * + * @generated + */ + public CoreFactory getCoreFactory() { + return (CoreFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + namedEntityEClass = createEClass(NAMED_ENTITY); + createEAttribute(namedEntityEClass, NAMED_ENTITY__NAME); + createEAttribute(namedEntityEClass, NAMED_ENTITY__LAST_POLLED); + createEAttribute(namedEntityEClass, NAMED_ENTITY__LAST_CHANGED); + createEAttribute(namedEntityEClass, NAMED_ENTITY__CREATED); + + eventEClass = createEClass(EVENT); + + hasOperationalStateEClass = createEClass(HAS_OPERATIONAL_STATE); + createEAttribute(hasOperationalStateEClass, HAS_OPERATIONAL_STATE__OPERATIONAL_STATE); + + userEClass = createEClass(USER); + createEAttribute(userEClass, USER__PUBLIC_KEY); + createEAttribute(userEClass, USER__DEPLOYMENT_STATUS); + + // Create enums + operationalStateEEnum = createEEnum(OPERATIONAL_STATE); + deploymentStatusEEnum = createEEnum(DEPLOYMENT_STATUS); + + // Create data types + jsonObjectEDataType = createEDataType(JSON_OBJECT); + remoteContextEDataType = createEDataType(REMOTE_CONTEXT); + increasingULongMetricAttributeEDataType = createEDataType(INCREASING_ULONG_METRIC_ATTRIBUTE); + longMetricAttributeEDataType = createEDataType(LONG_METRIC_ATTRIBUTE); + doubleMetricAttributeEDataType = createEDataType(DOUBLE_METRIC_ATTRIBUTE); + stringMetricAttributeEDataType = createEDataType(STRING_METRIC_ATTRIBUTE); + dateMetricAttributeEDataType = createEDataType(DATE_METRIC_ATTRIBUTE); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + userEClass.getESuperTypes().add(this.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(namedEntityEClass, NamedEntity.class, "NamedEntity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamedEntity_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NamedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedEntity_LastPolled(), theEcorePackage.getEDate(), "lastPolled", null, 0, 1, NamedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedEntity_LastChanged(), theEcorePackage.getEDate(), "lastChanged", null, 0, 1, NamedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedEntity_Created(), theEcorePackage.getEDate(), "created", null, 0, 1, NamedEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eventEClass, Event.class, "Event", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(hasOperationalStateEClass, HasOperationalState.class, "HasOperationalState", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHasOperationalState_OperationalState(), this.getOperationalState(), "operationalState", null, 0, 1, HasOperationalState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(userEClass, User.class, "User", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUser_PublicKey(), theEcorePackage.getEString(), "publicKey", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getUser_DeploymentStatus(), this.getDeploymentStatus(), "deploymentStatus", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(operationalStateEEnum, OperationalState.class, "OperationalState"); + addEEnumLiteral(operationalStateEEnum, OperationalState.OPERATIONAL); + addEEnumLiteral(operationalStateEEnum, OperationalState.SUSPENDED); + + initEEnum(deploymentStatusEEnum, DeploymentStatus.class, "DeploymentStatus"); + addEEnumLiteral(deploymentStatusEEnum, DeploymentStatus.UNDEPLOYED); + addEEnumLiteral(deploymentStatusEEnum, DeploymentStatus.DEPLOYED); + addEEnumLiteral(deploymentStatusEEnum, DeploymentStatus.DEPLOYED_PARTIALLY); + addEEnumLiteral(deploymentStatusEEnum, DeploymentStatus.DEPLOYED_ERRORS); + + // Initialize data types + initEDataType(jsonObjectEDataType, JSONObject.class, "JsonObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(remoteContextEDataType, JSONObject.class, "RemoteContext", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(increasingULongMetricAttributeEDataType, IncreasingULongMetricAttribute.class, "IncreasingULongMetricAttribute", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(longMetricAttributeEDataType, LongMetricAttribute.class, "LongMetricAttribute", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(doubleMetricAttributeEDataType, DoubleMetricAttribute.class, "DoubleMetricAttribute", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(stringMetricAttributeEDataType, StringMetricAttribute.class, "StringMetricAttribute", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(dateMetricAttributeEDataType, DateMetricAttribute.class, "DateMetricAttribute", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org + createEcompAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "ecomp", "http://openecomp.org" + }); + } + + /** + * Initializes the annotations for http://openecomp.org. + * + * + * @generated + */ + protected void createEcompAnnotations() { + String source = "http://openecomp.org"; + addAnnotation + (getNamedEntity_Name(), + source, + new String[] { + "type", "configuration" + }); + } + +} //CorePackageImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/EventImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/EventImpl.java new file mode 100644 index 0000000..fa8e2f6 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/EventImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.impl; + +import org.openecomp.ncomp.core.CorePackage; +import org.openecomp.ncomp.core.Event; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Event'. + * + *
+ *
+ * + * @generated + */ +public abstract class EventImpl extends MinimalEObjectImpl.Container implements Event { + /** + * + * + * @generated + */ + protected EventImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.EVENT; + } + +} //EventImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/HasOperationalStateImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/HasOperationalStateImpl.java new file mode 100644 index 0000000..69ef8b0 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/impl/HasOperationalStateImpl.java @@ -0,0 +1,185 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.impl; + +import org.openecomp.ncomp.core.CorePackage; +import org.openecomp.ncomp.core.HasOperationalState; +import org.openecomp.ncomp.core.OperationalState; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Has Operational State'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are supported: + *
+ * If the meaning of the 'Files' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Files' containment reference list. + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogConfiguration_Files() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Filename' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Filename' attribute. + * @see #setFilename(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogFile_Filename() + * @model unique="false" + * @generated + */ + String getFilename(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogFile#getFilename Filename}' attribute. + * + * + * @param value the new value of the 'Filename' attribute. + * @see #getFilename() + * @generated + */ + void setFilename(String value); + + /** + * Returns the value of the 'Patterns' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.logs.LogPattern}. + * + *+ * If the meaning of the 'Patterns' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Patterns' containment reference list. + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogFile_Patterns() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of 'UNKNOWN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNKNOWN + * @model + * @generated + * @ordered + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * The 'TRACE' literal value. + * + *+ * If the meaning of 'TRACE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TRACE + * @model + * @generated + * @ordered + */ + public static final int TRACE_VALUE = 0; + + /** + * The 'DEBUG' literal value. + * + *+ * If the meaning of 'DEBUG' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DEBUG + * @model + * @generated + * @ordered + */ + public static final int DEBUG_VALUE = 0; + + /** + * The 'INFO' literal value. + * + *+ * If the meaning of 'INFO' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #INFO + * @model + * @generated + * @ordered + */ + public static final int INFO_VALUE = 0; + + /** + * The 'WARN' literal value. + * + *+ * If the meaning of 'WARN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #WARN + * @model + * @generated + * @ordered + */ + public static final int WARN_VALUE = 0; + + /** + * The 'ERROR' literal value. + * + *+ * If the meaning of 'ERROR' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #ERROR + * @model + * @generated + * @ordered + */ + public static final int ERROR_VALUE = 0; + + /** + * The 'FATAL' literal value. + * + *+ * If the meaning of 'FATAL' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FATAL + * @model + * @generated + * @ordered + */ + public static final int FATAL_VALUE = 0; + + /** + * An array of all the 'Log Level' enumerators. + * + * + * @generated + */ + private static final LogLevel[] VALUES_ARRAY = + new LogLevel[] { + UNKNOWN, + TRACE, + DEBUG, + INFO, + WARN, + ERROR, + FATAL, + }; + + /** + * A public read-only list of all the 'Log Level' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Time' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Time' attribute. + * @see #setTime(long) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_Time() + * @model unique="false" + * @generated + */ + long getTime(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getTime Time}' attribute. + * + * + * @param value the new value of the 'Time' attribute. + * @see #getTime() + * @generated + */ + void setTime(long value); + + /** + * Returns the value of the 'Resource Name' attribute. + * + *+ * If the meaning of the 'Resource Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Resource Name' attribute. + * @see #setResourceName(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_ResourceName() + * @model unique="false" + * @generated + */ + String getResourceName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getResourceName Resource Name}' attribute. + * + * + * @param value the new value of the 'Resource Name' attribute. + * @see #getResourceName() + * @generated + */ + void setResourceName(String value); + + /** + * Returns the value of the 'Severity' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogSeverity}. + * + *+ * If the meaning of the 'Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #setSeverity(LogSeverity) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_Severity() + * @model unique="false" + * @generated + */ + LogSeverity getSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getSeverity Severity}' attribute. + * + * + * @param value the new value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getSeverity() + * @generated + */ + void setSeverity(LogSeverity value); + + /** + * Returns the value of the 'Level' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogLevel}. + * + *+ * If the meaning of the 'Level' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #setLevel(LogLevel) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_Level() + * @model unique="false" + * @generated + */ + LogLevel getLevel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getLevel Level}' attribute. + * + * + * @param value the new value of the 'Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #getLevel() + * @generated + */ + void setLevel(LogLevel value); + + /** + * Returns the value of the 'Message' attribute. + * + *+ * If the meaning of the 'Message' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Message' attribute. + * @see #setMessage(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_Message() + * @model unique="false" + * @generated + */ + String getMessage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getMessage Message}' attribute. + * + * + * @param value the new value of the 'Message' attribute. + * @see #getMessage() + * @generated + */ + void setMessage(String value); + + /** + * Returns the value of the 'Category' attribute. + * + *+ * If the meaning of the 'Category' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Category' attribute. + * @see #setCategory(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_Category() + * @model unique="false" + * @generated + */ + String getCategory(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getCategory Category}' attribute. + * + * + * @param value the new value of the 'Category' attribute. + * @see #getCategory() + * @generated + */ + void setCategory(String value); + + /** + * Returns the value of the 'Number Of Suppressed' attribute. + * The default value is"0"
.
+ *
+ * + * If the meaning of the 'Number Of Suppressed' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Suppressed' attribute. + * @see #setNumberOfSuppressed(int) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_NumberOfSuppressed() + * @model default="0" unique="false" + * @generated + */ + int getNumberOfSuppressed(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getNumberOfSuppressed Number Of Suppressed}' attribute. + * + * + * @param value the new value of the 'Number Of Suppressed' attribute. + * @see #getNumberOfSuppressed() + * @generated + */ + void setNumberOfSuppressed(int value); + + /** + * Returns the value of the 'Suppressed Start Time' attribute. + * + *+ * If the meaning of the 'Suppressed Start Time' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Suppressed Start Time' attribute. + * @see #setSuppressedStartTime(Long) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessage_SuppressedStartTime() + * @model unique="false" + * @generated + */ + Long getSuppressedStartTime(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessage#getSuppressedStartTime Suppressed Start Time}' attribute. + * + * + * @param value the new value of the 'Suppressed Start Time' attribute. + * @see #getSuppressedStartTime() + * @generated + */ + void setSuppressedStartTime(Long value); + +} // LogMessage diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageCategory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageCategory.java new file mode 100644 index 0000000..ed8fe41 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageCategory.java @@ -0,0 +1,63 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.logs; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Log Message Category'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Stats' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Stats' containment reference list. + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageCategory_Stats() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Log Message Configuration' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Log Message Configuration' containment reference. + * @see #setLogMessageConfiguration(LogMessageContainerConfiguration) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageContainer_LogMessageConfiguration() + * @model containment="true" + * @generated + */ + LogMessageContainerConfiguration getLogMessageConfiguration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageContainer#getLogMessageConfiguration Log Message Configuration}' containment reference. + * + * + * @param value the new value of the 'Log Message Configuration' containment reference. + * @see #getLogMessageConfiguration() + * @generated + */ + void setLogMessageConfiguration(LogMessageContainerConfiguration value); + + /** + * Returns the value of the 'Log Message Categories' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.logs.LogMessageCategory}. + * + *+ * If the meaning of the 'Log Message Categories' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Log Message Categories' containment reference list. + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageContainer_LogMessageCategories() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Log Message Stats' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Log Message Stats' containment reference list. + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageContainer_LogMessageStats() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Message Filter' attribute. + * + *+ * If the meaning of the 'Message Filter' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Message Filter' attribute. + * @see #setMessageFilter(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_MessageFilter() + * @model unique="false" + * @generated + */ + String getMessageFilter(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getMessageFilter Message Filter}' attribute. + * + * + * @param value the new value of the 'Message Filter' attribute. + * @see #getMessageFilter() + * @generated + */ + void setMessageFilter(String value); + + /** + * Returns the value of the 'Resource Path Filter' attribute. + * + *+ * If the meaning of the 'Resource Path Filter' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Resource Path Filter' attribute. + * @see #setResourcePathFilter(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_ResourcePathFilter() + * @model unique="false" + * @generated + */ + String getResourcePathFilter(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getResourcePathFilter Resource Path Filter}' attribute. + * + * + * @param value the new value of the 'Resource Path Filter' attribute. + * @see #getResourcePathFilter() + * @generated + */ + void setResourcePathFilter(String value); + + /** + * Returns the value of the 'Level' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogLevel}. + * + *+ * If the meaning of the 'Level' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #setLevel(LogLevel) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_Level() + * @model unique="false" + * @generated + */ + LogLevel getLevel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getLevel Level}' attribute. + * + * + * @param value the new value of the 'Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #getLevel() + * @generated + */ + void setLevel(LogLevel value); + + /** + * Returns the value of the 'Severity' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogSeverity}. + * + *+ * If the meaning of the 'Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #setSeverity(LogSeverity) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_Severity() + * @model unique="false" + * @generated + */ + LogSeverity getSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getSeverity Severity}' attribute. + * + * + * @param value the new value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getSeverity() + * @generated + */ + void setSeverity(LogSeverity value); + + /** + * Returns the value of the 'New Level' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogLevel}. + * + *+ * If the meaning of the 'New Level' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'New Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #setNewLevel(LogLevel) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_NewLevel() + * @model unique="false" + * @generated + */ + LogLevel getNewLevel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getNewLevel New Level}' attribute. + * + * + * @param value the new value of the 'New Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #getNewLevel() + * @generated + */ + void setNewLevel(LogLevel value); + + /** + * Returns the value of the 'New Severity' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogSeverity}. + * + *+ * If the meaning of the 'New Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'New Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #setNewSeverity(LogSeverity) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_NewSeverity() + * @model unique="false" + * @generated + */ + LogSeverity getNewSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getNewSeverity New Severity}' attribute. + * + * + * @param value the new value of the 'New Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getNewSeverity() + * @generated + */ + void setNewSeverity(LogSeverity value); + + /** + * Returns the value of the 'New Category' attribute. + * + *+ * If the meaning of the 'New Category' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'New Category' attribute. + * @see #setNewCategory(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_NewCategory() + * @model unique="false" + * @generated + */ + String getNewCategory(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getNewCategory New Category}' attribute. + * + * + * @param value the new value of the 'New Category' attribute. + * @see #getNewCategory() + * @generated + */ + void setNewCategory(String value); + + /** + * Returns the value of the 'Disabled' attribute. + * The default value is"false"
.
+ *
+ * + * If the meaning of the 'Disabled' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Disabled' attribute. + * @see #setDisabled(boolean) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_Disabled() + * @model default="false" unique="false" + * @generated + */ + boolean isDisabled(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#isDisabled Disabled}' attribute. + * + * + * @param value the new value of the 'Disabled' attribute. + * @see #isDisabled() + * @generated + */ + void setDisabled(boolean value); + + /** + * Returns the value of the 'Update Function' reference. + * + *+ * If the meaning of the 'Update Function' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Update Function' reference. + * @see #setUpdateFunction(Function) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageRule_UpdateFunction() + * @model + * @generated + */ + Function getUpdateFunction(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageRule#getUpdateFunction Update Function}' reference. + * + * + * @param value the new value of the 'Update Function' reference. + * @see #getUpdateFunction() + * @generated + */ + void setUpdateFunction(Function value); + +} // LogMessageRule diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageState.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageState.java new file mode 100644 index 0000000..f529d45 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageState.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.logs; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Log Message State'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Suspended' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Suspended' attribute. + * @see #setSuspended(boolean) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageState_Suspended() + * @model unique="false" + * @generated + */ + boolean isSuspended(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageState#isSuspended Suspended}' attribute. + * + * + * @param value the new value of the 'Suspended' attribute. + * @see #isSuspended() + * @generated + */ + void setSuspended(boolean value); + + /** + * Returns the value of the 'Log' reference. + * + *+ * If the meaning of the 'Log' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Log' reference. + * @see #setLog(LogMessage) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageState_Log() + * @model + * @generated + */ + LogMessage getLog(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageState#getLog Log}' reference. + * + * + * @param value the new value of the 'Log' reference. + * @see #getLog() + * @generated + */ + void setLog(LogMessage value); + + /** + * Returns the value of the 'Category' reference. + * + *+ * If the meaning of the 'Category' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Category' reference. + * @see #setCategory(LogMessageCategory) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageState_Category() + * @model + * @generated + */ + LogMessageCategory getCategory(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageState#getCategory Category}' reference. + * + * + * @param value the new value of the 'Category' reference. + * @see #getCategory() + * @generated + */ + void setCategory(LogMessageCategory value); + +} // LogMessageState diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageStats.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageStats.java new file mode 100644 index 0000000..c1d2e65 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogMessageStats.java @@ -0,0 +1,132 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.logs; + +import org.openecomp.ncomp.core.NamedEntity; +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * + * A representation of the model object 'Log Message Stats'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Level' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #setLevel(LogLevel) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageStats_Level() + * @model unique="false" + * @generated + */ + LogLevel getLevel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageStats#getLevel Level}' attribute. + * + * + * @param value the new value of the 'Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #getLevel() + * @generated + */ + void setLevel(LogLevel value); + + /** + * Returns the value of the 'Severity' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogSeverity}. + * + *+ * If the meaning of the 'Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #setSeverity(LogSeverity) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageStats_Severity() + * @model unique="false" + * @generated + */ + LogSeverity getSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageStats#getSeverity Severity}' attribute. + * + * + * @param value the new value of the 'Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getSeverity() + * @generated + */ + void setSeverity(LogSeverity value); + + /** + * Returns the value of the 'Count' attribute. + * + *+ * If the meaning of the 'Count' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Count' attribute. + * @see #setCount(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogMessageStats_Count() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" + * @generated + */ + IncreasingULongMetricAttribute getCount(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogMessageStats#getCount Count}' attribute. + * + * + * @param value the new value of the 'Count' attribute. + * @see #getCount() + * @generated + */ + void setCount(IncreasingULongMetricAttribute value); + +} // LogMessageStats diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogPattern.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogPattern.java new file mode 100644 index 0000000..495ebc8 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogPattern.java @@ -0,0 +1,179 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.logs; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Log Pattern'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Pattern' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Pattern' attribute. + * @see #setPattern(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogPattern_Pattern() + * @model unique="false" + * @generated + */ + String getPattern(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogPattern#getPattern Pattern}' attribute. + * + * + * @param value the new value of the 'Pattern' attribute. + * @see #getPattern() + * @generated + */ + void setPattern(String value); + + /** + * Returns the value of the 'Message' attribute. + * + *+ * If the meaning of the 'Message' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Message' attribute. + * @see #setMessage(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogPattern_Message() + * @model unique="false" + * @generated + */ + String getMessage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogPattern#getMessage Message}' attribute. + * + * + * @param value the new value of the 'Message' attribute. + * @see #getMessage() + * @generated + */ + void setMessage(String value); + + /** + * Returns the value of the 'Level' attribute. + * + *+ * If the meaning of the 'Level' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Level' attribute. + * @see #setLevel(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogPattern_Level() + * @model unique="false" + * @generated + */ + String getLevel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogPattern#getLevel Level}' attribute. + * + * + * @param value the new value of the 'Level' attribute. + * @see #getLevel() + * @generated + */ + void setLevel(String value); + + /** + * Returns the value of the 'Severity' attribute. + * + *+ * If the meaning of the 'Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Severity' attribute. + * @see #setSeverity(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogPattern_Severity() + * @model unique="false" + * @generated + */ + String getSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogPattern#getSeverity Severity}' attribute. + * + * + * @param value the new value of the 'Severity' attribute. + * @see #getSeverity() + * @generated + */ + void setSeverity(String value); + + /** + * Returns the value of the 'Path' attribute. + * + *+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogPattern_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.logs.LogPattern#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // LogPattern diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogSeverity.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogSeverity.java new file mode 100644 index 0000000..2085eed --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/LogSeverity.java @@ -0,0 +1,306 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.logs; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Log Severity', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.core.logs.LogsPackage#getLogSeverity() + * @model + * @generated + */ +public enum LogSeverity implements Enumerator { + /** + * The 'UNKNOWN' literal object. + * + * + * @see #UNKNOWN_VALUE + * @generated + * @ordered + */ + UNKNOWN(0, "UNKNOWN", "UNKNOWN"), + + /** + * The 'SEV1' literal object. + * + * + * @see #SEV1_VALUE + * @generated + * @ordered + */ + SEV1(0, "SEV1", "SEV1"), + + /** + * The 'SEV2' literal object. + * + * + * @see #SEV2_VALUE + * @generated + * @ordered + */ + SEV2(0, "SEV2", "SEV2"), + + /** + * The 'SEV3' literal object. + * + * + * @see #SEV3_VALUE + * @generated + * @ordered + */ + SEV3(0, "SEV3", "SEV3"), + + /** + * The 'SEV4' literal object. + * + * + * @see #SEV4_VALUE + * @generated + * @ordered + */ + SEV4(0, "SEV4", "SEV4"); + + /** + * The 'UNKNOWN' literal value. + * + *+ * If the meaning of 'UNKNOWN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UNKNOWN + * @model + * @generated + * @ordered + */ + public static final int UNKNOWN_VALUE = 0; + + /** + * The 'SEV1' literal value. + * + *+ * If the meaning of 'SEV1' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV1 + * @model + * @generated + * @ordered + */ + public static final int SEV1_VALUE = 0; + + /** + * The 'SEV2' literal value. + * + *+ * If the meaning of 'SEV2' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV2 + * @model + * @generated + * @ordered + */ + public static final int SEV2_VALUE = 0; + + /** + * The 'SEV3' literal value. + * + *+ * If the meaning of 'SEV3' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV3 + * @model + * @generated + * @ordered + */ + public static final int SEV3_VALUE = 0; + + /** + * The 'SEV4' literal value. + * + *+ * If the meaning of 'SEV4' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SEV4 + * @model + * @generated + * @ordered + */ + public static final int SEV4_VALUE = 0; + + /** + * An array of all the 'Log Severity' enumerators. + * + * + * @generated + */ + private static final LogSeverity[] VALUES_ARRAY = + new LogSeverity[] { + UNKNOWN, + SEV1, + SEV2, + SEV3, + SEV4, + }; + + /** + * A public read-only list of all the 'Log Severity' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class LogMessageContainerConfigurationImpl extends MinimalEObjectImpl.Container implements LogMessageContainerConfiguration { + /** + * + * + * @generated + */ + protected LogMessageContainerConfigurationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LogsPackage.Literals.LOG_MESSAGE_CONTAINER_CONFIGURATION; + } + +} //LogMessageContainerConfigurationImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/impl/LogMessageContainerImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/impl/LogMessageContainerImpl.java new file mode 100644 index 0000000..f7b9ad7 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/impl/LogMessageContainerImpl.java @@ -0,0 +1,279 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.logs.impl; + +import org.openecomp.ncomp.core.logs.LogMessageCategory; +import org.openecomp.ncomp.core.logs.LogMessageContainer; +import org.openecomp.ncomp.core.logs.LogMessageContainerConfiguration; +import org.openecomp.ncomp.core.logs.LogMessageStats; +import org.openecomp.ncomp.core.logs.LogsPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Log Message Container'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.core.logs.LogsPackage#eNS_URI + * @see #init() + * @generated + */ + private LogsPackageImpl() { + super(eNS_URI, LogsFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link LogsPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ *
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static LogsPackage init() {
+ if (isInited) return (LogsPackage)EPackage.Registry.INSTANCE.getEPackage(LogsPackage.eNS_URI);
+
+ // Obtain or create and register package
+ LogsPackageImpl theLogsPackage = (LogsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof LogsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new LogsPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ FunctionPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theLogsPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theLogsPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theLogsPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(LogsPackage.eNS_URI, theLogsPackage);
+ return theLogsPackage;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessage() {
+ return logMessageEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_Time() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_ResourceName() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_Severity() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_Level() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_Message() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_Category() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_NumberOfSuppressed() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessage_SuppressedStartTime() {
+ return (EAttribute)logMessageEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessageRule() {
+ return logMessageRuleEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_Description() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_MessageFilter() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_ResourcePathFilter() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_Level() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_Severity() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_NewLevel() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_NewSeverity() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_NewCategory() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageRule_Disabled() {
+ return (EAttribute)logMessageRuleEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageRule_UpdateFunction() {
+ return (EReference)logMessageRuleEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessageContainer() {
+ return logMessageContainerEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageContainer_LogMessageConfiguration() {
+ return (EReference)logMessageContainerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageContainer_LogMessageCategories() {
+ return (EReference)logMessageContainerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageContainer_LogMessageStats() {
+ return (EReference)logMessageContainerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessageContainerConfiguration() {
+ return logMessageContainerConfigurationEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessageCategory() {
+ return logMessageCategoryEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageCategory_Stats() {
+ return (EReference)logMessageCategoryEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessageStats() {
+ return logMessageStatsEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageStats_Level() {
+ return (EAttribute)logMessageStatsEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageStats_Severity() {
+ return (EAttribute)logMessageStatsEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageStats_Count() {
+ return (EAttribute)logMessageStatsEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogMessageState() {
+ return logMessageStateEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogMessageState_Suspended() {
+ return (EAttribute)logMessageStateEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageState_Log() {
+ return (EReference)logMessageStateEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogMessageState_Category() {
+ return (EReference)logMessageStateEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogConfiguration() {
+ return logConfigurationEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogConfiguration_Files() {
+ return (EReference)logConfigurationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogFile() {
+ return logFileEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogFile_Filename() {
+ return (EAttribute)logFileEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getLogFile_Patterns() {
+ return (EReference)logFileEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getLogPattern() {
+ return logPatternEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogPattern_Pattern() {
+ return (EAttribute)logPatternEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogPattern_Message() {
+ return (EAttribute)logPatternEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogPattern_Level() {
+ return (EAttribute)logPatternEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogPattern_Severity() {
+ return (EAttribute)logPatternEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getLogPattern_Path() {
+ return (EAttribute)logPatternEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getLogLevel() {
+ return logLevelEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getLogSeverity() {
+ return logSeverityEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public LogsFactory getLogsFactory() {
+ return (LogsFactory)getEFactoryInstance();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ *
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ logMessageEClass = createEClass(LOG_MESSAGE);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__TIME);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__RESOURCE_NAME);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__SEVERITY);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__LEVEL);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__MESSAGE);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__CATEGORY);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__NUMBER_OF_SUPPRESSED);
+ createEAttribute(logMessageEClass, LOG_MESSAGE__SUPPRESSED_START_TIME);
+
+ logMessageRuleEClass = createEClass(LOG_MESSAGE_RULE);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__DESCRIPTION);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__MESSAGE_FILTER);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__RESOURCE_PATH_FILTER);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__LEVEL);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__SEVERITY);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__NEW_LEVEL);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__NEW_SEVERITY);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__NEW_CATEGORY);
+ createEAttribute(logMessageRuleEClass, LOG_MESSAGE_RULE__DISABLED);
+ createEReference(logMessageRuleEClass, LOG_MESSAGE_RULE__UPDATE_FUNCTION);
+
+ logMessageContainerEClass = createEClass(LOG_MESSAGE_CONTAINER);
+ createEReference(logMessageContainerEClass, LOG_MESSAGE_CONTAINER__LOG_MESSAGE_CONFIGURATION);
+ createEReference(logMessageContainerEClass, LOG_MESSAGE_CONTAINER__LOG_MESSAGE_CATEGORIES);
+ createEReference(logMessageContainerEClass, LOG_MESSAGE_CONTAINER__LOG_MESSAGE_STATS);
+
+ logMessageContainerConfigurationEClass = createEClass(LOG_MESSAGE_CONTAINER_CONFIGURATION);
+
+ logMessageCategoryEClass = createEClass(LOG_MESSAGE_CATEGORY);
+ createEReference(logMessageCategoryEClass, LOG_MESSAGE_CATEGORY__STATS);
+
+ logMessageStatsEClass = createEClass(LOG_MESSAGE_STATS);
+ createEAttribute(logMessageStatsEClass, LOG_MESSAGE_STATS__LEVEL);
+ createEAttribute(logMessageStatsEClass, LOG_MESSAGE_STATS__SEVERITY);
+ createEAttribute(logMessageStatsEClass, LOG_MESSAGE_STATS__COUNT);
+
+ logMessageStateEClass = createEClass(LOG_MESSAGE_STATE);
+ createEAttribute(logMessageStateEClass, LOG_MESSAGE_STATE__SUSPENDED);
+ createEReference(logMessageStateEClass, LOG_MESSAGE_STATE__LOG);
+ createEReference(logMessageStateEClass, LOG_MESSAGE_STATE__CATEGORY);
+
+ logConfigurationEClass = createEClass(LOG_CONFIGURATION);
+ createEReference(logConfigurationEClass, LOG_CONFIGURATION__FILES);
+
+ logFileEClass = createEClass(LOG_FILE);
+ createEAttribute(logFileEClass, LOG_FILE__FILENAME);
+ createEReference(logFileEClass, LOG_FILE__PATTERNS);
+
+ logPatternEClass = createEClass(LOG_PATTERN);
+ createEAttribute(logPatternEClass, LOG_PATTERN__PATTERN);
+ createEAttribute(logPatternEClass, LOG_PATTERN__MESSAGE);
+ createEAttribute(logPatternEClass, LOG_PATTERN__LEVEL);
+ createEAttribute(logPatternEClass, LOG_PATTERN__SEVERITY);
+ createEAttribute(logPatternEClass, LOG_PATTERN__PATH);
+
+ // Create enums
+ logLevelEEnum = createEEnum(LOG_LEVEL);
+ logSeverityEEnum = createEEnum(LOG_SEVERITY);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ *
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);
+ FunctionPackage theFunctionPackage = (FunctionPackage)EPackage.Registry.INSTANCE.getEPackage(FunctionPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ logMessageRuleEClass.getESuperTypes().add(theCorePackage.getNamedEntity());
+ logMessageCategoryEClass.getESuperTypes().add(theCorePackage.getNamedEntity());
+ logMessageStatsEClass.getESuperTypes().add(theCorePackage.getNamedEntity());
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(logMessageEClass, LogMessage.class, "LogMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLogMessage_Time(), theEcorePackage.getELong(), "time", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_ResourceName(), theEcorePackage.getEString(), "resourceName", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_Severity(), this.getLogSeverity(), "severity", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_Level(), this.getLogLevel(), "level", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_Message(), theEcorePackage.getEString(), "message", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_Category(), theEcorePackage.getEString(), "category", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_NumberOfSuppressed(), theEcorePackage.getEInt(), "numberOfSuppressed", "0", 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessage_SuppressedStartTime(), theEcorePackage.getELongObject(), "suppressedStartTime", null, 0, 1, LogMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logMessageRuleEClass, LogMessageRule.class, "LogMessageRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLogMessageRule_Description(), theEcorePackage.getEString(), "description", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_MessageFilter(), theEcorePackage.getEString(), "messageFilter", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_ResourcePathFilter(), theEcorePackage.getEString(), "resourcePathFilter", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_Level(), this.getLogLevel(), "level", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_Severity(), this.getLogSeverity(), "severity", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_NewLevel(), this.getLogLevel(), "newLevel", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_NewSeverity(), this.getLogSeverity(), "newSeverity", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_NewCategory(), theEcorePackage.getEString(), "newCategory", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageRule_Disabled(), theEcorePackage.getEBoolean(), "disabled", "false", 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLogMessageRule_UpdateFunction(), theFunctionPackage.getFunction(), null, "updateFunction", null, 0, 1, LogMessageRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logMessageContainerEClass, LogMessageContainer.class, "LogMessageContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getLogMessageContainer_LogMessageConfiguration(), this.getLogMessageContainerConfiguration(), null, "logMessageConfiguration", null, 0, 1, LogMessageContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLogMessageContainer_LogMessageCategories(), this.getLogMessageCategory(), null, "logMessageCategories", null, 0, -1, LogMessageContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLogMessageContainer_LogMessageStats(), this.getLogMessageStats(), null, "logMessageStats", null, 0, -1, LogMessageContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logMessageContainerConfigurationEClass, LogMessageContainerConfiguration.class, "LogMessageContainerConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(logMessageCategoryEClass, LogMessageCategory.class, "LogMessageCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getLogMessageCategory_Stats(), this.getLogMessageStats(), null, "stats", null, 0, -1, LogMessageCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logMessageStatsEClass, LogMessageStats.class, "LogMessageStats", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLogMessageStats_Level(), this.getLogLevel(), "level", null, 0, 1, LogMessageStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageStats_Severity(), this.getLogSeverity(), "severity", null, 0, 1, LogMessageStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogMessageStats_Count(), theCorePackage.getIncreasingULongMetricAttribute(), "count", null, 0, 1, LogMessageStats.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logMessageStateEClass, LogMessageState.class, "LogMessageState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLogMessageState_Suspended(), theEcorePackage.getEBoolean(), "suspended", null, 0, 1, LogMessageState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLogMessageState_Log(), this.getLogMessage(), null, "log", null, 0, 1, LogMessageState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLogMessageState_Category(), this.getLogMessageCategory(), null, "category", null, 0, 1, LogMessageState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logConfigurationEClass, LogConfiguration.class, "LogConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getLogConfiguration_Files(), this.getLogFile(), null, "files", null, 0, -1, LogConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logFileEClass, LogFile.class, "LogFile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLogFile_Filename(), theEcorePackage.getEString(), "filename", null, 0, 1, LogFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getLogFile_Patterns(), this.getLogPattern(), null, "patterns", null, 0, -1, LogFile.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(logPatternEClass, LogPattern.class, "LogPattern", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getLogPattern_Pattern(), theEcorePackage.getEString(), "pattern", null, 0, 1, LogPattern.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogPattern_Message(), theEcorePackage.getEString(), "message", null, 0, 1, LogPattern.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogPattern_Level(), theEcorePackage.getEString(), "level", null, 0, 1, LogPattern.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogPattern_Severity(), theEcorePackage.getEString(), "severity", null, 0, 1, LogPattern.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getLogPattern_Path(), theEcorePackage.getEString(), "path", null, 0, 1, LogPattern.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(logLevelEEnum, LogLevel.class, "LogLevel");
+ addEEnumLiteral(logLevelEEnum, LogLevel.UNKNOWN);
+ addEEnumLiteral(logLevelEEnum, LogLevel.TRACE);
+ addEEnumLiteral(logLevelEEnum, LogLevel.DEBUG);
+ addEEnumLiteral(logLevelEEnum, LogLevel.INFO);
+ addEEnumLiteral(logLevelEEnum, LogLevel.WARN);
+ addEEnumLiteral(logLevelEEnum, LogLevel.ERROR);
+ addEEnumLiteral(logLevelEEnum, LogLevel.FATAL);
+
+ initEEnum(logSeverityEEnum, LogSeverity.class, "LogSeverity");
+ addEEnumLiteral(logSeverityEEnum, LogSeverity.UNKNOWN);
+ addEEnumLiteral(logSeverityEEnum, LogSeverity.SEV1);
+ addEEnumLiteral(logSeverityEEnum, LogSeverity.SEV2);
+ addEEnumLiteral(logSeverityEEnum, LogSeverity.SEV3);
+ addEEnumLiteral(logSeverityEEnum, LogSeverity.SEV4);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //LogsPackageImpl
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/util/LogsAdapterFactory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/util/LogsAdapterFactory.java
new file mode 100644
index 0000000..5b8d1fb
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/util/LogsAdapterFactory.java
@@ -0,0 +1,323 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.logs.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.core.logs.*;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * The Adapter Factory for the model.
+ * It provides an adapter
+ * The following features are supported:
+ * createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.core.logs.LogsPackage
+ * @generated
+ */
+public class LogsAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static LogsPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public LogsAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = LogsPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected LogsSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessage Log Message}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessage
+ * @generated
+ */
+ public Adapter createLogMessageAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageRule Log Message Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessageRule
+ * @generated
+ */
+ public Adapter createLogMessageRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageContainer Log Message Container}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessageContainer
+ * @generated
+ */
+ public Adapter createLogMessageContainerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageContainerConfiguration Log Message Container Configuration}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessageContainerConfiguration
+ * @generated
+ */
+ public Adapter createLogMessageContainerConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageCategory Log Message Category}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessageCategory
+ * @generated
+ */
+ public Adapter createLogMessageCategoryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageStats Log Message Stats}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessageStats
+ * @generated
+ */
+ public Adapter createLogMessageStatsAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogMessageState Log Message State}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogMessageState
+ * @generated
+ */
+ public Adapter createLogMessageStateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogConfiguration Log Configuration}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogConfiguration
+ * @generated
+ */
+ public Adapter createLogConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogFile Log File}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogFile
+ * @generated
+ */
+ public Adapter createLogFileAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.logs.LogPattern Log Pattern}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.logs.LogPattern
+ * @generated
+ */
+ public Adapter createLogPatternAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //LogsAdapterFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/util/LogsSwitch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/util/LogsSwitch.java
new file mode 100644
index 0000000..2e1d369
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/logs/util/LogsSwitch.java
@@ -0,0 +1,340 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.logs.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.core.logs.*;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.core.logs.LogsPackage
+ * @generated
+ */
+public class LogsSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case LogsPackage.LOG_MESSAGE: {
+ LogMessage logMessage = (LogMessage)theEObject;
+ T result = caseLogMessage(logMessage);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_MESSAGE_RULE: {
+ LogMessageRule logMessageRule = (LogMessageRule)theEObject;
+ T result = caseLogMessageRule(logMessageRule);
+ if (result == null) result = caseNamedEntity(logMessageRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_MESSAGE_CONTAINER: {
+ LogMessageContainer logMessageContainer = (LogMessageContainer)theEObject;
+ T result = caseLogMessageContainer(logMessageContainer);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_MESSAGE_CONTAINER_CONFIGURATION: {
+ LogMessageContainerConfiguration logMessageContainerConfiguration = (LogMessageContainerConfiguration)theEObject;
+ T result = caseLogMessageContainerConfiguration(logMessageContainerConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_MESSAGE_CATEGORY: {
+ LogMessageCategory logMessageCategory = (LogMessageCategory)theEObject;
+ T result = caseLogMessageCategory(logMessageCategory);
+ if (result == null) result = caseNamedEntity(logMessageCategory);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_MESSAGE_STATS: {
+ LogMessageStats logMessageStats = (LogMessageStats)theEObject;
+ T result = caseLogMessageStats(logMessageStats);
+ if (result == null) result = caseNamedEntity(logMessageStats);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_MESSAGE_STATE: {
+ LogMessageState logMessageState = (LogMessageState)theEObject;
+ T result = caseLogMessageState(logMessageState);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_CONFIGURATION: {
+ LogConfiguration logConfiguration = (LogConfiguration)theEObject;
+ T result = caseLogConfiguration(logConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_FILE: {
+ LogFile logFile = (LogFile)theEObject;
+ T result = caseLogFile(logFile);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LogsPackage.LOG_PATTERN: {
+ LogPattern logPattern = (LogPattern)theEObject;
+ T result = caseLogPattern(logPattern);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessage(LogMessage object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessageRule(LogMessageRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message Container'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessageContainer(LogMessageContainer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message Container Configuration'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message Container Configuration'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessageContainerConfiguration(LogMessageContainerConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message Category'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message Category'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessageCategory(LogMessageCategory object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message Stats'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message Stats'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessageStats(LogMessageStats object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Message State'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Message State'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogMessageState(LogMessageState object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Configuration'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Configuration'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogConfiguration(LogConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log File'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log File'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogFile(LogFile object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Pattern'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Log Pattern'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogPattern(LogPattern object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //LogsSwitch
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/AggregationMetricValueOption.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/AggregationMetricValueOption.java
new file mode 100644
index 0000000..02c074d
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/AggregationMetricValueOption.java
@@ -0,0 +1,100 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.metrics;
+
+
+/**
+ *
+ * A representation of the model object 'Aggregation Metric Value Option'.
+ *
+ *
+ *
+ *
+ *
+ * If the meaning of the 'Duration' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Duration' attribute. + * @see #setDuration(String) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getAggregationMetricValueOption_Duration() + * @model unique="false" + * @generated + */ + String getDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.AggregationMetricValueOption#getDuration Duration}' attribute. + * + * + * @param value the new value of the 'Duration' attribute. + * @see #getDuration() + * @generated + */ + void setDuration(String value); + + /** + * Returns the value of the 'Aggregation Type' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.metrics.AggregationMetricValueOptionType}. + * + *+ * If the meaning of the 'Aggregation Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Aggregation Type' attribute. + * @see org.openecomp.ncomp.core.metrics.AggregationMetricValueOptionType + * @see #setAggregationType(AggregationMetricValueOptionType) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getAggregationMetricValueOption_AggregationType() + * @model unique="false" + * @generated + */ + AggregationMetricValueOptionType getAggregationType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.AggregationMetricValueOption#getAggregationType Aggregation Type}' attribute. + * + * + * @param value the new value of the 'Aggregation Type' attribute. + * @see org.openecomp.ncomp.core.metrics.AggregationMetricValueOptionType + * @see #getAggregationType() + * @generated + */ + void setAggregationType(AggregationMetricValueOptionType value); + +} // AggregationMetricValueOption diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/AggregationMetricValueOptionType.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/AggregationMetricValueOptionType.java new file mode 100644 index 0000000..6f83e1d --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/AggregationMetricValueOptionType.java @@ -0,0 +1,306 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Aggregation Metric Value Option Type', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getAggregationMetricValueOptionType() + * @model + * @generated + */ +public enum AggregationMetricValueOptionType implements Enumerator { + /** + * The 'SUM' literal object. + * + * + * @see #SUM_VALUE + * @generated + * @ordered + */ + SUM(0, "SUM", "SUM"), + + /** + * The 'AVERAGE' literal object. + * + * + * @see #AVERAGE_VALUE + * @generated + * @ordered + */ + AVERAGE(0, "AVERAGE", "AVERAGE"), + + /** + * The 'COUNT' literal object. + * + * + * @see #COUNT_VALUE + * @generated + * @ordered + */ + COUNT(0, "COUNT", "COUNT"), + + /** + * The 'MAX' literal object. + * + * + * @see #MAX_VALUE + * @generated + * @ordered + */ + MAX(0, "MAX", "MAX"), + + /** + * The 'MIN' literal object. + * + * + * @see #MIN_VALUE + * @generated + * @ordered + */ + MIN(0, "MIN", "MIN"); + + /** + * The 'SUM' literal value. + * + *+ * If the meaning of 'SUM' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SUM + * @model + * @generated + * @ordered + */ + public static final int SUM_VALUE = 0; + + /** + * The 'AVERAGE' literal value. + * + *+ * If the meaning of 'AVERAGE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #AVERAGE + * @model + * @generated + * @ordered + */ + public static final int AVERAGE_VALUE = 0; + + /** + * The 'COUNT' literal value. + * + *+ * If the meaning of 'COUNT' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #COUNT + * @model + * @generated + * @ordered + */ + public static final int COUNT_VALUE = 0; + + /** + * The 'MAX' literal value. + * + *+ * If the meaning of 'MAX' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MAX + * @model + * @generated + * @ordered + */ + public static final int MAX_VALUE = 0; + + /** + * The 'MIN' literal value. + * + *+ * If the meaning of 'MIN' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MIN + * @model + * @generated + * @ordered + */ + public static final int MIN_VALUE = 0; + + /** + * An array of all the 'Aggregation Metric Value Option Type' enumerators. + * + * + * @generated + */ + private static final AggregationMetricValueOptionType[] VALUES_ARRAY = + new AggregationMetricValueOptionType[] { + SUM, + AVERAGE, + COUNT, + MAX, + MIN, + }; + + /** + * A public read-only list of all the 'Aggregation Metric Value Option Type' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(DoubleMetricAttribute) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getBasicDoubleMetric_Value() + * @model unique="false" dataType="org.openecomp.ncomp.core.DoubleMetricAttribute" transient="true" + * @generated + */ + DoubleMetricAttribute getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.BasicDoubleMetric#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(DoubleMetricAttribute value); + +} // BasicDoubleMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicIncreasingULongMetric.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicIncreasingULongMetric.java new file mode 100644 index 0000000..644c808 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicIncreasingULongMetric.java @@ -0,0 +1,71 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; + +/** + * + * A representation of the model object 'Basic Increasing ULong Metric'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(IncreasingULongMetricAttribute) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getBasicIncreasingULongMetric_Value() + * @model unique="false" dataType="org.openecomp.ncomp.core.IncreasingULongMetricAttribute" transient="true" + * @generated + */ + IncreasingULongMetricAttribute getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.BasicIncreasingULongMetric#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(IncreasingULongMetricAttribute value); + +} // BasicIncreasingULongMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicLongMetric.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicLongMetric.java new file mode 100644 index 0000000..9d1718a --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicLongMetric.java @@ -0,0 +1,71 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.openecomp.ncomp.core.types.metrics.LongMetricAttribute; + +/** + * + * A representation of the model object 'Basic Long Metric'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(LongMetricAttribute) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getBasicLongMetric_Value() + * @model unique="false" dataType="org.openecomp.ncomp.core.LongMetricAttribute" transient="true" + * @generated + */ + LongMetricAttribute getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.BasicLongMetric#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(LongMetricAttribute value); + +} // BasicLongMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetric.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetric.java new file mode 100644 index 0000000..5a6674d --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetric.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Basic Metric'. + * + * + * + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getBasicMetric() + * @model abstract="true" + * @generated + */ +public interface BasicMetric extends NamedEntity { +} // BasicMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetricValueOption.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetricValueOption.java new file mode 100644 index 0000000..71f62ed --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetricValueOption.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + + +/** + * + * A representation of the model object 'Basic Metric Value Option'. + * + * + * + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getBasicMetricValueOption() + * @model + * @generated + */ +public interface BasicMetricValueOption extends MetricValueOption { +} // BasicMetricValueOption diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetrics.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetrics.java new file mode 100644 index 0000000..7216ecc --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/BasicMetrics.java @@ -0,0 +1,61 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Basic Metrics'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Metrics' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metrics' containment reference list. + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getBasicMetrics_Metrics() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(double) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getDoubleMetric_Value() + * @model unique="false" + * @generated + */ + double getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.DoubleMetric#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(double value); + +} // DoubleMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/LongMetric.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/LongMetric.java new file mode 100644 index 0000000..4150224 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/LongMetric.java @@ -0,0 +1,126 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + + +/** + * + * A representation of the model object 'Long Metric'. + * + * + *+ * The following features are supported: + *
"false"
.
+ *
+ * + * If the meaning of the 'Increasing' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Increasing' attribute. + * @see #setIncreasing(boolean) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getLongMetric_Increasing() + * @model default="false" unique="false" + * @generated + */ + boolean isIncreasing(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.LongMetric#isIncreasing Increasing}' attribute. + * + * + * @param value the new value of the 'Increasing' attribute. + * @see #isIncreasing() + * @generated + */ + void setIncreasing(boolean value); + + /** + * Returns the value of the 'Delta' attribute. + * The default value is"false"
.
+ *
+ * + * If the meaning of the 'Delta' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Delta' attribute. + * @see #setDelta(boolean) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getLongMetric_Delta() + * @model default="false" unique="false" + * @generated + */ + boolean isDelta(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.LongMetric#isDelta Delta}' attribute. + * + * + * @param value the new value of the 'Delta' attribute. + * @see #isDelta() + * @generated + */ + void setDelta(boolean value); + + /** + * Returns the value of the 'Value' attribute. + * + *+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(long) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getLongMetric_Value() + * @model unique="false" + * @generated + */ + long getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.LongMetric#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(long value); + +} // LongMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/Metric.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/Metric.java new file mode 100644 index 0000000..2997236 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/Metric.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Metric'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Time' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Time' attribute. + * @see #setTime(long) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getMetric_Time() + * @model unique="false" + * @generated + */ + long getTime(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.Metric#getTime Time}' attribute. + * + * + * @param value the new value of the 'Time' attribute. + * @see #getTime() + * @generated + */ + void setTime(long value); + + /** + * Returns the value of the 'Resource Name' attribute. + * + *+ * If the meaning of the 'Resource Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Resource Name' attribute. + * @see #setResourceName(String) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getMetric_ResourceName() + * @model unique="false" + * @generated + */ + String getResourceName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.Metric#getResourceName Resource Name}' attribute. + * + * + * @param value the new value of the 'Resource Name' attribute. + * @see #getResourceName() + * @generated + */ + void setResourceName(String value); + + /** + * Returns the value of the 'Metric Name' attribute. + * + *+ * If the meaning of the 'Metric Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metric Name' attribute. + * @see #setMetricName(String) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getMetric_MetricName() + * @model unique="false" + * @generated + */ + String getMetricName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.Metric#getMetricName Metric Name}' attribute. + * + * + * @param value the new value of the 'Metric Name' attribute. + * @see #getMetricName() + * @generated + */ + void setMetricName(String value); + +} // Metric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricValueOption.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricValueOption.java new file mode 100644 index 0000000..07b0938 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricValueOption.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Metric Value Option'. + * + * + * + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getMetricValueOption() + * @model abstract="true" + * @generated + */ +public interface MetricValueOption extends NamedEntity { +} // MetricValueOption diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsContainer.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsContainer.java new file mode 100644 index 0000000..3087a2f --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsContainer.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Container'. + * + * + * + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getMetricsContainer() + * @model abstract="true" + * @generated + */ +public interface MetricsContainer extends EObject { +} // MetricsContainer diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsFactory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsFactory.java new file mode 100644 index 0000000..f1942dc --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsFactory.java @@ -0,0 +1,144 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.core.metrics.MetricsPackage + * @generated + */ +public interface MetricsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + MetricsFactory eINSTANCE = org.openecomp.ncomp.core.metrics.impl.MetricsFactoryImpl.init(); + + /** + * Returns a new object of class 'Double Metric'. + * + * + * @return a new object of class 'Double Metric'. + * @generated + */ + DoubleMetric createDoubleMetric(); + + /** + * Returns a new object of class 'Long Metric'. + * + * + * @return a new object of class 'Long Metric'. + * @generated + */ + LongMetric createLongMetric(); + + /** + * Returns a new object of class 'String Metric'. + * + * + * @return a new object of class 'String Metric'. + * @generated + */ + StringMetric createStringMetric(); + + /** + * Returns a new object of class 'Aggregation Metric Value Option'. + * + * + * @return a new object of class 'Aggregation Metric Value Option'. + * @generated + */ + AggregationMetricValueOption createAggregationMetricValueOption(); + + /** + * Returns a new object of class 'Basic Metric Value Option'. + * + * + * @return a new object of class 'Basic Metric Value Option'. + * @generated + */ + BasicMetricValueOption createBasicMetricValueOption(); + + /** + * Returns a new object of class 'Sequence Metric Value Option'. + * + * + * @return a new object of class 'Sequence Metric Value Option'. + * @generated + */ + SequenceMetricValueOption createSequenceMetricValueOption(); + + /** + * Returns a new object of class 'Basic Metrics'. + * + * + * @return a new object of class 'Basic Metrics'. + * @generated + */ + BasicMetrics createBasicMetrics(); + + /** + * Returns a new object of class 'Basic Increasing ULong Metric'. + * + * + * @return a new object of class 'Basic Increasing ULong Metric'. + * @generated + */ + BasicIncreasingULongMetric createBasicIncreasingULongMetric(); + + /** + * Returns a new object of class 'Basic Long Metric'. + * + * + * @return a new object of class 'Basic Long Metric'. + * @generated + */ + BasicLongMetric createBasicLongMetric(); + + /** + * Returns a new object of class 'Basic Double Metric'. + * + * + * @return a new object of class 'Basic Double Metric'. + * @generated + */ + BasicDoubleMetric createBasicDoubleMetric(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + MetricsPackage getMetricsPackage(); + +} //MetricsFactory diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsPackage.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsPackage.java new file mode 100644 index 0000000..091b5de --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/MetricsPackage.java @@ -0,0 +1,1601 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics; + +import org.openecomp.ncomp.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * The following features are supported: + *
+ * If the meaning of the 'Options' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Options' containment reference list. + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getSequenceMetricValueOption_Options() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#getStringMetric_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.core.metrics.StringMetric#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // StringMetric diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/AggregationMetricValueOptionImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/AggregationMetricValueOptionImpl.java new file mode 100644 index 0000000..b3b1354 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/AggregationMetricValueOptionImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.metrics.AggregationMetricValueOption; +import org.openecomp.ncomp.core.metrics.AggregationMetricValueOptionType; +import org.openecomp.ncomp.core.metrics.MetricsPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Aggregation Metric Value Option'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class BasicMetricImpl extends NamedEntityImpl implements BasicMetric { + /** + * + * + * @generated + */ + protected BasicMetricImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return MetricsPackage.Literals.BASIC_METRIC; + } + +} //BasicMetricImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/BasicMetricValueOptionImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/BasicMetricValueOptionImpl.java new file mode 100644 index 0000000..5855129 --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/BasicMetricValueOptionImpl.java @@ -0,0 +1,60 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.metrics.BasicMetricValueOption; +import org.openecomp.ncomp.core.metrics.MetricsPackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Basic Metric Value Option'. + * + *+ *
+ * + * @generated + */ +public class BasicMetricValueOptionImpl extends MetricValueOptionImpl implements BasicMetricValueOption { + /** + * + * + * @generated + */ + protected BasicMetricValueOptionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return MetricsPackage.Literals.BASIC_METRIC_VALUE_OPTION; + } + +} //BasicMetricValueOptionImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/BasicMetricsImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/BasicMetricsImpl.java new file mode 100644 index 0000000..9818fff --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/BasicMetricsImpl.java @@ -0,0 +1,171 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.metrics.BasicMetric; +import org.openecomp.ncomp.core.metrics.BasicMetrics; +import org.openecomp.ncomp.core.metrics.MetricsPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Basic Metrics'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class MetricValueOptionImpl extends NamedEntityImpl implements MetricValueOption { + /** + * + * + * @generated + */ + protected MetricValueOptionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return MetricsPackage.Literals.METRIC_VALUE_OPTION; + } + +} //MetricValueOptionImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsContainerImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsContainerImpl.java new file mode 100644 index 0000000..b8c88ce --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsContainerImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.metrics.MetricsContainer; +import org.openecomp.ncomp.core.metrics.MetricsPackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Container'. + * + *+ *
+ * + * @generated + */ +public abstract class MetricsContainerImpl extends MinimalEObjectImpl.Container implements MetricsContainer { + /** + * + * + * @generated + */ + protected MetricsContainerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return MetricsPackage.Literals.METRICS_CONTAINER; + } + +} //MetricsContainerImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsFactoryImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsFactoryImpl.java new file mode 100644 index 0000000..0fdfd2c --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsFactoryImpl.java @@ -0,0 +1,266 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.metrics.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class MetricsFactoryImpl extends EFactoryImpl implements MetricsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static MetricsFactory init() { + try { + MetricsFactory theMetricsFactory = (MetricsFactory)EPackage.Registry.INSTANCE.getEFactory(MetricsPackage.eNS_URI); + if (theMetricsFactory != null) { + return theMetricsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new MetricsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public MetricsFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case MetricsPackage.DOUBLE_METRIC: return createDoubleMetric(); + case MetricsPackage.LONG_METRIC: return createLongMetric(); + case MetricsPackage.STRING_METRIC: return createStringMetric(); + case MetricsPackage.AGGREGATION_METRIC_VALUE_OPTION: return createAggregationMetricValueOption(); + case MetricsPackage.BASIC_METRIC_VALUE_OPTION: return createBasicMetricValueOption(); + case MetricsPackage.SEQUENCE_METRIC_VALUE_OPTION: return createSequenceMetricValueOption(); + case MetricsPackage.BASIC_METRICS: return createBasicMetrics(); + case MetricsPackage.BASIC_INCREASING_ULONG_METRIC: return createBasicIncreasingULongMetric(); + case MetricsPackage.BASIC_LONG_METRIC: return createBasicLongMetric(); + case MetricsPackage.BASIC_DOUBLE_METRIC: return createBasicDoubleMetric(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case MetricsPackage.AGGREGATION_METRIC_VALUE_OPTION_TYPE: + return createAggregationMetricValueOptionTypeFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case MetricsPackage.AGGREGATION_METRIC_VALUE_OPTION_TYPE: + return convertAggregationMetricValueOptionTypeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public DoubleMetric createDoubleMetric() { + DoubleMetricImpl doubleMetric = new DoubleMetricImpl(); + return doubleMetric; + } + + /** + * + * + * @generated + */ + public LongMetric createLongMetric() { + LongMetricImpl longMetric = new LongMetricImpl(); + return longMetric; + } + + /** + * + * + * @generated + */ + public StringMetric createStringMetric() { + StringMetricImpl stringMetric = new StringMetricImpl(); + return stringMetric; + } + + /** + * + * + * @generated + */ + public AggregationMetricValueOption createAggregationMetricValueOption() { + AggregationMetricValueOptionImpl aggregationMetricValueOption = new AggregationMetricValueOptionImpl(); + return aggregationMetricValueOption; + } + + /** + * + * + * @generated + */ + public BasicMetricValueOption createBasicMetricValueOption() { + BasicMetricValueOptionImpl basicMetricValueOption = new BasicMetricValueOptionImpl(); + return basicMetricValueOption; + } + + /** + * + * + * @generated + */ + public SequenceMetricValueOption createSequenceMetricValueOption() { + SequenceMetricValueOptionImpl sequenceMetricValueOption = new SequenceMetricValueOptionImpl(); + return sequenceMetricValueOption; + } + + /** + * + * + * @generated + */ + public BasicMetrics createBasicMetrics() { + BasicMetricsImpl basicMetrics = new BasicMetricsImpl(); + return basicMetrics; + } + + /** + * + * + * @generated + */ + public BasicIncreasingULongMetric createBasicIncreasingULongMetric() { + BasicIncreasingULongMetricImpl basicIncreasingULongMetric = new BasicIncreasingULongMetricImpl(); + return basicIncreasingULongMetric; + } + + /** + * + * + * @generated + */ + public BasicLongMetric createBasicLongMetric() { + BasicLongMetricImpl basicLongMetric = new BasicLongMetricImpl(); + return basicLongMetric; + } + + /** + * + * + * @generated + */ + public BasicDoubleMetric createBasicDoubleMetric() { + BasicDoubleMetricImpl basicDoubleMetric = new BasicDoubleMetricImpl(); + return basicDoubleMetric; + } + + /** + * + * + * @generated + */ + public AggregationMetricValueOptionType createAggregationMetricValueOptionTypeFromString(EDataType eDataType, String initialValue) { + AggregationMetricValueOptionType result = AggregationMetricValueOptionType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertAggregationMetricValueOptionTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public MetricsPackage getMetricsPackage() { + return (MetricsPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static MetricsPackage getPackage() { + return MetricsPackage.eINSTANCE; + } + +} //MetricsFactoryImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsPackageImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsPackageImpl.java new file mode 100644 index 0000000..3a321dd --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/MetricsPackageImpl.java @@ -0,0 +1,677 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.CorePackage; + +import org.openecomp.ncomp.core.metrics.AggregationMetricValueOption; +import org.openecomp.ncomp.core.metrics.AggregationMetricValueOptionType; +import org.openecomp.ncomp.core.metrics.BasicDoubleMetric; +import org.openecomp.ncomp.core.metrics.BasicIncreasingULongMetric; +import org.openecomp.ncomp.core.metrics.BasicLongMetric; +import org.openecomp.ncomp.core.metrics.BasicMetric; +import org.openecomp.ncomp.core.metrics.BasicMetricValueOption; +import org.openecomp.ncomp.core.metrics.BasicMetrics; +import org.openecomp.ncomp.core.metrics.DoubleMetric; +import org.openecomp.ncomp.core.metrics.LongMetric; +import org.openecomp.ncomp.core.metrics.Metric; +import org.openecomp.ncomp.core.metrics.MetricValueOption; +import org.openecomp.ncomp.core.metrics.MetricsContainer; +import org.openecomp.ncomp.core.metrics.MetricsFactory; +import org.openecomp.ncomp.core.metrics.MetricsPackage; +import org.openecomp.ncomp.core.metrics.SequenceMetricValueOption; + +import org.openecomp.ncomp.core.metrics.StringMetric; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class MetricsPackageImpl extends EPackageImpl implements MetricsPackage { + /** + * + * + * @generated + */ + private EClass metricEClass = null; + + /** + * + * + * @generated + */ + private EClass doubleMetricEClass = null; + + /** + * + * + * @generated + */ + private EClass longMetricEClass = null; + + /** + * + * + * @generated + */ + private EClass stringMetricEClass = null; + + /** + * + * + * @generated + */ + private EClass metricValueOptionEClass = null; + + /** + * + * + * @generated + */ + private EClass aggregationMetricValueOptionEClass = null; + + /** + * + * + * @generated + */ + private EClass basicMetricValueOptionEClass = null; + + /** + * + * + * @generated + */ + private EClass sequenceMetricValueOptionEClass = null; + + /** + * + * + * @generated + */ + private EClass metricsContainerEClass = null; + + /** + * + * + * @generated + */ + private EClass basicMetricsEClass = null; + + /** + * + * + * @generated + */ + private EClass basicMetricEClass = null; + + /** + * + * + * @generated + */ + private EClass basicIncreasingULongMetricEClass = null; + + /** + * + * + * @generated + */ + private EClass basicLongMetricEClass = null; + + /** + * + * + * @generated + */ + private EClass basicDoubleMetricEClass = null; + + /** + * + * + * @generated + */ + private EEnum aggregationMetricValueOptionTypeEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.core.metrics.MetricsPackage#eNS_URI + * @see #init() + * @generated + */ + private MetricsPackageImpl() { + super(eNS_URI, MetricsFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link MetricsPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static MetricsPackage init() { + if (isInited) return (MetricsPackage)EPackage.Registry.INSTANCE.getEPackage(MetricsPackage.eNS_URI); + + // Obtain or create and register package + MetricsPackageImpl theMetricsPackage = (MetricsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MetricsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new MetricsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theMetricsPackage.createPackageContents(); + + // Initialize created meta-data + theMetricsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMetricsPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MetricsPackage.eNS_URI, theMetricsPackage); + return theMetricsPackage; + } + + /** + * + * + * @generated + */ + public EClass getMetric() { + return metricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMetric_Time() { + return (EAttribute)metricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMetric_ResourceName() { + return (EAttribute)metricEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getMetric_MetricName() { + return (EAttribute)metricEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getDoubleMetric() { + return doubleMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDoubleMetric_Value() { + return (EAttribute)doubleMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getLongMetric() { + return longMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getLongMetric_Increasing() { + return (EAttribute)longMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getLongMetric_Delta() { + return (EAttribute)longMetricEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getLongMetric_Value() { + return (EAttribute)longMetricEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getStringMetric() { + return stringMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getStringMetric_Value() { + return (EAttribute)stringMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMetricValueOption() { + return metricValueOptionEClass; + } + + /** + * + * + * @generated + */ + public EClass getAggregationMetricValueOption() { + return aggregationMetricValueOptionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAggregationMetricValueOption_Duration() { + return (EAttribute)aggregationMetricValueOptionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAggregationMetricValueOption_AggregationType() { + return (EAttribute)aggregationMetricValueOptionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getBasicMetricValueOption() { + return basicMetricValueOptionEClass; + } + + /** + * + * + * @generated + */ + public EClass getSequenceMetricValueOption() { + return sequenceMetricValueOptionEClass; + } + + /** + * + * + * @generated + */ + public EReference getSequenceMetricValueOption_Options() { + return (EReference)sequenceMetricValueOptionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMetricsContainer() { + return metricsContainerEClass; + } + + /** + * + * + * @generated + */ + public EClass getBasicMetrics() { + return basicMetricsEClass; + } + + /** + * + * + * @generated + */ + public EReference getBasicMetrics_Metrics() { + return (EReference)basicMetricsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getBasicMetric() { + return basicMetricEClass; + } + + /** + * + * + * @generated + */ + public EClass getBasicIncreasingULongMetric() { + return basicIncreasingULongMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getBasicIncreasingULongMetric_Value() { + return (EAttribute)basicIncreasingULongMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getBasicLongMetric() { + return basicLongMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getBasicLongMetric_Value() { + return (EAttribute)basicLongMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getBasicDoubleMetric() { + return basicDoubleMetricEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getBasicDoubleMetric_Value() { + return (EAttribute)basicDoubleMetricEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getAggregationMetricValueOptionType() { + return aggregationMetricValueOptionTypeEEnum; + } + + /** + * + * + * @generated + */ + public MetricsFactory getMetricsFactory() { + return (MetricsFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + metricEClass = createEClass(METRIC); + createEAttribute(metricEClass, METRIC__TIME); + createEAttribute(metricEClass, METRIC__RESOURCE_NAME); + createEAttribute(metricEClass, METRIC__METRIC_NAME); + + doubleMetricEClass = createEClass(DOUBLE_METRIC); + createEAttribute(doubleMetricEClass, DOUBLE_METRIC__VALUE); + + longMetricEClass = createEClass(LONG_METRIC); + createEAttribute(longMetricEClass, LONG_METRIC__INCREASING); + createEAttribute(longMetricEClass, LONG_METRIC__DELTA); + createEAttribute(longMetricEClass, LONG_METRIC__VALUE); + + stringMetricEClass = createEClass(STRING_METRIC); + createEAttribute(stringMetricEClass, STRING_METRIC__VALUE); + + metricValueOptionEClass = createEClass(METRIC_VALUE_OPTION); + + aggregationMetricValueOptionEClass = createEClass(AGGREGATION_METRIC_VALUE_OPTION); + createEAttribute(aggregationMetricValueOptionEClass, AGGREGATION_METRIC_VALUE_OPTION__DURATION); + createEAttribute(aggregationMetricValueOptionEClass, AGGREGATION_METRIC_VALUE_OPTION__AGGREGATION_TYPE); + + basicMetricValueOptionEClass = createEClass(BASIC_METRIC_VALUE_OPTION); + + sequenceMetricValueOptionEClass = createEClass(SEQUENCE_METRIC_VALUE_OPTION); + createEReference(sequenceMetricValueOptionEClass, SEQUENCE_METRIC_VALUE_OPTION__OPTIONS); + + metricsContainerEClass = createEClass(METRICS_CONTAINER); + + basicMetricsEClass = createEClass(BASIC_METRICS); + createEReference(basicMetricsEClass, BASIC_METRICS__METRICS); + + basicMetricEClass = createEClass(BASIC_METRIC); + + basicIncreasingULongMetricEClass = createEClass(BASIC_INCREASING_ULONG_METRIC); + createEAttribute(basicIncreasingULongMetricEClass, BASIC_INCREASING_ULONG_METRIC__VALUE); + + basicLongMetricEClass = createEClass(BASIC_LONG_METRIC); + createEAttribute(basicLongMetricEClass, BASIC_LONG_METRIC__VALUE); + + basicDoubleMetricEClass = createEClass(BASIC_DOUBLE_METRIC); + createEAttribute(basicDoubleMetricEClass, BASIC_DOUBLE_METRIC__VALUE); + + // Create enums + aggregationMetricValueOptionTypeEEnum = createEEnum(AGGREGATION_METRIC_VALUE_OPTION_TYPE); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + doubleMetricEClass.getESuperTypes().add(this.getMetric()); + longMetricEClass.getESuperTypes().add(this.getMetric()); + stringMetricEClass.getESuperTypes().add(this.getMetric()); + metricValueOptionEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + aggregationMetricValueOptionEClass.getESuperTypes().add(this.getMetricValueOption()); + basicMetricValueOptionEClass.getESuperTypes().add(this.getMetricValueOption()); + sequenceMetricValueOptionEClass.getESuperTypes().add(this.getMetricValueOption()); + basicMetricsEClass.getESuperTypes().add(this.getMetricsContainer()); + basicMetricEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + basicIncreasingULongMetricEClass.getESuperTypes().add(this.getBasicMetric()); + basicLongMetricEClass.getESuperTypes().add(this.getBasicMetric()); + basicDoubleMetricEClass.getESuperTypes().add(this.getBasicMetric()); + + // Initialize classes, features, and operations; add parameters + initEClass(metricEClass, Metric.class, "Metric", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMetric_Time(), theEcorePackage.getELong(), "time", null, 0, 1, Metric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMetric_ResourceName(), theEcorePackage.getEString(), "resourceName", null, 0, 1, Metric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMetric_MetricName(), theEcorePackage.getEString(), "metricName", null, 0, 1, Metric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(doubleMetricEClass, DoubleMetric.class, "DoubleMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDoubleMetric_Value(), theEcorePackage.getEDouble(), "value", null, 0, 1, DoubleMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(longMetricEClass, LongMetric.class, "LongMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLongMetric_Increasing(), theEcorePackage.getEBoolean(), "increasing", "false", 0, 1, LongMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLongMetric_Delta(), theEcorePackage.getEBoolean(), "delta", "false", 0, 1, LongMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLongMetric_Value(), theEcorePackage.getELong(), "value", null, 0, 1, LongMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringMetricEClass, StringMetric.class, "StringMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringMetric_Value(), theEcorePackage.getEString(), "value", null, 0, 1, StringMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metricValueOptionEClass, MetricValueOption.class, "MetricValueOption", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(aggregationMetricValueOptionEClass, AggregationMetricValueOption.class, "AggregationMetricValueOption", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAggregationMetricValueOption_Duration(), theEcorePackage.getEString(), "duration", null, 0, 1, AggregationMetricValueOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAggregationMetricValueOption_AggregationType(), this.getAggregationMetricValueOptionType(), "aggregationType", null, 0, 1, AggregationMetricValueOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(basicMetricValueOptionEClass, BasicMetricValueOption.class, "BasicMetricValueOption", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(sequenceMetricValueOptionEClass, SequenceMetricValueOption.class, "SequenceMetricValueOption", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSequenceMetricValueOption_Options(), this.getMetricValueOption(), null, "options", null, 0, -1, SequenceMetricValueOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metricsContainerEClass, MetricsContainer.class, "MetricsContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(basicMetricsEClass, BasicMetrics.class, "BasicMetrics", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getBasicMetrics_Metrics(), this.getBasicMetric(), null, "metrics", null, 0, -1, BasicMetrics.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(basicMetricEClass, BasicMetric.class, "BasicMetric", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(basicIncreasingULongMetricEClass, BasicIncreasingULongMetric.class, "BasicIncreasingULongMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBasicIncreasingULongMetric_Value(), theCorePackage.getIncreasingULongMetricAttribute(), "value", null, 0, 1, BasicIncreasingULongMetric.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(basicLongMetricEClass, BasicLongMetric.class, "BasicLongMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBasicLongMetric_Value(), theCorePackage.getLongMetricAttribute(), "value", null, 0, 1, BasicLongMetric.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(basicDoubleMetricEClass, BasicDoubleMetric.class, "BasicDoubleMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBasicDoubleMetric_Value(), theCorePackage.getDoubleMetricAttribute(), "value", null, 0, 1, BasicDoubleMetric.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(aggregationMetricValueOptionTypeEEnum, AggregationMetricValueOptionType.class, "AggregationMetricValueOptionType"); + addEEnumLiteral(aggregationMetricValueOptionTypeEEnum, AggregationMetricValueOptionType.SUM); + addEEnumLiteral(aggregationMetricValueOptionTypeEEnum, AggregationMetricValueOptionType.AVERAGE); + addEEnumLiteral(aggregationMetricValueOptionTypeEEnum, AggregationMetricValueOptionType.COUNT); + addEEnumLiteral(aggregationMetricValueOptionTypeEEnum, AggregationMetricValueOptionType.MAX); + addEEnumLiteral(aggregationMetricValueOptionTypeEEnum, AggregationMetricValueOptionType.MIN); + + // Create resource + createResource(eNS_URI); + } + +} //MetricsPackageImpl diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/SequenceMetricValueOptionImpl.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/SequenceMetricValueOptionImpl.java new file mode 100644 index 0000000..ef2ce4d --- /dev/null +++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/impl/SequenceMetricValueOptionImpl.java @@ -0,0 +1,171 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.core.metrics.impl; + +import org.openecomp.ncomp.core.metrics.MetricValueOption; +import org.openecomp.ncomp.core.metrics.MetricsPackage; +import org.openecomp.ncomp.core.metrics.SequenceMetricValueOption; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Sequence Metric Value Option'. + * + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.core.metrics.MetricsPackage
+ * @generated
+ */
+public class MetricsAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static MetricsPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public MetricsAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = MetricsPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected MetricsSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.Metric Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.Metric
+ * @generated
+ */
+ public Adapter createMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.DoubleMetric Double Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.DoubleMetric
+ * @generated
+ */
+ public Adapter createDoubleMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.LongMetric Long Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.LongMetric
+ * @generated
+ */
+ public Adapter createLongMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.StringMetric String Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.StringMetric
+ * @generated
+ */
+ public Adapter createStringMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.MetricValueOption Metric Value Option}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.MetricValueOption
+ * @generated
+ */
+ public Adapter createMetricValueOptionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.AggregationMetricValueOption Aggregation Metric Value Option}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.AggregationMetricValueOption
+ * @generated
+ */
+ public Adapter createAggregationMetricValueOptionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.BasicMetricValueOption Basic Metric Value Option}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.BasicMetricValueOption
+ * @generated
+ */
+ public Adapter createBasicMetricValueOptionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.SequenceMetricValueOption Sequence Metric Value Option}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.SequenceMetricValueOption
+ * @generated
+ */
+ public Adapter createSequenceMetricValueOptionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.MetricsContainer Container}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.MetricsContainer
+ * @generated
+ */
+ public Adapter createMetricsContainerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.BasicMetrics Basic Metrics}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.BasicMetrics
+ * @generated
+ */
+ public Adapter createBasicMetricsAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.BasicMetric Basic Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.BasicMetric
+ * @generated
+ */
+ public Adapter createBasicMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.BasicIncreasingULongMetric Basic Increasing ULong Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.BasicIncreasingULongMetric
+ * @generated
+ */
+ public Adapter createBasicIncreasingULongMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.BasicLongMetric Basic Long Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.BasicLongMetric
+ * @generated
+ */
+ public Adapter createBasicLongMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.metrics.BasicDoubleMetric Basic Double Metric}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.metrics.BasicDoubleMetric
+ * @generated
+ */
+ public Adapter createBasicDoubleMetricAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //MetricsAdapterFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/util/MetricsSwitch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/util/MetricsSwitch.java
new file mode 100644
index 0000000..cf1188a
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/metrics/util/MetricsSwitch.java
@@ -0,0 +1,439 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.metrics.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.core.metrics.*;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.core.metrics.MetricsPackage
+ * @generated
+ */
+public class MetricsSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case MetricsPackage.METRIC: {
+ Metric metric = (Metric)theEObject;
+ T result = caseMetric(metric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.DOUBLE_METRIC: {
+ DoubleMetric doubleMetric = (DoubleMetric)theEObject;
+ T result = caseDoubleMetric(doubleMetric);
+ if (result == null) result = caseMetric(doubleMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.LONG_METRIC: {
+ LongMetric longMetric = (LongMetric)theEObject;
+ T result = caseLongMetric(longMetric);
+ if (result == null) result = caseMetric(longMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.STRING_METRIC: {
+ StringMetric stringMetric = (StringMetric)theEObject;
+ T result = caseStringMetric(stringMetric);
+ if (result == null) result = caseMetric(stringMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.METRIC_VALUE_OPTION: {
+ MetricValueOption metricValueOption = (MetricValueOption)theEObject;
+ T result = caseMetricValueOption(metricValueOption);
+ if (result == null) result = caseNamedEntity(metricValueOption);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.AGGREGATION_METRIC_VALUE_OPTION: {
+ AggregationMetricValueOption aggregationMetricValueOption = (AggregationMetricValueOption)theEObject;
+ T result = caseAggregationMetricValueOption(aggregationMetricValueOption);
+ if (result == null) result = caseMetricValueOption(aggregationMetricValueOption);
+ if (result == null) result = caseNamedEntity(aggregationMetricValueOption);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.BASIC_METRIC_VALUE_OPTION: {
+ BasicMetricValueOption basicMetricValueOption = (BasicMetricValueOption)theEObject;
+ T result = caseBasicMetricValueOption(basicMetricValueOption);
+ if (result == null) result = caseMetricValueOption(basicMetricValueOption);
+ if (result == null) result = caseNamedEntity(basicMetricValueOption);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.SEQUENCE_METRIC_VALUE_OPTION: {
+ SequenceMetricValueOption sequenceMetricValueOption = (SequenceMetricValueOption)theEObject;
+ T result = caseSequenceMetricValueOption(sequenceMetricValueOption);
+ if (result == null) result = caseMetricValueOption(sequenceMetricValueOption);
+ if (result == null) result = caseNamedEntity(sequenceMetricValueOption);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.METRICS_CONTAINER: {
+ MetricsContainer metricsContainer = (MetricsContainer)theEObject;
+ T result = caseMetricsContainer(metricsContainer);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.BASIC_METRICS: {
+ BasicMetrics basicMetrics = (BasicMetrics)theEObject;
+ T result = caseBasicMetrics(basicMetrics);
+ if (result == null) result = caseMetricsContainer(basicMetrics);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.BASIC_METRIC: {
+ BasicMetric basicMetric = (BasicMetric)theEObject;
+ T result = caseBasicMetric(basicMetric);
+ if (result == null) result = caseNamedEntity(basicMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.BASIC_INCREASING_ULONG_METRIC: {
+ BasicIncreasingULongMetric basicIncreasingULongMetric = (BasicIncreasingULongMetric)theEObject;
+ T result = caseBasicIncreasingULongMetric(basicIncreasingULongMetric);
+ if (result == null) result = caseBasicMetric(basicIncreasingULongMetric);
+ if (result == null) result = caseNamedEntity(basicIncreasingULongMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.BASIC_LONG_METRIC: {
+ BasicLongMetric basicLongMetric = (BasicLongMetric)theEObject;
+ T result = caseBasicLongMetric(basicLongMetric);
+ if (result == null) result = caseBasicMetric(basicLongMetric);
+ if (result == null) result = caseNamedEntity(basicLongMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MetricsPackage.BASIC_DOUBLE_METRIC: {
+ BasicDoubleMetric basicDoubleMetric = (BasicDoubleMetric)theEObject;
+ T result = caseBasicDoubleMetric(basicDoubleMetric);
+ if (result == null) result = caseBasicMetric(basicDoubleMetric);
+ if (result == null) result = caseNamedEntity(basicDoubleMetric);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMetric(Metric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Double Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Double Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDoubleMetric(DoubleMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Long Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Long Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLongMetric(LongMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'String Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'String Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseStringMetric(StringMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Metric Value Option'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Metric Value Option'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMetricValueOption(MetricValueOption object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Aggregation Metric Value Option'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Aggregation Metric Value Option'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAggregationMetricValueOption(AggregationMetricValueOption object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Basic Metric Value Option'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Basic Metric Value Option'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBasicMetricValueOption(BasicMetricValueOption object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Sequence Metric Value Option'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Sequence Metric Value Option'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSequenceMetricValueOption(SequenceMetricValueOption object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Container'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMetricsContainer(MetricsContainer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Basic Metrics'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Basic Metrics'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBasicMetrics(BasicMetrics object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Basic Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Basic Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBasicMetric(BasicMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Basic Increasing ULong Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Basic Increasing ULong Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBasicIncreasingULongMetric(BasicIncreasingULongMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Basic Long Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Basic Long Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBasicLongMetric(BasicLongMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Basic Double Metric'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Basic Double Metric'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBasicDoubleMetric(BasicDoubleMetric object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //MetricsSwitch
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/.gitignore b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/.gitignore
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/.gitignore
@@ -0,0 +1 @@
+
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/CoreAdapterFactory.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/CoreAdapterFactory.java
new file mode 100644
index 0000000..e58f2e9
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/CoreAdapterFactory.java
@@ -0,0 +1,195 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.util;
+
+import org.openecomp.ncomp.core.*;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * The Adapter Factory for the model.
+ * It provides an adapter createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.core.CorePackage
+ * @generated
+ */
+public class CoreAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static CorePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public CoreAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = CorePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected CoreSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.Event Event}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.Event
+ * @generated
+ */
+ public Adapter createEventAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.HasOperationalState Has Operational State}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.HasOperationalState
+ * @generated
+ */
+ public Adapter createHasOperationalStateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.User User}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.User
+ * @generated
+ */
+ public Adapter createUserAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //CoreAdapterFactory
diff --git a/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/CoreSwitch.java b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/CoreSwitch.java
new file mode 100644
index 0000000..3eab46f
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore-gen/org/openecomp/ncomp/core/util/CoreSwitch.java
@@ -0,0 +1,195 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.core.util;
+
+import org.openecomp.ncomp.core.*;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.core.CorePackage
+ * @generated
+ */
+public class CoreSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case CorePackage.NAMED_ENTITY: {
+ NamedEntity namedEntity = (NamedEntity)theEObject;
+ T result = caseNamedEntity(namedEntity);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.EVENT: {
+ Event event = (Event)theEObject;
+ T result = caseEvent(event);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.HAS_OPERATIONAL_STATE: {
+ HasOperationalState hasOperationalState = (HasOperationalState)theEObject;
+ T result = caseHasOperationalState(hasOperationalState);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.USER: {
+ User user = (User)theEObject;
+ T result = caseUser(user);
+ if (result == null) result = caseNamedEntity(user);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Event'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Event'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEvent(Event object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Has Operational State'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Has Operational State'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHasOperationalState(HasOperationalState object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'User'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'User'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseUser(User object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //CoreSwitch
diff --git a/ncomp-core-model/src/main/xcore/alerts.xcore b/ncomp-core-model/src/main/xcore/alerts.xcore
new file mode 100644
index 0000000..2680b6f
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore/alerts.xcore
@@ -0,0 +1,66 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+@GenModel(modelDirectory="/ncomp-core-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.core.alerts
+
+import org.openecomp.ncomp.core.NamedEntity
+import org.openecomp.ncomp.core.logs.LogSeverity
+import org.openecomp.ncomp.core.IncreasingULongMetricAttribute
+import org.openecomp.ncomp.core.HasOperationalState
+
+abstract class Alert extends NamedEntity, HasOperationalState {
+ LogSeverity severity
+ contains DampingRule dampingRule
+ IncreasingULongMetricAttribute numAlerts
+ IncreasingULongMetricAttribute numAlertsSuppressed
+}
+
+class ThresholdAlert extends Alert {
+ String metricName
+ Double lowerBound
+ Double upperBound
+ String duration
+ String maxDelay
+}
+
+abstract class AlertContainer {
+ contains Alert[] alerts
+ refers AlertingTemplate alertingTemplate
+}
+
+class AlertingTemplate extends NamedEntity {
+ contains Alert[] alerts
+}
+
+abstract class DampingRule {
+
+}
+
+class MaxAlertPerInterval extends DampingRule {
+ String interval
+ int maxAlerts = "1"
+}
+
+
+
+
diff --git a/ncomp-core-model/src/main/xcore/component.xcore b/ncomp-core-model/src/main/xcore/component.xcore
new file mode 100644
index 0000000..7b2eea8
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore/component.xcore
@@ -0,0 +1,78 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+@GenModel(modelDirectory="/ncomp-core-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.component
+
+import org.openecomp.ncomp.core.NamedEntity
+import org.openecomp.ncomp.core.LongMetricAttribute
+import org.openecomp.ncomp.core.IncreasingULongMetricAttribute
+import org.openecomp.ncomp.core.Event
+
+class Component extends NamedEntity {
+ contains ComponentClass[] classes
+ contains DroolsRuntime[] droolsRuntimes
+}
+
+class ComponentClass extends NamedEntity {
+ contains Api[] apis
+ LongMetricAttribute numberOfResources
+ IncreasingULongMetricAttribute numberOfUpdateRequests
+ IncreasingULongMetricAttribute numberOfCreateRequests
+ IncreasingULongMetricAttribute numberOfDeleteRequests
+}
+
+class Api extends NamedEntity {
+ IncreasingULongMetricAttribute numberOfRequests
+ IncreasingULongMetricAttribute numberOfErrorRequests
+ IncreasingULongMetricAttribute numberOfCompletedRequests
+ LongMetricAttribute outstandingRequests
+ LongMetricAttribute lastRequestDuration
+ op ApiRequest[] currentRequests()
+}
+
+class ApiRequest extends Event {
+ String componentName
+ String resourcePath
+ String transactionId
+ String parentTransactionId
+ String action
+ Long duration
+ ApiRequestStatus status
+}
+
+
+enum ApiRequestStatus {
+ OKAY, ERROR, INPROGRESS, START
+}
+
+class DroolsRuntime extends NamedEntity {
+ contains DroolsRule[] rules
+}
+
+class DroolsRule extends NamedEntity {
+ IncreasingULongMetricAttribute numberOfFires
+}
+
+enum DroolsObjectChange {
+ INSERTED,DELETED,UPDATED
+}
\ No newline at end of file
diff --git a/ncomp-core-model/src/main/xcore/core.xcore b/ncomp-core-model/src/main/xcore/core.xcore
new file mode 100644
index 0000000..7d32720
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore/core.xcore
@@ -0,0 +1,98 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+@GenModel(modelDirectory="/ncomp-core-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.core
+
+import org.json.JSONObject
+
+import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute
+import org.openecomp.ncomp.core.types.metrics.LongMetricAttribute
+import org.openecomp.ncomp.core.types.metrics.DoubleMetricAttribute
+import org.openecomp.ncomp.core.types.metrics.StringMetricAttribute
+import org.openecomp.ncomp.core.types.metrics.DateMetricAttribute
+
+annotation "http://openecomp.org" as ecomp
+
+type JsonObject wraps JSONObject
+create {
+ try {
+ if (it != null) new JSONObject(it)
+ }
+ catch (Exception e) {
+ throw new RuntimeException("Bad JSON String: " + it + " " + e)
+ }
+}
+
+type RemoteContext wraps JSONObject
+create {
+ try {
+ if (it != null) new JSONObject(it)
+ }
+ catch (Exception e) {
+ throw new RuntimeException("Bad JSON String: " + it + " " + e)
+ }
+}
+
+
+abstract class NamedEntity
+{
+ @ecomp(^type="configuration")
+ String name
+ Date lastPolled
+ Date lastChanged
+ Date created
+}
+
+abstract class Event {
+ // TODO what should be the fields in all events.
+}
+
+enum OperationalState {
+ OPERATIONAL, SUSPENDED
+}
+
+abstract class HasOperationalState {
+ OperationalState operationalState
+}
+
+enum DeploymentStatus {
+ UNDEPLOYED, DEPLOYED, DEPLOYED_PARTIALLY, DEPLOYED_ERRORS
+}
+
+
+class User extends NamedEntity {
+ String publicKey
+ DeploymentStatus deploymentStatus
+}
+
+
+type IncreasingULongMetricAttribute wraps IncreasingULongMetricAttribute
+convert { try { return it.toStringValue() } catch (Exception e) {return null} }
+type LongMetricAttribute wraps LongMetricAttribute
+convert { try { return it.toStringValue() } catch (Exception e) {return null} }
+type DoubleMetricAttribute wraps DoubleMetricAttribute
+convert { try { return it.toStringValue() } catch (Exception e) {return null} }
+type StringMetricAttribute wraps StringMetricAttribute
+convert { try { return it.toStringValue() } catch (Exception e) {return null} }
+type DateMetricAttribute wraps DateMetricAttribute
+convert { try { return it.toStringValue() } catch (Exception e) {return null} }
diff --git a/ncomp-core-model/src/main/xcore/function.xcore b/ncomp-core-model/src/main/xcore/function.xcore
new file mode 100644
index 0000000..8e08add
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore/function.xcore
@@ -0,0 +1,112 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+@GenModel(modelDirectory="/ncomp-core-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.core.function
+
+import org.openecomp.ncomp.core.NamedEntity
+import org.openecomp.ncomp.core.metrics.MetricValueOption
+
+
+
+abstract class Function extends NamedEntity {
+
+}
+
+abstract class Iterator extends NamedEntity {
+
+}
+
+class IteratorUsingFunction extends Iterator {
+ String[] paths
+ boolean recursive
+ contains Function filter
+}
+
+class RuleFunction extends Function {
+ contains FunctionRule[] rules
+
+}
+
+class FunctionRule {
+ contains FunctionMatch[] matches
+ contains FunctionAction action
+}
+
+class FunctionAction {
+ String value
+}
+
+class RuleUpdateFunction extends Function {
+ contains FunctionUpdateRule[] rules
+
+}
+
+class FunctionUpdateRule {
+ contains FunctionMatch[] matches
+ contains FunctionUpdate [] updates
+}
+
+abstract class FunctionUpdate {
+
+}
+
+class FunctionUpdateAttribute extends FunctionUpdate {
+ String path
+ String value
+}
+
+abstract class FunctionMatch {
+}
+
+class FunctionMatchAttribute extends FunctionMatch {
+ String path
+ String match
+ boolean negation
+}
+
+class FunctionMatchMetric extends FunctionMatch {
+ String path
+ refers MetricValueOption option
+ Double lowerBound
+ Double upperBound
+ boolean negation
+}
+
+
+class FunctionMatchInstanceOf extends FunctionMatch {
+ String ePackage
+ String eName
+}
+
+
+abstract class ValuePair {
+ String path
+}
+
+class StringValuePair extends ValuePair {
+ String value
+}
+
+
+
+
diff --git a/ncomp-core-model/src/main/xcore/logs.xcore b/ncomp-core-model/src/main/xcore/logs.xcore
new file mode 100644
index 0000000..d786168
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore/logs.xcore
@@ -0,0 +1,103 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+@GenModel(modelDirectory="/ncomp-core-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.core.logs
+
+import org.openecomp.ncomp.core.IncreasingULongMetricAttribute
+import org.openecomp.ncomp.core.NamedEntity
+import org.openecomp.ncomp.core.function.Function
+
+class LogMessage {
+ long time
+ String resourceName
+ LogSeverity severity
+ LogLevel level
+ String message
+ String category
+ int numberOfSuppressed = "0"
+ Long suppressedStartTime
+}
+
+enum LogLevel { UNKNOWN, TRACE, DEBUG, INFO, WARN, ERROR, FATAL }
+enum LogSeverity { UNKNOWN, SEV1, SEV2, SEV3, SEV4 }
+
+
+class LogMessageRule extends NamedEntity {
+ String description
+ String messageFilter
+ String resourcePathFilter
+ LogLevel level
+ LogSeverity severity
+ LogLevel newLevel
+ LogSeverity newSeverity
+ String newCategory
+ boolean disabled = "false"
+ refers Function updateFunction
+}
+
+abstract class LogMessageContainer {
+ contains LogMessageContainerConfiguration logMessageConfiguration
+ contains LogMessageCategory[] logMessageCategories
+ contains LogMessageStats[] logMessageStats
+}
+
+class LogMessageContainerConfiguration {
+
+}
+
+class LogMessageCategory extends NamedEntity {
+ contains LogMessageStats[] stats
+}
+
+class LogMessageStats extends NamedEntity {
+ LogLevel level
+ LogSeverity severity
+ IncreasingULongMetricAttribute count
+}
+
+class LogMessageState {
+ boolean suspended
+ refers LogMessage log
+ refers LogMessageCategory category
+}
+
+class LogConfiguration {
+ contains LogFile[] files
+}
+
+class LogFile {
+ String filename
+ contains LogPattern[] patterns
+}
+
+class LogPattern {
+ String pattern
+ String message
+ String level
+ String severity
+ String path
+}
+
+
+
+
diff --git a/ncomp-core-model/src/main/xcore/metrics.xcore b/ncomp-core-model/src/main/xcore/metrics.xcore
new file mode 100644
index 0000000..bd77010
--- /dev/null
+++ b/ncomp-core-model/src/main/xcore/metrics.xcore
@@ -0,0 +1,92 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+@GenModel(modelDirectory="/ncomp-core-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.core.metrics
+
+import org.openecomp.ncomp.core.DoubleMetricAttribute
+import org.openecomp.ncomp.core.IncreasingULongMetricAttribute
+import org.openecomp.ncomp.core.LongMetricAttribute
+import org.openecomp.ncomp.core.NamedEntity
+
+
+abstract class Metric {
+ long time
+ String resourceName
+ String metricName
+}
+
+class DoubleMetric extends Metric {
+ double value
+}
+
+class LongMetric extends Metric {
+ boolean increasing = "false"
+ boolean delta = "false"
+ long value
+}
+
+class StringMetric extends Metric {
+ String value
+}
+
+abstract class MetricValueOption extends NamedEntity {}
+
+
+enum AggregationMetricValueOptionType { SUM, AVERAGE, COUNT, MAX, MIN }
+
+class AggregationMetricValueOption extends MetricValueOption {
+ String duration
+ AggregationMetricValueOptionType aggregationType
+}
+
+class BasicMetricValueOption extends MetricValueOption {
+
+}
+
+class SequenceMetricValueOption extends MetricValueOption {
+ contains MetricValueOption[] options
+}
+
+abstract class MetricsContainer {
+
+}
+
+class BasicMetrics extends MetricsContainer {
+ contains BasicMetric[] metrics
+}
+
+abstract class BasicMetric extends NamedEntity {
+
+}
+
+class BasicIncreasingULongMetric extends BasicMetric {
+ transient IncreasingULongMetricAttribute value
+}
+
+class BasicLongMetric extends BasicMetric {
+ transient LongMetricAttribute value
+}
+
+class BasicDoubleMetric extends BasicMetric {
+ transient DoubleMetricAttribute value
+}
diff --git a/ncomp-core-tools/.classpath b/ncomp-core-tools/.classpath
new file mode 100644
index 0000000..07c2adc
--- /dev/null
+++ b/ncomp-core-tools/.classpath
@@ -0,0 +1,26 @@
+
+