From 033f0c30154107ddf36cd682c860e95025bf00b0 Mon Sep 17 00:00:00 2001
From: lj1412
+ * The following features are supported:
+ *
+ *
+ *
+ * If the meaning of the 'Items' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Items' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagram_Items() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Tooltip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tooltip' attribute. + * @see #setTooltip(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramItem_Tooltip() + * @model unique="false" + * @generated + */ + String getTooltip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem#getTooltip Tooltip}' attribute. + * + * + * @param value the new value of the 'Tooltip' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + +} // GuiDiagramItem diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagramRectangle.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagramRectangle.java new file mode 100644 index 0000000..02375b8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagramRectangle.java @@ -0,0 +1,151 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Diagram Rectangle'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'X' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'X' attribute. + * @see #setX(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramRectangle_X() + * @model unique="false" + * @generated + */ + int getX(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getX X}' attribute. + * + * + * @param value the new value of the 'X' attribute. + * @see #getX() + * @generated + */ + void setX(int value); + + /** + * Returns the value of the 'Y' attribute. + * + *+ * If the meaning of the 'Y' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Y' attribute. + * @see #setY(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramRectangle_Y() + * @model unique="false" + * @generated + */ + int getY(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getY Y}' attribute. + * + * + * @param value the new value of the 'Y' attribute. + * @see #getY() + * @generated + */ + void setY(int value); + + /** + * Returns the value of the 'H' attribute. + * + *+ * If the meaning of the 'H' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'H' attribute. + * @see #setH(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramRectangle_H() + * @model unique="false" + * @generated + */ + int getH(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getH H}' attribute. + * + * + * @param value the new value of the 'H' attribute. + * @see #getH() + * @generated + */ + void setH(int value); + + /** + * Returns the value of the 'W' attribute. + * + *+ * If the meaning of the 'W' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'W' attribute. + * @see #setW(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramRectangle_W() + * @model unique="false" + * @generated + */ + int getW(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getW W}' attribute. + * + * + * @param value the new value of the 'W' attribute. + * @see #getW() + * @generated + */ + void setW(int value); + +} // GuiDiagramRectangle diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiHtml.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiHtml.java new file mode 100644 index 0000000..8fae87a --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiHtml.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.gwt.siriusportal.model; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Html'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Html' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Html' attribute. + * @see #setHtml(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiHtml_Html() + * @model unique="false" + * @generated + */ + String getHtml(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml#getHtml Html}' attribute. + * + * + * @param value the new value of the 'Html' attribute. + * @see #getHtml() + * @generated + */ + void setHtml(String value); + +} // GuiHtml diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiNamedObject.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiNamedObject.java new file mode 100644 index 0000000..c3d6ea4 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiNamedObject.java @@ -0,0 +1,70 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Named Object'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Object Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Object Name' attribute. + * @see #setObjectName(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiNamedObject_ObjectName() + * @model unique="false" + * @generated + */ + String getObjectName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject#getObjectName Object Name}' attribute. + * + * + * @param value the new value of the 'Object Name' attribute. + * @see #getObjectName() + * @generated + */ + void setObjectName(String value); + +} // GuiNamedObject diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObject.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObject.java new file mode 100644 index 0000000..04d3e3d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObject.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.gwt.siriusportal.model; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Object'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Values' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Values' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObject_Values() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Objects' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Objects' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectNamedList_Objects() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Objects' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Objects' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectUnNamedList_Objects() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Value Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value Name' attribute. + * @see #setValueName(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValue_ValueName() + * @model unique="false" + * @generated + */ + String getValueName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getValueName Value Name}' attribute. + * + * + * @param value the new value of the 'Value Name' attribute. + * @see #getValueName() + * @generated + */ + void setValueName(String value); + + /** + * Returns the value of the 'Tooltip' attribute. + * + *+ * If the meaning of the 'Tooltip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tooltip' attribute. + * @see #setTooltip(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValue_Tooltip() + * @model unique="false" + * @generated + */ + String getTooltip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getTooltip Tooltip}' attribute. + * + * + * @param value the new value of the 'Tooltip' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + +} // GuiObjectValue diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueInteger.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueInteger.java new file mode 100644 index 0000000..78c478e --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueInteger.java @@ -0,0 +1,70 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Object Value Integer'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'I' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'I' attribute. + * @see #setI(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueInteger_I() + * @model unique="false" + * @generated + */ + int getI(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger#getI I}' attribute. + * + * + * @param value the new value of the 'I' attribute. + * @see #getI() + * @generated + */ + void setI(int value); + +} // GuiObjectValueInteger diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueObject.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueObject.java new file mode 100644 index 0000000..29841d5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueObject.java @@ -0,0 +1,70 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Object Value Object'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'V' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'V' containment reference. + * @see #setV(GuiObject) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueObject_V() + * @model containment="true" + * @generated + */ + GuiObject getV(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject#getV V}' containment reference. + * + * + * @param value the new value of the 'V' containment reference. + * @see #getV() + * @generated + */ + void setV(GuiObject value); + +} // GuiObjectValueObject diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueReference.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueReference.java new file mode 100644 index 0000000..289bd94 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueReference.java @@ -0,0 +1,70 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Object Value Reference'. + * + * + *+ * 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.gwt.siriusportal.model.ModelPackage#getGuiObjectValueReference_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // GuiObjectValueReference diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueString.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueString.java new file mode 100644 index 0000000..66f8d1d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueString.java @@ -0,0 +1,70 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Object Value String'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'V' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'V' attribute. + * @see #setV(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueString_V() + * @model unique="false" + * @generated + */ + String getV(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString#getV V}' attribute. + * + * + * @param value the new value of the 'V' attribute. + * @see #getV() + * @generated + */ + void setV(String value); + +} // GuiObjectValueString diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueTimeSeries.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueTimeSeries.java new file mode 100644 index 0000000..7e0beb6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValueTimeSeries.java @@ -0,0 +1,70 @@ + +/*- + * ============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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Object Value Time Series'. + * + * + *+ * 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.gwt.siriusportal.model.ModelPackage#getGuiObjectValueTimeSeries_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // GuiObjectValueTimeSeries diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTable.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTable.java new file mode 100644 index 0000000..2874f08 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTable.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.gwt.siriusportal.model; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Table'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Columns' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Columns' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTable_Columns() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Rows' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rows' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTable_Rows() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Tooltip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tooltip' attribute. + * @see #setTooltip(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCell_Tooltip() + * @model unique="false" + * @generated + */ + String getTooltip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell#getTooltip Tooltip}' attribute. + * + * + * @param value the new value of the 'Tooltip' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + +} // GuiTableCell diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellDate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellDate.java new file mode 100644 index 0000000..b2f44d1 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellDate.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.gwt.siriusportal.model; + +import java.util.Date; + +/** + * + * A representation of the model object 'Gui Table Cell Date'. + * + * + *+ * 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(Date) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellDate_Value() + * @model unique="false" dataType="org.openecomp.ncomp.gwt.siriusportal.model.Date" + * @generated + */ + Date getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(Date value); + +} // GuiTableCellDate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellDouble.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellDouble.java new file mode 100644 index 0000000..78e61c8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellDouble.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.gwt.siriusportal.model; + + +/** + * + * A representation of the model object 'Gui Table Cell Double'. + * + * + *+ * 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.gwt.siriusportal.model.ModelPackage#getGuiTableCellDouble_Value() + * @model unique="false" + * @generated + */ + double getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(double value); + + /** + * Returns the value of the 'Timeseries Path' attribute. + * + *+ * If the meaning of the 'Timeseries Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Timeseries Path' attribute. + * @see #setTimeseriesPath(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellDouble_TimeseriesPath() + * @model unique="false" + * @generated + */ + String getTimeseriesPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getTimeseriesPath Timeseries Path}' attribute. + * + * + * @param value the new value of the 'Timeseries Path' attribute. + * @see #getTimeseriesPath() + * @generated + */ + void setTimeseriesPath(String value); + +} // GuiTableCellDouble diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellReference.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellReference.java new file mode 100644 index 0000000..5a42dd3 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellReference.java @@ -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============================================ + */ + +/** + */ +package org.openecomp.ncomp.gwt.siriusportal.model; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Table Cell Reference'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Label' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Label' attribute. + * @see #setLabel(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellReference_Label() + * @model unique="false" + * @generated + */ + String getLabel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getLabel Label}' attribute. + * + * + * @param value the new value of the 'Label' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(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.gwt.siriusportal.model.ModelPackage#getGuiTableCellReference_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // GuiTableCellReference diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellReferences.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellReferences.java new file mode 100644 index 0000000..0f01cfb --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellReferences.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.gwt.siriusportal.model; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Gui Table Cell References'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Refs' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Refs' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellReferences_Refs() + * @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.gwt.siriusportal.model.ModelPackage#getGuiTableCellString_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // GuiTableCellString diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableColumn.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableColumn.java new file mode 100644 index 0000000..3ebafc9 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableColumn.java @@ -0,0 +1,211 @@ + +/*- + * ============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.gwt.siriusportal.model; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Table Column'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Col Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Col Name' attribute. + * @see #setColName(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn_ColName() + * @model unique="false" + * @generated + */ + String getColName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColName Col Name}' attribute. + * + * + * @param value the new value of the 'Col Name' attribute. + * @see #getColName() + * @generated + */ + void setColName(String value); + + /** + * Returns the value of the 'Tooltip' attribute. + * + *+ * If the meaning of the 'Tooltip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tooltip' attribute. + * @see #setTooltip(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn_Tooltip() + * @model unique="false" + * @generated + */ + String getTooltip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getTooltip Tooltip}' attribute. + * + * + * @param value the new value of the 'Tooltip' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + + /** + * Returns the value of the 'Format' attribute. + * + *+ * If the meaning of the 'Format' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Format' attribute. + * @see #setFormat(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn_Format() + * @model unique="false" + * @generated + */ + String getFormat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getFormat Format}' attribute. + * + * + * @param value the new value of the 'Format' attribute. + * @see #getFormat() + * @generated + */ + void setFormat(String value); + + /** + * Returns the value of the 'Width' attribute. + * The default value is"0"
.
+ *
+ * + * If the meaning of the 'Width' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Width' attribute. + * @see #setWidth(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn_Width() + * @model default="0" unique="false" + * @generated + */ + int getWidth(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getWidth Width}' attribute. + * + * + * @param value the new value of the 'Width' attribute. + * @see #getWidth() + * @generated + */ + void setWidth(int value); + + /** + * Returns the value of the 'Hidden' attribute. + * The default value is"false"
.
+ *
+ * + * If the meaning of the 'Hidden' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Hidden' attribute. + * @see #setHidden(boolean) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn_Hidden() + * @model default="false" unique="false" + * @generated + */ + boolean isHidden(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#isHidden Hidden}' attribute. + * + * + * @param value the new value of the 'Hidden' attribute. + * @see #isHidden() + * @generated + */ + void setHidden(boolean value); + + /** + * Returns the value of the 'Column Type' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType}. + * + *+ * If the meaning of the 'Column Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Column Type' attribute. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType + * @see #setColumnType(GuiTableColumnType) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn_ColumnType() + * @model unique="false" + * @generated + */ + GuiTableColumnType getColumnType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColumnType Column Type}' attribute. + * + * + * @param value the new value of the 'Column Type' attribute. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType + * @see #getColumnType() + * @generated + */ + void setColumnType(GuiTableColumnType value); + +} // GuiTableColumn diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableColumnType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableColumnType.java new file mode 100644 index 0000000..a19d9bb --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableColumnType.java @@ -0,0 +1,280 @@ + +/*- + * ============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.gwt.siriusportal.model; + +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 'Gui Table Column Type', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumnType() + * @model + * @generated + */ +public enum GuiTableColumnType implements Enumerator { + /** + * The 'STRING' literal object. + * + * + * @see #STRING_VALUE + * @generated + * @ordered + */ + STRING(0, "STRING", "STRING"), + + /** + * The 'DOUBLE' literal object. + * + * + * @see #DOUBLE_VALUE + * @generated + * @ordered + */ + DOUBLE(0, "DOUBLE", "DOUBLE"), + + /** + * The 'DATE' literal object. + * + * + * @see #DATE_VALUE + * @generated + * @ordered + */ + DATE(0, "DATE", "DATE"), + + /** + * The 'REF LIST' literal object. + * + * + * @see #REF_LIST_VALUE + * @generated + * @ordered + */ + REF_LIST(0, "REF_LIST", "REF_LIST"); + + /** + * The 'STRING' literal value. + * + *+ * If the meaning of 'STRING' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #STRING + * @model + * @generated + * @ordered + */ + public static final int STRING_VALUE = 0; + + /** + * The 'DOUBLE' literal value. + * + *+ * If the meaning of 'DOUBLE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DOUBLE + * @model + * @generated + * @ordered + */ + public static final int DOUBLE_VALUE = 0; + + /** + * The 'DATE' literal value. + * + *+ * If the meaning of 'DATE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #DATE + * @model + * @generated + * @ordered + */ + public static final int DATE_VALUE = 0; + + /** + * The 'REF LIST' literal value. + * + *+ * If the meaning of 'REF LIST' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #REF_LIST + * @model + * @generated + * @ordered + */ + public static final int REF_LIST_VALUE = 0; + + /** + * An array of all the 'Gui Table Column Type' enumerators. + * + * + * @generated + */ + private static final GuiTableColumnType[] VALUES_ARRAY = + new GuiTableColumnType[] { + STRING, + DOUBLE, + DATE, + REF_LIST, + }; + + /** + * A public read-only list of all the 'Gui Table Column Type' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Cells' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Cells' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableRow_Cells() + * @model containment="true" + * @generated + */ + EList+ * 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.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'XAxis Label' attribute. + * + *+ * If the meaning of the 'XAxis Label' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'XAxis Label' attribute. + * @see #setXAxisLabel(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_XAxisLabel() + * @model unique="false" + * @generated + */ + String getXAxisLabel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisLabel XAxis Label}' attribute. + * + * + * @param value the new value of the 'XAxis Label' attribute. + * @see #getXAxisLabel() + * @generated + */ + void setXAxisLabel(String value); + + /** + * Returns the value of the 'XAxis Date Format' attribute. + * The default value is"MM-dd HH:mm"
.
+ *
+ * + * If the meaning of the 'XAxis Date Format' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'XAxis Date Format' attribute. + * @see #setXAxisDateFormat(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_XAxisDateFormat() + * @model default="MM-dd HH:mm" unique="false" + * @generated + */ + String getXAxisDateFormat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisDateFormat XAxis Date Format}' attribute. + * + * + * @param value the new value of the 'XAxis Date Format' attribute. + * @see #getXAxisDateFormat() + * @generated + */ + void setXAxisDateFormat(String value); + + /** + * Returns the value of the 'YAxis Label' attribute. + * + *+ * If the meaning of the 'YAxis Label' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'YAxis Label' attribute. + * @see #setYAxisLabel(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_YAxisLabel() + * @model unique="false" + * @generated + */ + String getYAxisLabel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getYAxisLabel YAxis Label}' attribute. + * + * + * @param value the new value of the 'YAxis Label' attribute. + * @see #getYAxisLabel() + * @generated + */ + void setYAxisLabel(String value); + + /** + * Returns the value of the 'Start' attribute. + * + *+ * If the meaning of the 'Start' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Start' attribute. + * @see #setStart(Date) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_Start() + * @model unique="false" dataType="org.openecomp.ncomp.gwt.siriusportal.model.Date" + * @generated + */ + Date getStart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getStart Start}' attribute. + * + * + * @param value the new value of the 'Start' attribute. + * @see #getStart() + * @generated + */ + void setStart(Date value); + + /** + * Returns the value of the 'End' attribute. + * + *+ * If the meaning of the 'End' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'End' attribute. + * @see #setEnd(Date) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_End() + * @model unique="false" dataType="org.openecomp.ncomp.gwt.siriusportal.model.Date" + * @generated + */ + Date getEnd(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getEnd End}' attribute. + * + * + * @param value the new value of the 'End' attribute. + * @see #getEnd() + * @generated + */ + void setEnd(Date value); + + /** + * Returns the value of the 'Is Rate' attribute. + * + *+ * If the meaning of the 'Is Rate' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Is Rate' attribute. + * @see #setIsRate(boolean) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_IsRate() + * @model unique="false" + * @generated + */ + boolean isIsRate(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#isIsRate Is Rate}' attribute. + * + * + * @param value the new value of the 'Is Rate' attribute. + * @see #isIsRate() + * @generated + */ + void setIsRate(boolean value); + + /** + * Returns the value of the 'Data' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData}. + * + *+ * If the meaning of the 'Data' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Data' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_Data() + * @model containment="true" + * @generated + */ + EList+ * 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(Date) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerieData_Time() + * @model unique="false" dataType="org.openecomp.ncomp.gwt.siriusportal.model.Date" + * @generated + */ + Date getTime(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getTime Time}' attribute. + * + * + * @param value the new value of the 'Time' attribute. + * @see #getTime() + * @generated + */ + void setTime(Date 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(double) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerieData_Value() + * @model unique="false" + * @generated + */ + double getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(double value); + + /** + * Returns the value of the 'Max' attribute. + * + *+ * If the meaning of the 'Max' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Max' attribute. + * @see #setMax(Double) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerieData_Max() + * @model unique="false" + * @generated + */ + Double getMax(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMax Max}' attribute. + * + * + * @param value the new value of the 'Max' attribute. + * @see #getMax() + * @generated + */ + void setMax(Double value); + + /** + * Returns the value of the 'Min' attribute. + * + *+ * If the meaning of the 'Min' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Min' attribute. + * @see #setMin(Double) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerieData_Min() + * @model unique="false" + * @generated + */ + Double getMin(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMin Min}' attribute. + * + * + * @param value the new value of the 'Min' attribute. + * @see #getMin() + * @generated + */ + void setMin(Double value); + + /** + * Returns the value of the 'Num' attribute. + * + *+ * If the meaning of the 'Num' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Num' attribute. + * @see #setNum(int) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerieData_Num() + * @model unique="false" + * @generated + */ + int getNum(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getNum Num}' attribute. + * + * + * @param value the new value of the 'Num' attribute. + * @see #getNum() + * @generated + */ + void setNum(int value); + +} // GuiTimeSerieData diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTree.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTree.java new file mode 100644 index 0000000..e9c39aa --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTree.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.gwt.siriusportal.model; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Tree'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Sections' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Sections' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTree_Sections() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Node Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Node Name' attribute. + * @see #setNodeName(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_NodeName() + * @model unique="false" + * @generated + */ + String getNodeName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getNodeName Node Name}' attribute. + * + * + * @param value the new value of the 'Node Name' attribute. + * @see #getNodeName() + * @generated + */ + void setNodeName(String value); + + /** + * Returns the value of the 'Title' attribute. + * + *+ * If the meaning of the 'Title' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Title' attribute. + * @see #setTitle(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_Title() + * @model unique="false" + * @generated + */ + String getTitle(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTitle Title}' attribute. + * + * + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the 'Tooltip' attribute. + * + *+ * If the meaning of the 'Tooltip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tooltip' attribute. + * @see #setTooltip(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_Tooltip() + * @model unique="false" + * @generated + */ + String getTooltip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTooltip Tooltip}' attribute. + * + * + * @param value the new value of the 'Tooltip' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + + /** + * Returns the value of the 'Icon' attribute. + * + *+ * If the meaning of the 'Icon' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Icon' attribute. + * @see #setIcon(String) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_Icon() + * @model unique="false" + * @generated + */ + String getIcon(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getIcon Icon}' attribute. + * + * + * @param value the new value of the 'Icon' attribute. + * @see #getIcon() + * @generated + */ + void setIcon(String value); + + /** + * Returns the value of the 'View' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiView}. + * + *+ * If the meaning of the 'View' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'View' attribute. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiView + * @see #setView(GuiView) + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_View() + * @model unique="false" + * @generated + */ + GuiView getView(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getView View}' attribute. + * + * + * @param value the new value of the 'View' attribute. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiView + * @see #getView() + * @generated + */ + void setView(GuiView value); + + /** + * Returns the value of the 'Children' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode}. + * + *+ * If the meaning of the 'Children' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Children' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_Children() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of 'NONE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #NONE + * @model + * @generated + * @ordered + */ + public static final int NONE_VALUE = 0; + + /** + * The 'OBJECT' literal value. + * + *+ * If the meaning of 'OBJECT' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OBJECT + * @model + * @generated + * @ordered + */ + public static final int OBJECT_VALUE = 0; + + /** + * The 'TIMESERIES' literal value. + * + *+ * If the meaning of 'TIMESERIES' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TIMESERIES + * @model + * @generated + * @ordered + */ + public static final int TIMESERIES_VALUE = 0; + + /** + * The 'BIRTREPORT' literal value. + * + *+ * If the meaning of 'BIRTREPORT' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #BIRTREPORT + * @model + * @generated + * @ordered + */ + public static final int BIRTREPORT_VALUE = 0; + + /** + * The 'HTML' literal value. + * + *+ * If the meaning of 'HTML' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HTML + * @model + * @generated + * @ordered + */ + public static final int HTML_VALUE = 0; + + /** + * The 'TABLE' literal value. + * + *+ * If the meaning of 'TABLE' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TABLE + * @model + * @generated + * @ordered + */ + public static final int TABLE_VALUE = 0; + + /** + * An array of all the 'Gui View' enumerators. + * + * + * @generated + */ + private static final GuiView[] VALUES_ARRAY = + new GuiView[] { + NONE, + OBJECT, + TIMESERIES, + BIRTREPORT, + HTML, + TABLE, + }; + + /** + * A public read-only list of all the 'Gui View' enumerators. + * + * + * @generated + */ + public static final List+ *
+ * + * @generated + */ +public class GuiClientApiImpl extends MinimalEObjectImpl.Container implements GuiClientApi { + /** + * + * + * @generated + */ + protected GuiClientApiImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_CLIENT_API; + } + + /** + * + * + * @generated + */ + public GuiTree getTree() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public GuiObject getObject(String path) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public GuiTimeSerie getTimeSerie(String path, String start, String end, String duration) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public GuiTable getTable(String path, String start, String end) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public GuiHtml getHtml(String path, String start, String end) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public GuiGraph getGraph(String path, String start, String end) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList> arguments) throws InvocationTargetException { + switch (operationID) { + case ModelPackage.GUI_CLIENT_API___GET_TREE: + return getTree(); + case ModelPackage.GUI_CLIENT_API___GET_OBJECT__STRING: + return getObject((String)arguments.get(0)); + case ModelPackage.GUI_CLIENT_API___GET_TIME_SERIE__STRING_STRING_STRING_STRING: + return getTimeSerie((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2), (String)arguments.get(3)); + case ModelPackage.GUI_CLIENT_API___GET_TABLE__STRING_STRING_STRING: + return getTable((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2)); + case ModelPackage.GUI_CLIENT_API___GET_HTML__STRING_STRING_STRING: + return getHtml((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2)); + case ModelPackage.GUI_CLIENT_API___GET_GRAPH__STRING_STRING_STRING: + return getGraph((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2)); + } + return super.eInvoke(operationID, arguments); + } + +} //GuiClientApiImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramImpl.java new file mode 100644 index 0000000..288d68f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramImpl.java @@ -0,0 +1,173 @@ + +/*- + * ============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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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 'Gui Diagram'. + * + *+ * 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: + *
+ * 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: + *
+ * 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: + *
+ * 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: + *
+ * 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.gwt.siriusportal.model.ModelPackage#eNS_URI + * @see #init() + * @generated + */ + private ModelPackageImpl() { + super(eNS_URI, ModelFactory.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 ModelPackage#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 ModelPackage init() {
+ if (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);
+
+ // Obtain or create and register package
+ ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ModelPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ GraphPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theModelPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theModelPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theModelPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(ModelPackage.eNS_URI, theModelPackage);
+ return theModelPackage;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiClientApi() {
+ return guiClientApiEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EOperation getGuiClientApi__GetTree() {
+ return guiClientApiEClass.getEOperations().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EOperation getGuiClientApi__GetObject__String() {
+ return guiClientApiEClass.getEOperations().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EOperation getGuiClientApi__GetTimeSerie__String_String_String_String() {
+ return guiClientApiEClass.getEOperations().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EOperation getGuiClientApi__GetTable__String_String_String() {
+ return guiClientApiEClass.getEOperations().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EOperation getGuiClientApi__GetHtml__String_String_String() {
+ return guiClientApiEClass.getEOperations().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EOperation getGuiClientApi__GetGraph__String_String_String() {
+ return guiClientApiEClass.getEOperations().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTree() {
+ return guiTreeEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTree_Sections() {
+ return (EReference)guiTreeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTreeNode() {
+ return guiTreeNodeEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTreeNode_NodeName() {
+ return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTreeNode_Title() {
+ return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTreeNode_Tooltip() {
+ return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTreeNode_Icon() {
+ return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTreeNode_View() {
+ return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTreeNode_Children() {
+ return (EReference)guiTreeNodeEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObject() {
+ return guiObjectEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiObject_Values() {
+ return (EReference)guiObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiNamedObject() {
+ return guiNamedObjectEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiNamedObject_ObjectName() {
+ return (EAttribute)guiNamedObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectValue() {
+ return guiObjectValueEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiObjectValue_ValueName() {
+ return (EAttribute)guiObjectValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiObjectValue_Tooltip() {
+ return (EAttribute)guiObjectValueEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectValueInteger() {
+ return guiObjectValueIntegerEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiObjectValueInteger_I() {
+ return (EAttribute)guiObjectValueIntegerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectValueString() {
+ return guiObjectValueStringEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiObjectValueString_V() {
+ return (EAttribute)guiObjectValueStringEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectValueReference() {
+ return guiObjectValueReferenceEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiObjectValueReference_Path() {
+ return (EAttribute)guiObjectValueReferenceEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectValueTimeSeries() {
+ return guiObjectValueTimeSeriesEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiObjectValueTimeSeries_Path() {
+ return (EAttribute)guiObjectValueTimeSeriesEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectValueObject() {
+ return guiObjectValueObjectEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiObjectValueObject_V() {
+ return (EReference)guiObjectValueObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectUnNamedList() {
+ return guiObjectUnNamedListEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiObjectUnNamedList_Objects() {
+ return (EReference)guiObjectUnNamedListEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiObjectNamedList() {
+ return guiObjectNamedListEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiObjectNamedList_Objects() {
+ return (EReference)guiObjectNamedListEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTimeSerie() {
+ return guiTimeSerieEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_Name() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_XAxisLabel() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_XAxisDateFormat() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_YAxisLabel() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_Start() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_End() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerie_IsRate() {
+ return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTimeSerie_Data() {
+ return (EReference)guiTimeSerieEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTimeSerieData() {
+ return guiTimeSerieDataEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerieData_Time() {
+ return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerieData_Value() {
+ return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerieData_Max() {
+ return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerieData_Min() {
+ return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTimeSerieData_Num() {
+ return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTable() {
+ return guiTableEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTable_Columns() {
+ return (EReference)guiTableEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTable_Rows() {
+ return (EReference)guiTableEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableColumn() {
+ return guiTableColumnEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableColumn_ColName() {
+ return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableColumn_Tooltip() {
+ return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableColumn_Format() {
+ return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableColumn_Width() {
+ return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableColumn_Hidden() {
+ return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableColumn_ColumnType() {
+ return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableRow() {
+ return guiTableRowEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTableRow_Cells() {
+ return (EReference)guiTableRowEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableCell() {
+ return guiTableCellEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCell_Tooltip() {
+ return (EAttribute)guiTableCellEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableCellString() {
+ return guiTableCellStringEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCellString_Value() {
+ return (EAttribute)guiTableCellStringEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableCellDouble() {
+ return guiTableCellDoubleEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCellDouble_Value() {
+ return (EAttribute)guiTableCellDoubleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCellDouble_TimeseriesPath() {
+ return (EAttribute)guiTableCellDoubleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableCellDate() {
+ return guiTableCellDateEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCellDate_Value() {
+ return (EAttribute)guiTableCellDateEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableCellReferences() {
+ return guiTableCellReferencesEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiTableCellReferences_Refs() {
+ return (EReference)guiTableCellReferencesEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiTableCellReference() {
+ return guiTableCellReferenceEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCellReference_Label() {
+ return (EAttribute)guiTableCellReferenceEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiTableCellReference_Path() {
+ return (EAttribute)guiTableCellReferenceEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiDiagram() {
+ return guiDiagramEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getGuiDiagram_Items() {
+ return (EReference)guiDiagramEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiDiagramItem() {
+ return guiDiagramItemEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiDiagramItem_Tooltip() {
+ return (EAttribute)guiDiagramItemEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiDiagramRectangle() {
+ return guiDiagramRectangleEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiDiagramRectangle_X() {
+ return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiDiagramRectangle_Y() {
+ return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiDiagramRectangle_H() {
+ return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiDiagramRectangle_W() {
+ return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getGuiHtml() {
+ return guiHtmlEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getGuiHtml_Html() {
+ return (EAttribute)guiHtmlEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getGuiView() {
+ return guiViewEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EEnum getGuiTableColumnType() {
+ return guiTableColumnTypeEEnum;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EDataType getDate() {
+ return dateEDataType;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public ModelFactory getModelFactory() {
+ return (ModelFactory)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
+ guiClientApiEClass = createEClass(GUI_CLIENT_API);
+ createEOperation(guiClientApiEClass, GUI_CLIENT_API___GET_TREE);
+ createEOperation(guiClientApiEClass, GUI_CLIENT_API___GET_OBJECT__STRING);
+ createEOperation(guiClientApiEClass, GUI_CLIENT_API___GET_TIME_SERIE__STRING_STRING_STRING_STRING);
+ createEOperation(guiClientApiEClass, GUI_CLIENT_API___GET_TABLE__STRING_STRING_STRING);
+ createEOperation(guiClientApiEClass, GUI_CLIENT_API___GET_HTML__STRING_STRING_STRING);
+ createEOperation(guiClientApiEClass, GUI_CLIENT_API___GET_GRAPH__STRING_STRING_STRING);
+
+ guiTreeEClass = createEClass(GUI_TREE);
+ createEReference(guiTreeEClass, GUI_TREE__SECTIONS);
+
+ guiTreeNodeEClass = createEClass(GUI_TREE_NODE);
+ createEAttribute(guiTreeNodeEClass, GUI_TREE_NODE__NODE_NAME);
+ createEAttribute(guiTreeNodeEClass, GUI_TREE_NODE__TITLE);
+ createEAttribute(guiTreeNodeEClass, GUI_TREE_NODE__TOOLTIP);
+ createEAttribute(guiTreeNodeEClass, GUI_TREE_NODE__ICON);
+ createEAttribute(guiTreeNodeEClass, GUI_TREE_NODE__VIEW);
+ createEReference(guiTreeNodeEClass, GUI_TREE_NODE__CHILDREN);
+
+ guiObjectEClass = createEClass(GUI_OBJECT);
+ createEReference(guiObjectEClass, GUI_OBJECT__VALUES);
+
+ guiNamedObjectEClass = createEClass(GUI_NAMED_OBJECT);
+ createEAttribute(guiNamedObjectEClass, GUI_NAMED_OBJECT__OBJECT_NAME);
+
+ guiObjectValueEClass = createEClass(GUI_OBJECT_VALUE);
+ createEAttribute(guiObjectValueEClass, GUI_OBJECT_VALUE__VALUE_NAME);
+ createEAttribute(guiObjectValueEClass, GUI_OBJECT_VALUE__TOOLTIP);
+
+ guiObjectValueIntegerEClass = createEClass(GUI_OBJECT_VALUE_INTEGER);
+ createEAttribute(guiObjectValueIntegerEClass, GUI_OBJECT_VALUE_INTEGER__I);
+
+ guiObjectValueStringEClass = createEClass(GUI_OBJECT_VALUE_STRING);
+ createEAttribute(guiObjectValueStringEClass, GUI_OBJECT_VALUE_STRING__V);
+
+ guiObjectValueReferenceEClass = createEClass(GUI_OBJECT_VALUE_REFERENCE);
+ createEAttribute(guiObjectValueReferenceEClass, GUI_OBJECT_VALUE_REFERENCE__PATH);
+
+ guiObjectValueTimeSeriesEClass = createEClass(GUI_OBJECT_VALUE_TIME_SERIES);
+ createEAttribute(guiObjectValueTimeSeriesEClass, GUI_OBJECT_VALUE_TIME_SERIES__PATH);
+
+ guiObjectValueObjectEClass = createEClass(GUI_OBJECT_VALUE_OBJECT);
+ createEReference(guiObjectValueObjectEClass, GUI_OBJECT_VALUE_OBJECT__V);
+
+ guiObjectUnNamedListEClass = createEClass(GUI_OBJECT_UN_NAMED_LIST);
+ createEReference(guiObjectUnNamedListEClass, GUI_OBJECT_UN_NAMED_LIST__OBJECTS);
+
+ guiObjectNamedListEClass = createEClass(GUI_OBJECT_NAMED_LIST);
+ createEReference(guiObjectNamedListEClass, GUI_OBJECT_NAMED_LIST__OBJECTS);
+
+ guiTimeSerieEClass = createEClass(GUI_TIME_SERIE);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__NAME);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__XAXIS_LABEL);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__XAXIS_DATE_FORMAT);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__YAXIS_LABEL);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__START);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__END);
+ createEAttribute(guiTimeSerieEClass, GUI_TIME_SERIE__IS_RATE);
+ createEReference(guiTimeSerieEClass, GUI_TIME_SERIE__DATA);
+
+ guiTimeSerieDataEClass = createEClass(GUI_TIME_SERIE_DATA);
+ createEAttribute(guiTimeSerieDataEClass, GUI_TIME_SERIE_DATA__TIME);
+ createEAttribute(guiTimeSerieDataEClass, GUI_TIME_SERIE_DATA__VALUE);
+ createEAttribute(guiTimeSerieDataEClass, GUI_TIME_SERIE_DATA__MAX);
+ createEAttribute(guiTimeSerieDataEClass, GUI_TIME_SERIE_DATA__MIN);
+ createEAttribute(guiTimeSerieDataEClass, GUI_TIME_SERIE_DATA__NUM);
+
+ guiTableEClass = createEClass(GUI_TABLE);
+ createEReference(guiTableEClass, GUI_TABLE__COLUMNS);
+ createEReference(guiTableEClass, GUI_TABLE__ROWS);
+
+ guiTableColumnEClass = createEClass(GUI_TABLE_COLUMN);
+ createEAttribute(guiTableColumnEClass, GUI_TABLE_COLUMN__COL_NAME);
+ createEAttribute(guiTableColumnEClass, GUI_TABLE_COLUMN__TOOLTIP);
+ createEAttribute(guiTableColumnEClass, GUI_TABLE_COLUMN__FORMAT);
+ createEAttribute(guiTableColumnEClass, GUI_TABLE_COLUMN__WIDTH);
+ createEAttribute(guiTableColumnEClass, GUI_TABLE_COLUMN__HIDDEN);
+ createEAttribute(guiTableColumnEClass, GUI_TABLE_COLUMN__COLUMN_TYPE);
+
+ guiTableRowEClass = createEClass(GUI_TABLE_ROW);
+ createEReference(guiTableRowEClass, GUI_TABLE_ROW__CELLS);
+
+ guiTableCellEClass = createEClass(GUI_TABLE_CELL);
+ createEAttribute(guiTableCellEClass, GUI_TABLE_CELL__TOOLTIP);
+
+ guiTableCellStringEClass = createEClass(GUI_TABLE_CELL_STRING);
+ createEAttribute(guiTableCellStringEClass, GUI_TABLE_CELL_STRING__VALUE);
+
+ guiTableCellDoubleEClass = createEClass(GUI_TABLE_CELL_DOUBLE);
+ createEAttribute(guiTableCellDoubleEClass, GUI_TABLE_CELL_DOUBLE__VALUE);
+ createEAttribute(guiTableCellDoubleEClass, GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH);
+
+ guiTableCellDateEClass = createEClass(GUI_TABLE_CELL_DATE);
+ createEAttribute(guiTableCellDateEClass, GUI_TABLE_CELL_DATE__VALUE);
+
+ guiTableCellReferencesEClass = createEClass(GUI_TABLE_CELL_REFERENCES);
+ createEReference(guiTableCellReferencesEClass, GUI_TABLE_CELL_REFERENCES__REFS);
+
+ guiTableCellReferenceEClass = createEClass(GUI_TABLE_CELL_REFERENCE);
+ createEAttribute(guiTableCellReferenceEClass, GUI_TABLE_CELL_REFERENCE__LABEL);
+ createEAttribute(guiTableCellReferenceEClass, GUI_TABLE_CELL_REFERENCE__PATH);
+
+ guiDiagramEClass = createEClass(GUI_DIAGRAM);
+ createEReference(guiDiagramEClass, GUI_DIAGRAM__ITEMS);
+
+ guiDiagramItemEClass = createEClass(GUI_DIAGRAM_ITEM);
+ createEAttribute(guiDiagramItemEClass, GUI_DIAGRAM_ITEM__TOOLTIP);
+
+ guiDiagramRectangleEClass = createEClass(GUI_DIAGRAM_RECTANGLE);
+ createEAttribute(guiDiagramRectangleEClass, GUI_DIAGRAM_RECTANGLE__X);
+ createEAttribute(guiDiagramRectangleEClass, GUI_DIAGRAM_RECTANGLE__Y);
+ createEAttribute(guiDiagramRectangleEClass, GUI_DIAGRAM_RECTANGLE__H);
+ createEAttribute(guiDiagramRectangleEClass, GUI_DIAGRAM_RECTANGLE__W);
+
+ guiHtmlEClass = createEClass(GUI_HTML);
+ createEAttribute(guiHtmlEClass, GUI_HTML__HTML);
+
+ // Create enums
+ guiViewEEnum = createEEnum(GUI_VIEW);
+ guiTableColumnTypeEEnum = createEEnum(GUI_TABLE_COLUMN_TYPE);
+
+ // Create data types
+ dateEDataType = createEDataType(DATE);
+ }
+
+ /**
+ *
+ *
+ * @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);
+ GraphPackage theGraphPackage = (GraphPackage)EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ guiNamedObjectEClass.getESuperTypes().add(this.getGuiObject());
+ guiObjectValueIntegerEClass.getESuperTypes().add(this.getGuiObjectValue());
+ guiObjectValueStringEClass.getESuperTypes().add(this.getGuiObjectValue());
+ guiObjectValueReferenceEClass.getESuperTypes().add(this.getGuiObjectValueString());
+ guiObjectValueTimeSeriesEClass.getESuperTypes().add(this.getGuiObjectValueString());
+ guiObjectValueObjectEClass.getESuperTypes().add(this.getGuiObjectValue());
+ guiObjectUnNamedListEClass.getESuperTypes().add(this.getGuiObjectValue());
+ guiObjectNamedListEClass.getESuperTypes().add(this.getGuiObjectValue());
+ guiTableCellStringEClass.getESuperTypes().add(this.getGuiTableCell());
+ guiTableCellDoubleEClass.getESuperTypes().add(this.getGuiTableCell());
+ guiTableCellDateEClass.getESuperTypes().add(this.getGuiTableCell());
+ guiTableCellReferencesEClass.getESuperTypes().add(this.getGuiTableCell());
+ guiDiagramRectangleEClass.getESuperTypes().add(this.getGuiDiagramItem());
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(guiClientApiEClass, GuiClientApi.class, "GuiClientApi", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEOperation(getGuiClientApi__GetTree(), this.getGuiTree(), "getTree", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ EOperation op = initEOperation(getGuiClientApi__GetObject__String(), this.getGuiObject(), "getObject", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getGuiClientApi__GetTimeSerie__String_String_String_String(), this.getGuiTimeSerie(), "getTimeSerie", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "duration", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getGuiClientApi__GetTable__String_String_String(), this.getGuiTable(), "getTable", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getGuiClientApi__GetHtml__String_String_String(), this.getGuiHtml(), "getHtml", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getGuiClientApi__GetGraph__String_String_String(), theGraphPackage.getGuiGraph(), "getGraph", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ initEClass(guiTreeEClass, GuiTree.class, "GuiTree", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiTree_Sections(), this.getGuiTreeNode(), null, "sections", null, 0, -1, GuiTree.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTreeNodeEClass, GuiTreeNode.class, "GuiTreeNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTreeNode_NodeName(), theEcorePackage.getEString(), "nodeName", null, 0, 1, GuiTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTreeNode_Title(), theEcorePackage.getEString(), "title", null, 0, 1, GuiTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTreeNode_Tooltip(), theEcorePackage.getEString(), "tooltip", null, 0, 1, GuiTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTreeNode_Icon(), theEcorePackage.getEString(), "icon", null, 0, 1, GuiTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTreeNode_View(), this.getGuiView(), "view", null, 0, 1, GuiTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getGuiTreeNode_Children(), this.getGuiTreeNode(), null, "children", null, 0, -1, GuiTreeNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectEClass, GuiObject.class, "GuiObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiObject_Values(), this.getGuiObjectValue(), null, "values", null, 0, -1, GuiObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiNamedObjectEClass, GuiNamedObject.class, "GuiNamedObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiNamedObject_ObjectName(), theEcorePackage.getEString(), "objectName", null, 0, 1, GuiNamedObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectValueEClass, GuiObjectValue.class, "GuiObjectValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiObjectValue_ValueName(), theEcorePackage.getEString(), "valueName", null, 0, 1, GuiObjectValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiObjectValue_Tooltip(), theEcorePackage.getEString(), "tooltip", null, 0, 1, GuiObjectValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectValueIntegerEClass, GuiObjectValueInteger.class, "GuiObjectValueInteger", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiObjectValueInteger_I(), theEcorePackage.getEInt(), "i", null, 0, 1, GuiObjectValueInteger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectValueStringEClass, GuiObjectValueString.class, "GuiObjectValueString", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiObjectValueString_V(), theEcorePackage.getEString(), "v", null, 0, 1, GuiObjectValueString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectValueReferenceEClass, GuiObjectValueReference.class, "GuiObjectValueReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiObjectValueReference_Path(), theEcorePackage.getEString(), "path", null, 0, 1, GuiObjectValueReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectValueTimeSeriesEClass, GuiObjectValueTimeSeries.class, "GuiObjectValueTimeSeries", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiObjectValueTimeSeries_Path(), theEcorePackage.getEString(), "path", null, 0, 1, GuiObjectValueTimeSeries.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectValueObjectEClass, GuiObjectValueObject.class, "GuiObjectValueObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiObjectValueObject_V(), this.getGuiObject(), null, "v", null, 0, 1, GuiObjectValueObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectUnNamedListEClass, GuiObjectUnNamedList.class, "GuiObjectUnNamedList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiObjectUnNamedList_Objects(), this.getGuiObject(), null, "objects", null, 0, -1, GuiObjectUnNamedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiObjectNamedListEClass, GuiObjectNamedList.class, "GuiObjectNamedList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiObjectNamedList_Objects(), this.getGuiNamedObject(), null, "objects", null, 0, -1, GuiObjectNamedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTimeSerieEClass, GuiTimeSerie.class, "GuiTimeSerie", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTimeSerie_Name(), theEcorePackage.getEString(), "name", null, 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerie_XAxisLabel(), theEcorePackage.getEString(), "xAxisLabel", null, 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerie_XAxisDateFormat(), theEcorePackage.getEString(), "xAxisDateFormat", "MM-dd HH:mm", 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerie_YAxisLabel(), theEcorePackage.getEString(), "yAxisLabel", null, 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerie_Start(), this.getDate(), "start", null, 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerie_End(), this.getDate(), "end", null, 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerie_IsRate(), theEcorePackage.getEBoolean(), "isRate", null, 0, 1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getGuiTimeSerie_Data(), this.getGuiTimeSerieData(), null, "data", null, 0, -1, GuiTimeSerie.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTimeSerieDataEClass, GuiTimeSerieData.class, "GuiTimeSerieData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTimeSerieData_Time(), this.getDate(), "time", null, 0, 1, GuiTimeSerieData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerieData_Value(), theEcorePackage.getEDouble(), "value", null, 0, 1, GuiTimeSerieData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerieData_Max(), theEcorePackage.getEDoubleObject(), "max", null, 0, 1, GuiTimeSerieData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerieData_Min(), theEcorePackage.getEDoubleObject(), "min", null, 0, 1, GuiTimeSerieData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTimeSerieData_Num(), theEcorePackage.getEInt(), "num", null, 0, 1, GuiTimeSerieData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableEClass, GuiTable.class, "GuiTable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiTable_Columns(), this.getGuiTableColumn(), null, "columns", null, 0, -1, GuiTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getGuiTable_Rows(), this.getGuiTableRow(), null, "rows", null, 0, -1, GuiTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableColumnEClass, GuiTableColumn.class, "GuiTableColumn", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTableColumn_ColName(), theEcorePackage.getEString(), "colName", null, 0, 1, GuiTableColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableColumn_Tooltip(), theEcorePackage.getEString(), "tooltip", null, 0, 1, GuiTableColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableColumn_Format(), theEcorePackage.getEString(), "format", null, 0, 1, GuiTableColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableColumn_Width(), theEcorePackage.getEInt(), "width", "0", 0, 1, GuiTableColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableColumn_Hidden(), theEcorePackage.getEBoolean(), "hidden", "false", 0, 1, GuiTableColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableColumn_ColumnType(), this.getGuiTableColumnType(), "columnType", null, 0, 1, GuiTableColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableRowEClass, GuiTableRow.class, "GuiTableRow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiTableRow_Cells(), this.getGuiTableCell(), null, "cells", null, 0, -1, GuiTableRow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableCellEClass, GuiTableCell.class, "GuiTableCell", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTableCell_Tooltip(), theEcorePackage.getEString(), "tooltip", null, 0, 1, GuiTableCell.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableCellStringEClass, GuiTableCellString.class, "GuiTableCellString", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTableCellString_Value(), theEcorePackage.getEString(), "value", null, 0, 1, GuiTableCellString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableCellDoubleEClass, GuiTableCellDouble.class, "GuiTableCellDouble", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTableCellDouble_Value(), theEcorePackage.getEDouble(), "value", null, 0, 1, GuiTableCellDouble.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableCellDouble_TimeseriesPath(), theEcorePackage.getEString(), "timeseriesPath", null, 0, 1, GuiTableCellDouble.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableCellDateEClass, GuiTableCellDate.class, "GuiTableCellDate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTableCellDate_Value(), this.getDate(), "value", null, 0, 1, GuiTableCellDate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableCellReferencesEClass, GuiTableCellReferences.class, "GuiTableCellReferences", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiTableCellReferences_Refs(), this.getGuiTableCellReference(), null, "refs", null, 0, -1, GuiTableCellReferences.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiTableCellReferenceEClass, GuiTableCellReference.class, "GuiTableCellReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiTableCellReference_Label(), theEcorePackage.getEString(), "label", null, 0, 1, GuiTableCellReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiTableCellReference_Path(), theEcorePackage.getEString(), "path", null, 0, 1, GuiTableCellReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiDiagramEClass, GuiDiagram.class, "GuiDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGuiDiagram_Items(), this.getGuiDiagramItem(), null, "items", null, 0, -1, GuiDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiDiagramItemEClass, GuiDiagramItem.class, "GuiDiagramItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiDiagramItem_Tooltip(), theEcorePackage.getEString(), "tooltip", null, 0, 1, GuiDiagramItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiDiagramRectangleEClass, GuiDiagramRectangle.class, "GuiDiagramRectangle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiDiagramRectangle_X(), theEcorePackage.getEInt(), "x", null, 0, 1, GuiDiagramRectangle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiDiagramRectangle_Y(), theEcorePackage.getEInt(), "y", null, 0, 1, GuiDiagramRectangle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiDiagramRectangle_H(), theEcorePackage.getEInt(), "h", null, 0, 1, GuiDiagramRectangle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getGuiDiagramRectangle_W(), theEcorePackage.getEInt(), "w", null, 0, 1, GuiDiagramRectangle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(guiHtmlEClass, GuiHtml.class, "GuiHtml", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGuiHtml_Html(), theEcorePackage.getEString(), "html", null, 0, 1, GuiHtml.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(guiViewEEnum, GuiView.class, "GuiView");
+ addEEnumLiteral(guiViewEEnum, GuiView.NONE);
+ addEEnumLiteral(guiViewEEnum, GuiView.OBJECT);
+ addEEnumLiteral(guiViewEEnum, GuiView.TIMESERIES);
+ addEEnumLiteral(guiViewEEnum, GuiView.BIRTREPORT);
+ addEEnumLiteral(guiViewEEnum, GuiView.HTML);
+ addEEnumLiteral(guiViewEEnum, GuiView.TABLE);
+
+ initEEnum(guiTableColumnTypeEEnum, GuiTableColumnType.class, "GuiTableColumnType");
+ addEEnumLiteral(guiTableColumnTypeEEnum, GuiTableColumnType.STRING);
+ addEEnumLiteral(guiTableColumnTypeEEnum, GuiTableColumnType.DOUBLE);
+ addEEnumLiteral(guiTableColumnTypeEEnum, GuiTableColumnType.DATE);
+ addEEnumLiteral(guiTableColumnTypeEEnum, GuiTableColumnType.REF_LIST);
+
+ // Initialize data types
+ initEDataType(dateEDataType, Date.class, "Date", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http://www.eclipse.org/emf/2011/Xcore
+ createXcoreAnnotations();
+ }
+
+ /**
+ * 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[] {
+ "GenModel", "http://www.eclipse.org/emf/2002/GenModel"
+ });
+ }
+
+} //ModelPackageImpl
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/util/ModelAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/util/ModelAdapterFactory.java
new file mode 100644
index 0000000..f47e797
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/util/ModelAdapterFactory.java
@@ -0,0 +1,627 @@
+
+/*-
+ * ============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.gwt.siriusportal.model.util;
+
+import org.openecomp.ncomp.gwt.siriusportal.model.*;
+
+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.gwt.siriusportal.model.ModelPackage
+ * @generated
+ */
+public class ModelAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static ModelPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public ModelAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ModelPackage.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 ModelSwitchtarget
.
+ *
+ *
+ * @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.gwt.siriusportal.model.GuiClientApi Gui Client 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.gwt.siriusportal.model.GuiClientApi
+ * @generated
+ */
+ public Adapter createGuiClientApiAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTree Gui Tree}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTree
+ * @generated
+ */
+ public Adapter createGuiTreeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode Gui Tree Node}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTreeNode
+ * @generated
+ */
+ public Adapter createGuiTreeNodeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObject Gui Object}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObject
+ * @generated
+ */
+ public Adapter createGuiObjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject Gui Named Object}'.
+ *
+ * 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.gwt.siriusportal.model.GuiNamedObject
+ * @generated
+ */
+ public Adapter createGuiNamedObjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue Gui Object Value}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectValue
+ * @generated
+ */
+ public Adapter createGuiObjectValueAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger Gui Object Value Integer}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectValueInteger
+ * @generated
+ */
+ public Adapter createGuiObjectValueIntegerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString Gui Object Value String}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectValueString
+ * @generated
+ */
+ public Adapter createGuiObjectValueStringAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference Gui Object Value Reference}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectValueReference
+ * @generated
+ */
+ public Adapter createGuiObjectValueReferenceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries Gui Object Value Time Series}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectValueTimeSeries
+ * @generated
+ */
+ public Adapter createGuiObjectValueTimeSeriesAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject Gui Object Value Object}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectValueObject
+ * @generated
+ */
+ public Adapter createGuiObjectValueObjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList Gui Object Un Named List}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectUnNamedList
+ * @generated
+ */
+ public Adapter createGuiObjectUnNamedListAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList Gui Object Named List}'.
+ *
+ * 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.gwt.siriusportal.model.GuiObjectNamedList
+ * @generated
+ */
+ public Adapter createGuiObjectNamedListAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie Gui Time Serie}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTimeSerie
+ * @generated
+ */
+ public Adapter createGuiTimeSerieAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData Gui Time Serie Data}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTimeSerieData
+ * @generated
+ */
+ public Adapter createGuiTimeSerieDataAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTable Gui Table}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTable
+ * @generated
+ */
+ public Adapter createGuiTableAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn Gui Table Column}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableColumn
+ * @generated
+ */
+ public Adapter createGuiTableColumnAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow Gui Table Row}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableRow
+ * @generated
+ */
+ public Adapter createGuiTableRowAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell Gui Table Cell}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableCell
+ * @generated
+ */
+ public Adapter createGuiTableCellAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString Gui Table Cell String}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableCellString
+ * @generated
+ */
+ public Adapter createGuiTableCellStringAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble Gui Table Cell Double}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableCellDouble
+ * @generated
+ */
+ public Adapter createGuiTableCellDoubleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate Gui Table Cell Date}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableCellDate
+ * @generated
+ */
+ public Adapter createGuiTableCellDateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences Gui Table Cell References}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableCellReferences
+ * @generated
+ */
+ public Adapter createGuiTableCellReferencesAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference Gui Table Cell Reference}'.
+ *
+ * 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.gwt.siriusportal.model.GuiTableCellReference
+ * @generated
+ */
+ public Adapter createGuiTableCellReferenceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram Gui Diagram}'.
+ *
+ * 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.gwt.siriusportal.model.GuiDiagram
+ * @generated
+ */
+ public Adapter createGuiDiagramAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem Gui Diagram Item}'.
+ *
+ * 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.gwt.siriusportal.model.GuiDiagramItem
+ * @generated
+ */
+ public Adapter createGuiDiagramItemAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle Gui Diagram Rectangle}'.
+ *
+ * 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.gwt.siriusportal.model.GuiDiagramRectangle
+ * @generated
+ */
+ public Adapter createGuiDiagramRectangleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml Gui Html}'.
+ *
+ * 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.gwt.siriusportal.model.GuiHtml
+ * @generated
+ */
+ public Adapter createGuiHtmlAdapter() {
+ 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;
+ }
+
+} //ModelAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/util/ModelSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/util/ModelSwitch.java
new file mode 100644
index 0000000..cd6aa77
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/util/ModelSwitch.java
@@ -0,0 +1,713 @@
+
+/*-
+ * ============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.gwt.siriusportal.model.util;
+
+import org.openecomp.ncomp.gwt.siriusportal.model.*;
+
+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.gwt.siriusportal.model.ModelPackage
+ * @generated
+ */
+public class ModelSwitchcaseXXX
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 ModelPackage.GUI_CLIENT_API: {
+ GuiClientApi guiClientApi = (GuiClientApi)theEObject;
+ T result = caseGuiClientApi(guiClientApi);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TREE: {
+ GuiTree guiTree = (GuiTree)theEObject;
+ T result = caseGuiTree(guiTree);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TREE_NODE: {
+ GuiTreeNode guiTreeNode = (GuiTreeNode)theEObject;
+ T result = caseGuiTreeNode(guiTreeNode);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT: {
+ GuiObject guiObject = (GuiObject)theEObject;
+ T result = caseGuiObject(guiObject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_NAMED_OBJECT: {
+ GuiNamedObject guiNamedObject = (GuiNamedObject)theEObject;
+ T result = caseGuiNamedObject(guiNamedObject);
+ if (result == null) result = caseGuiObject(guiNamedObject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_VALUE: {
+ GuiObjectValue guiObjectValue = (GuiObjectValue)theEObject;
+ T result = caseGuiObjectValue(guiObjectValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_VALUE_INTEGER: {
+ GuiObjectValueInteger guiObjectValueInteger = (GuiObjectValueInteger)theEObject;
+ T result = caseGuiObjectValueInteger(guiObjectValueInteger);
+ if (result == null) result = caseGuiObjectValue(guiObjectValueInteger);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_VALUE_STRING: {
+ GuiObjectValueString guiObjectValueString = (GuiObjectValueString)theEObject;
+ T result = caseGuiObjectValueString(guiObjectValueString);
+ if (result == null) result = caseGuiObjectValue(guiObjectValueString);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_VALUE_REFERENCE: {
+ GuiObjectValueReference guiObjectValueReference = (GuiObjectValueReference)theEObject;
+ T result = caseGuiObjectValueReference(guiObjectValueReference);
+ if (result == null) result = caseGuiObjectValueString(guiObjectValueReference);
+ if (result == null) result = caseGuiObjectValue(guiObjectValueReference);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES: {
+ GuiObjectValueTimeSeries guiObjectValueTimeSeries = (GuiObjectValueTimeSeries)theEObject;
+ T result = caseGuiObjectValueTimeSeries(guiObjectValueTimeSeries);
+ if (result == null) result = caseGuiObjectValueString(guiObjectValueTimeSeries);
+ if (result == null) result = caseGuiObjectValue(guiObjectValueTimeSeries);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_VALUE_OBJECT: {
+ GuiObjectValueObject guiObjectValueObject = (GuiObjectValueObject)theEObject;
+ T result = caseGuiObjectValueObject(guiObjectValueObject);
+ if (result == null) result = caseGuiObjectValue(guiObjectValueObject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_UN_NAMED_LIST: {
+ GuiObjectUnNamedList guiObjectUnNamedList = (GuiObjectUnNamedList)theEObject;
+ T result = caseGuiObjectUnNamedList(guiObjectUnNamedList);
+ if (result == null) result = caseGuiObjectValue(guiObjectUnNamedList);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_OBJECT_NAMED_LIST: {
+ GuiObjectNamedList guiObjectNamedList = (GuiObjectNamedList)theEObject;
+ T result = caseGuiObjectNamedList(guiObjectNamedList);
+ if (result == null) result = caseGuiObjectValue(guiObjectNamedList);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TIME_SERIE: {
+ GuiTimeSerie guiTimeSerie = (GuiTimeSerie)theEObject;
+ T result = caseGuiTimeSerie(guiTimeSerie);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TIME_SERIE_DATA: {
+ GuiTimeSerieData guiTimeSerieData = (GuiTimeSerieData)theEObject;
+ T result = caseGuiTimeSerieData(guiTimeSerieData);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE: {
+ GuiTable guiTable = (GuiTable)theEObject;
+ T result = caseGuiTable(guiTable);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_COLUMN: {
+ GuiTableColumn guiTableColumn = (GuiTableColumn)theEObject;
+ T result = caseGuiTableColumn(guiTableColumn);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_ROW: {
+ GuiTableRow guiTableRow = (GuiTableRow)theEObject;
+ T result = caseGuiTableRow(guiTableRow);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_CELL: {
+ GuiTableCell guiTableCell = (GuiTableCell)theEObject;
+ T result = caseGuiTableCell(guiTableCell);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_CELL_STRING: {
+ GuiTableCellString guiTableCellString = (GuiTableCellString)theEObject;
+ T result = caseGuiTableCellString(guiTableCellString);
+ if (result == null) result = caseGuiTableCell(guiTableCellString);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_CELL_DOUBLE: {
+ GuiTableCellDouble guiTableCellDouble = (GuiTableCellDouble)theEObject;
+ T result = caseGuiTableCellDouble(guiTableCellDouble);
+ if (result == null) result = caseGuiTableCell(guiTableCellDouble);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_CELL_DATE: {
+ GuiTableCellDate guiTableCellDate = (GuiTableCellDate)theEObject;
+ T result = caseGuiTableCellDate(guiTableCellDate);
+ if (result == null) result = caseGuiTableCell(guiTableCellDate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_CELL_REFERENCES: {
+ GuiTableCellReferences guiTableCellReferences = (GuiTableCellReferences)theEObject;
+ T result = caseGuiTableCellReferences(guiTableCellReferences);
+ if (result == null) result = caseGuiTableCell(guiTableCellReferences);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_TABLE_CELL_REFERENCE: {
+ GuiTableCellReference guiTableCellReference = (GuiTableCellReference)theEObject;
+ T result = caseGuiTableCellReference(guiTableCellReference);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_DIAGRAM: {
+ GuiDiagram guiDiagram = (GuiDiagram)theEObject;
+ T result = caseGuiDiagram(guiDiagram);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_DIAGRAM_ITEM: {
+ GuiDiagramItem guiDiagramItem = (GuiDiagramItem)theEObject;
+ T result = caseGuiDiagramItem(guiDiagramItem);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_DIAGRAM_RECTANGLE: {
+ GuiDiagramRectangle guiDiagramRectangle = (GuiDiagramRectangle)theEObject;
+ T result = caseGuiDiagramRectangle(guiDiagramRectangle);
+ if (result == null) result = caseGuiDiagramItem(guiDiagramRectangle);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ModelPackage.GUI_HTML: {
+ GuiHtml guiHtml = (GuiHtml)theEObject;
+ T result = caseGuiHtml(guiHtml);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Client 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 'Gui Client Api'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiClientApi(GuiClientApi object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Tree'.
+ *
+ * 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 'Gui Tree'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTree(GuiTree object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Tree Node'.
+ *
+ * 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 'Gui Tree Node'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTreeNode(GuiTreeNode object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object'.
+ *
+ * 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 'Gui Object'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObject(GuiObject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Named Object'.
+ *
+ * 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 'Gui Named Object'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiNamedObject(GuiNamedObject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Value'.
+ *
+ * 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 'Gui Object Value'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectValue(GuiObjectValue object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Value Integer'.
+ *
+ * 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 'Gui Object Value Integer'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectValueInteger(GuiObjectValueInteger object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Value String'.
+ *
+ * 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 'Gui Object Value String'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectValueString(GuiObjectValueString object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Value Reference'.
+ *
+ * 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 'Gui Object Value Reference'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectValueReference(GuiObjectValueReference object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Value Time Series'.
+ *
+ * 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 'Gui Object Value Time Series'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectValueTimeSeries(GuiObjectValueTimeSeries object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Value Object'.
+ *
+ * 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 'Gui Object Value Object'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectValueObject(GuiObjectValueObject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Un Named List'.
+ *
+ * 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 'Gui Object Un Named List'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectUnNamedList(GuiObjectUnNamedList object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Object Named List'.
+ *
+ * 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 'Gui Object Named List'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiObjectNamedList(GuiObjectNamedList object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Time Serie'.
+ *
+ * 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 'Gui Time Serie'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTimeSerie(GuiTimeSerie object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Time Serie Data'.
+ *
+ * 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 'Gui Time Serie Data'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTimeSerieData(GuiTimeSerieData object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table'.
+ *
+ * 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 'Gui Table'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTable(GuiTable object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Column'.
+ *
+ * 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 'Gui Table Column'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableColumn(GuiTableColumn object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Row'.
+ *
+ * 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 'Gui Table Row'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableRow(GuiTableRow object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Cell'.
+ *
+ * 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 'Gui Table Cell'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableCell(GuiTableCell object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Cell String'.
+ *
+ * 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 'Gui Table Cell String'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableCellString(GuiTableCellString object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Cell Double'.
+ *
+ * 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 'Gui Table Cell Double'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableCellDouble(GuiTableCellDouble object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Cell Date'.
+ *
+ * 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 'Gui Table Cell Date'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableCellDate(GuiTableCellDate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Cell References'.
+ *
+ * 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 'Gui Table Cell References'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableCellReferences(GuiTableCellReferences object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Table Cell Reference'.
+ *
+ * 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 'Gui Table Cell Reference'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiTableCellReference(GuiTableCellReference object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Diagram'.
+ *
+ * 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 'Gui Diagram'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiDiagram(GuiDiagram object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Diagram Item'.
+ *
+ * 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 'Gui Diagram Item'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiDiagramItem(GuiDiagramItem object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Diagram Rectangle'.
+ *
+ * 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 'Gui Diagram Rectangle'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiDiagramRectangle(GuiDiagramRectangle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Html'.
+ *
+ * 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 'Gui Html'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiHtml(GuiHtml 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;
+ }
+
+} //ModelSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllerModel.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllerModel.java
new file mode 100644
index 0000000..3301abc
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllerModel.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.sirius.manager.controllermodel;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Controller Model'.
+ *
+ *
+ *
+ *
+ *
+ * If the meaning of the 'Template Directory' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Template Directory' attribute. + * @see #setTemplateDirectory(String) + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage#getControllerModel_TemplateDirectory() + * @model unique="false" + * @generated + */ + String getTemplateDirectory(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTemplateDirectory Template Directory}' attribute. + * + * + * @param value the new value of the 'Template Directory' attribute. + * @see #getTemplateDirectory() + * @generated + */ + void setTemplateDirectory(String value); + + /** + * Returns the value of the 'Plugin Name' attribute. + * + *+ * If the meaning of the 'Plugin Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Plugin Name' attribute. + * @see #setPluginName(String) + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage#getControllerModel_PluginName() + * @model unique="false" + * @generated + */ + String getPluginName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPluginName Plugin Name}' attribute. + * + * + * @param value the new value of the 'Plugin Name' attribute. + * @see #getPluginName() + * @generated + */ + void setPluginName(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * 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.sirius.manager.controllermodel.ControllermodelPackage#getControllerModel_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Title' attribute. + * + *+ * If the meaning of the 'Title' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Title' attribute. + * @see #setTitle(String) + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage#getControllerModel_Title() + * @model unique="false" + * @generated + */ + String getTitle(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTitle Title}' attribute. + * + * + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the 'Prefix' attribute. + * + *+ * If the meaning of the 'Prefix' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Prefix' attribute. + * @see #setPrefix(String) + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage#getControllerModel_Prefix() + * @model unique="false" + * @generated + */ + String getPrefix(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPrefix Prefix}' attribute. + * + * + * @param value the new value of the 'Prefix' attribute. + * @see #getPrefix() + * @generated + */ + void setPrefix(String value); + +} // ControllerModel diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllermodelFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllermodelFactory.java new file mode 100644 index 0000000..7e9fc3b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllermodelFactory.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.sirius.manager.controllermodel; + +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.sirius.manager.controllermodel.ControllermodelPackage + * @generated + */ +public interface ControllermodelFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ControllermodelFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllermodelFactoryImpl.init(); + + /** + * Returns a new object of class 'Controller Model'. + * + * + * @return a new object of class 'Controller Model'. + * @generated + */ + ControllerModel createControllerModel(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ControllermodelPackage getControllermodelPackage(); + +} //ControllermodelFactory diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllermodelPackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllermodelPackage.java new file mode 100644 index 0000000..dde38a7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/ControllermodelPackage.java @@ -0,0 +1,294 @@ + +/*- + * ============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.sirius.manager.controllermodel; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * 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.sirius.manager.controllermodel.ControllermodelPackage#eNS_URI + * @see #init() + * @generated + */ + private ControllermodelPackageImpl() { + super(eNS_URI, ControllermodelFactory.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 ControllermodelPackage#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 ControllermodelPackage init() {
+ if (isInited) return (ControllermodelPackage)EPackage.Registry.INSTANCE.getEPackage(ControllermodelPackage.eNS_URI);
+
+ // Obtain or create and register package
+ ControllermodelPackageImpl theControllermodelPackage = (ControllermodelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ControllermodelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ControllermodelPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ EcorePackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theControllermodelPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theControllermodelPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theControllermodelPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(ControllermodelPackage.eNS_URI, theControllermodelPackage);
+ return theControllermodelPackage;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getControllerModel() {
+ return controllerModelEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getControllerModel_TemplateDirectory() {
+ return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getControllerModel_PluginName() {
+ return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getControllerModel_Name() {
+ return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getControllerModel_Title() {
+ return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getControllerModel_Prefix() {
+ return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public ControllermodelFactory getControllermodelFactory() {
+ return (ControllermodelFactory)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
+ controllerModelEClass = createEClass(CONTROLLER_MODEL);
+ createEAttribute(controllerModelEClass, CONTROLLER_MODEL__TEMPLATE_DIRECTORY);
+ createEAttribute(controllerModelEClass, CONTROLLER_MODEL__PLUGIN_NAME);
+ createEAttribute(controllerModelEClass, CONTROLLER_MODEL__NAME);
+ createEAttribute(controllerModelEClass, CONTROLLER_MODEL__TITLE);
+ createEAttribute(controllerModelEClass, CONTROLLER_MODEL__PREFIX);
+ }
+
+ /**
+ *
+ *
+ * @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
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(controllerModelEClass, ControllerModel.class, "ControllerModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getControllerModel_TemplateDirectory(), theEcorePackage.getEString(), "templateDirectory", null, 0, 1, ControllerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getControllerModel_PluginName(), theEcorePackage.getEString(), "pluginName", null, 0, 1, ControllerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getControllerModel_Name(), theEcorePackage.getEString(), "name", null, 0, 1, ControllerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getControllerModel_Title(), theEcorePackage.getEString(), "title", null, 0, 1, ControllerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getControllerModel_Prefix(), theEcorePackage.getEString(), "prefix", null, 0, 1, ControllerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //ControllermodelPackageImpl
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/util/ControllermodelAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/util/ControllermodelAdapterFactory.java
new file mode 100644
index 0000000..fee7dc9
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/util/ControllermodelAdapterFactory.java
@@ -0,0 +1,141 @@
+
+/*-
+ * ============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.sirius.manager.controllermodel.util;
+
+import org.openecomp.ncomp.sirius.manager.controllermodel.*;
+
+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.sirius.manager.controllermodel.ControllermodelPackage
+ * @generated
+ */
+public class ControllermodelAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static ControllermodelPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public ControllermodelAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ControllermodelPackage.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 ControllermodelSwitchtarget
.
+ *
+ *
+ * @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.sirius.manager.controllermodel.ControllerModel Controller Model}'.
+ *
+ * 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.sirius.manager.controllermodel.ControllerModel
+ * @generated
+ */
+ public Adapter createControllerModelAdapter() {
+ 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;
+ }
+
+} //ControllermodelAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/util/ControllermodelSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/util/ControllermodelSwitch.java
new file mode 100644
index 0000000..03f3528
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/util/ControllermodelSwitch.java
@@ -0,0 +1,131 @@
+
+/*-
+ * ============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.sirius.manager.controllermodel.util;
+
+import org.openecomp.ncomp.sirius.manager.controllermodel.*;
+
+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.sirius.manager.controllermodel.ControllermodelPackage
+ * @generated
+ */
+public class ControllermodelSwitchcaseXXX
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 ControllermodelPackage.CONTROLLER_MODEL: {
+ ControllerModel controllerModel = (ControllerModel)theEObject;
+ T result = caseControllerModel(controllerModel);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Controller Model'.
+ *
+ * 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 'Controller Model'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseControllerModel(ControllerModel 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;
+ }
+
+} //ControllermodelSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GraphFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GraphFactory.java
new file mode 100644
index 0000000..e6ac653
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GraphFactory.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.sirius.manager.graph;
+
+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.sirius.manager.graph.GraphPackage
+ * @generated
+ */
+public interface GraphFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ GraphFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.graph.impl.GraphFactoryImpl.init();
+
+ /**
+ * Returns a new object of class 'Gui Graph'.
+ *
+ *
+ * @return a new object of class 'Gui Graph'.
+ * @generated
+ */
+ GuiGraph createGuiGraph();
+
+ /**
+ * Returns a new object of class 'Gui Graph Item'.
+ *
+ *
+ * @return a new object of class 'Gui Graph Item'.
+ * @generated
+ */
+ GuiGraphItem createGuiGraphItem();
+
+ /**
+ * Returns a new object of class 'Gui Graph Node'.
+ *
+ *
+ * @return a new object of class 'Gui Graph Node'.
+ * @generated
+ */
+ GuiGraphNode createGuiGraphNode();
+
+ /**
+ * Returns a new object of class 'Gui Graph Edge'.
+ *
+ *
+ * @return a new object of class 'Gui Graph Edge'.
+ * @generated
+ */
+ GuiGraphEdge createGuiGraphEdge();
+
+ /**
+ * Returns the package supported by this factory.
+ *
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ GraphPackage getGraphPackage();
+
+} //GraphFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GraphPackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GraphPackage.java
new file mode 100644
index 0000000..68f61a1
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GraphPackage.java
@@ -0,0 +1,662 @@
+
+/*-
+ * ============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.sirius.manager.graph;
+
+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
+ *
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.GraphFactory
+ * @model kind="package"
+ * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' updateClasspath='false' basePackage='org.openecomp.ncomp.sirius.manager'"
+ * annotation="http://www.eclipse.org/emf/2011/Xcore GenModel='http://www.eclipse.org/emf/2002/GenModel'"
+ * @generated
+ */
+public interface GraphPackage extends EPackage {
+ /**
+ * The package name.
+ *
+ *
+ * @generated
+ */
+ String eNAME = "graph";
+
+ /**
+ * The package namespace URI.
+ *
+ *
+ * @generated
+ */
+ String eNS_URI = "org.openecomp.ncomp.sirius.manager.graph";
+
+ /**
+ * The package namespace name.
+ *
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "graph";
+
+ /**
+ * The singleton instance of the package.
+ *
+ *
+ * @generated
+ */
+ GraphPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl Gui Graph}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraph()
+ * @generated
+ */
+ int GUI_GRAPH = 0;
+
+ /**
+ * The feature id for the 'Nodes' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH__NODES = 0;
+
+ /**
+ * The feature id for the 'Edges' containment reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH__EDGES = 1;
+
+ /**
+ * The number of structural features of the 'Gui Graph' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_FEATURE_COUNT = 2;
+
+ /**
+ * The number of operations of the 'Gui Graph' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl Gui Graph Item}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphItem()
+ * @generated
+ */
+ int GUI_GRAPH_ITEM = 1;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_ITEM__NAME = 0;
+
+ /**
+ * The feature id for the 'Tooltip' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_ITEM__TOOLTIP = 1;
+
+ /**
+ * The feature id for the 'Url' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_ITEM__URL = 2;
+
+ /**
+ * The number of structural features of the 'Gui Graph Item' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_ITEM_FEATURE_COUNT = 3;
+
+ /**
+ * The number of operations of the 'Gui Graph Item' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_ITEM_OPERATION_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl Gui Graph Node}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphNode()
+ * @generated
+ */
+ int GUI_GRAPH_NODE = 2;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__NAME = GUI_GRAPH_ITEM__NAME;
+
+ /**
+ * The feature id for the 'Tooltip' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP;
+
+ /**
+ * The feature id for the 'Url' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__URL = GUI_GRAPH_ITEM__URL;
+
+ /**
+ * The feature id for the 'X' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Y' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the 'H' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__H = GUI_GRAPH_ITEM_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'W' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE__W = GUI_GRAPH_ITEM_FEATURE_COUNT + 3;
+
+ /**
+ * The number of structural features of the 'Gui Graph Node' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 4;
+
+ /**
+ * The number of operations of the 'Gui Graph Node' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_NODE_OPERATION_COUNT = GUI_GRAPH_ITEM_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl Gui Graph Edge}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphEdge()
+ * @generated
+ */
+ int GUI_GRAPH_EDGE = 3;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE__NAME = GUI_GRAPH_ITEM__NAME;
+
+ /**
+ * The feature id for the 'Tooltip' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP;
+
+ /**
+ * The feature id for the 'Url' attribute.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE__URL = GUI_GRAPH_ITEM__URL;
+
+ /**
+ * The feature id for the 'X' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Y' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Gui Graph Edge' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 2;
+
+ /**
+ * The number of operations of the 'Gui Graph Edge' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int GUI_GRAPH_EDGE_OPERATION_COUNT = GUI_GRAPH_ITEM_OPERATION_COUNT + 0;
+
+
+ /**
+ * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph Gui Graph}'.
+ *
+ *
+ * @return the meta object for class 'Gui Graph'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph
+ * @generated
+ */
+ EClass getGuiGraph();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes Nodes}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Nodes'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes()
+ * @see #getGuiGraph()
+ * @generated
+ */
+ EReference getGuiGraph_Nodes();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges Edges}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Edges'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges()
+ * @see #getGuiGraph()
+ * @generated
+ */
+ EReference getGuiGraph_Edges();
+
+ /**
+ * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem Gui Graph Item}'.
+ *
+ *
+ * @return the meta object for class 'Gui Graph Item'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem
+ * @generated
+ */
+ EClass getGuiGraphItem();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName Name}'.
+ *
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName()
+ * @see #getGuiGraphItem()
+ * @generated
+ */
+ EAttribute getGuiGraphItem_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip Tooltip}'.
+ *
+ *
+ * @return the meta object for the attribute 'Tooltip'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip()
+ * @see #getGuiGraphItem()
+ * @generated
+ */
+ EAttribute getGuiGraphItem_Tooltip();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl Url}'.
+ *
+ *
+ * @return the meta object for the attribute 'Url'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl()
+ * @see #getGuiGraphItem()
+ * @generated
+ */
+ EAttribute getGuiGraphItem_Url();
+
+ /**
+ * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode Gui Graph Node}'.
+ *
+ *
+ * @return the meta object for class 'Gui Graph Node'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode
+ * @generated
+ */
+ EClass getGuiGraphNode();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX X}'.
+ *
+ *
+ * @return the meta object for the attribute 'X'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX()
+ * @see #getGuiGraphNode()
+ * @generated
+ */
+ EAttribute getGuiGraphNode_X();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY Y}'.
+ *
+ *
+ * @return the meta object for the attribute 'Y'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY()
+ * @see #getGuiGraphNode()
+ * @generated
+ */
+ EAttribute getGuiGraphNode_Y();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH H}'.
+ *
+ *
+ * @return the meta object for the attribute 'H'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH()
+ * @see #getGuiGraphNode()
+ * @generated
+ */
+ EAttribute getGuiGraphNode_H();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW W}'.
+ *
+ *
+ * @return the meta object for the attribute 'W'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW()
+ * @see #getGuiGraphNode()
+ * @generated
+ */
+ EAttribute getGuiGraphNode_W();
+
+ /**
+ * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge Gui Graph Edge}'.
+ *
+ *
+ * @return the meta object for class 'Gui Graph Edge'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge
+ * @generated
+ */
+ EClass getGuiGraphEdge();
+
+ /**
+ * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX X}'.
+ *
+ *
+ * @return the meta object for the reference 'X'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX()
+ * @see #getGuiGraphEdge()
+ * @generated
+ */
+ EReference getGuiGraphEdge_X();
+
+ /**
+ * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY Y}'.
+ *
+ *
+ * @return the meta object for the reference 'Y'.
+ * @see org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY()
+ * @see #getGuiGraphEdge()
+ * @generated
+ */
+ EReference getGuiGraphEdge_Y();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ GraphFactory getGraphFactory();
+
+ /**
+ *
+ * Defines literals for the meta objects that represent
+ *
+ *
+ *
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl Gui Graph}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraph()
+ * @generated
+ */
+ EClass GUI_GRAPH = eINSTANCE.getGuiGraph();
+
+ /**
+ * The meta object literal for the 'Nodes' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference GUI_GRAPH__NODES = eINSTANCE.getGuiGraph_Nodes();
+
+ /**
+ * The meta object literal for the 'Edges' containment reference list feature.
+ *
+ *
+ * @generated
+ */
+ EReference GUI_GRAPH__EDGES = eINSTANCE.getGuiGraph_Edges();
+
+ /**
+ * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl Gui Graph Item}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphItem()
+ * @generated
+ */
+ EClass GUI_GRAPH_ITEM = eINSTANCE.getGuiGraphItem();
+
+ /**
+ * The meta object literal for the 'Name' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_ITEM__NAME = eINSTANCE.getGuiGraphItem_Name();
+
+ /**
+ * The meta object literal for the 'Tooltip' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_ITEM__TOOLTIP = eINSTANCE.getGuiGraphItem_Tooltip();
+
+ /**
+ * The meta object literal for the 'Url' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_ITEM__URL = eINSTANCE.getGuiGraphItem_Url();
+
+ /**
+ * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl Gui Graph Node}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphNode()
+ * @generated
+ */
+ EClass GUI_GRAPH_NODE = eINSTANCE.getGuiGraphNode();
+
+ /**
+ * The meta object literal for the 'X' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_NODE__X = eINSTANCE.getGuiGraphNode_X();
+
+ /**
+ * The meta object literal for the 'Y' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_NODE__Y = eINSTANCE.getGuiGraphNode_Y();
+
+ /**
+ * The meta object literal for the 'H' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_NODE__H = eINSTANCE.getGuiGraphNode_H();
+
+ /**
+ * The meta object literal for the 'W' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute GUI_GRAPH_NODE__W = eINSTANCE.getGuiGraphNode_W();
+
+ /**
+ * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl Gui Graph Edge}' class.
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl
+ * @see org.openecomp.ncomp.sirius.manager.graph.impl.GraphPackageImpl#getGuiGraphEdge()
+ * @generated
+ */
+ EClass GUI_GRAPH_EDGE = eINSTANCE.getGuiGraphEdge();
+
+ /**
+ * The meta object literal for the 'X' reference feature.
+ *
+ *
+ * @generated
+ */
+ EReference GUI_GRAPH_EDGE__X = eINSTANCE.getGuiGraphEdge_X();
+
+ /**
+ * The meta object literal for the 'Y' reference feature.
+ *
+ *
+ * @generated
+ */
+ EReference GUI_GRAPH_EDGE__Y = eINSTANCE.getGuiGraphEdge_Y();
+
+ }
+
+} //GraphPackage
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraph.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraph.java
new file mode 100644
index 0000000..c303295
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraph.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.sirius.manager.graph;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Gui Graph'.
+ *
+ *
+ *
+ *
+ *
+ * If the meaning of the 'Nodes' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Nodes' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraph_Nodes() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Edges' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Edges' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraph_Edges() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'X' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'X' reference. + * @see #setX(GuiGraphNode) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphEdge_X() + * @model + * @generated + */ + GuiGraphNode getX(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX X}' reference. + * + * + * @param value the new value of the 'X' reference. + * @see #getX() + * @generated + */ + void setX(GuiGraphNode value); + + /** + * Returns the value of the 'Y' reference. + * + *+ * If the meaning of the 'Y' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Y' reference. + * @see #setY(GuiGraphNode) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphEdge_Y() + * @model + * @generated + */ + GuiGraphNode getY(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY Y}' reference. + * + * + * @param value the new value of the 'Y' reference. + * @see #getY() + * @generated + */ + void setY(GuiGraphNode value); + +} // GuiGraphEdge diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphItem.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphItem.java new file mode 100644 index 0000000..7df3873 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphItem.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.sirius.manager.graph; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Gui Graph Item'. + * + * + *+ * 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.sirius.manager.graph.GraphPackage#getGuiGraphItem_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Tooltip' attribute. + * + *+ * If the meaning of the 'Tooltip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tooltip' attribute. + * @see #setTooltip(String) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphItem_Tooltip() + * @model unique="false" + * @generated + */ + String getTooltip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip Tooltip}' attribute. + * + * + * @param value the new value of the 'Tooltip' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + + /** + * Returns the value of the 'Url' attribute. + * + *+ * If the meaning of the 'Url' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Url' attribute. + * @see #setUrl(String) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphItem_Url() + * @model unique="false" + * @generated + */ + String getUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl Url}' attribute. + * + * + * @param value the new value of the 'Url' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); + +} // GuiGraphItem diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphNode.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphNode.java new file mode 100644 index 0000000..44ce312 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphNode.java @@ -0,0 +1,151 @@ + +/*- + * ============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.sirius.manager.graph; + + +/** + * + * A representation of the model object 'Gui Graph Node'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'X' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'X' attribute. + * @see #setX(Integer) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphNode_X() + * @model unique="false" + * @generated + */ + Integer getX(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX X}' attribute. + * + * + * @param value the new value of the 'X' attribute. + * @see #getX() + * @generated + */ + void setX(Integer value); + + /** + * Returns the value of the 'Y' attribute. + * + *+ * If the meaning of the 'Y' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Y' attribute. + * @see #setY(Integer) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphNode_Y() + * @model unique="false" + * @generated + */ + Integer getY(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY Y}' attribute. + * + * + * @param value the new value of the 'Y' attribute. + * @see #getY() + * @generated + */ + void setY(Integer value); + + /** + * Returns the value of the 'H' attribute. + * + *+ * If the meaning of the 'H' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'H' attribute. + * @see #setH(Integer) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphNode_H() + * @model unique="false" + * @generated + */ + Integer getH(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH H}' attribute. + * + * + * @param value the new value of the 'H' attribute. + * @see #getH() + * @generated + */ + void setH(Integer value); + + /** + * Returns the value of the 'W' attribute. + * + *+ * If the meaning of the 'W' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'W' attribute. + * @see #setW(Integer) + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphNode_W() + * @model unique="false" + * @generated + */ + Integer getW(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW W}' attribute. + * + * + * @param value the new value of the 'W' attribute. + * @see #getW() + * @generated + */ + void setW(Integer value); + +} // GuiGraphNode diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GraphFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GraphFactoryImpl.java new file mode 100644 index 0000000..1671c9f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GraphFactoryImpl.java @@ -0,0 +1,149 @@ + +/*- + * ============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.sirius.manager.graph.impl; + +import org.openecomp.ncomp.sirius.manager.graph.*; + +import org.eclipse.emf.ecore.EClass; +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 GraphFactoryImpl extends EFactoryImpl implements GraphFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static GraphFactory init() { + try { + GraphFactory theGraphFactory = (GraphFactory)EPackage.Registry.INSTANCE.getEFactory(GraphPackage.eNS_URI); + if (theGraphFactory != null) { + return theGraphFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new GraphFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public GraphFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case GraphPackage.GUI_GRAPH: return createGuiGraph(); + case GraphPackage.GUI_GRAPH_ITEM: return createGuiGraphItem(); + case GraphPackage.GUI_GRAPH_NODE: return createGuiGraphNode(); + case GraphPackage.GUI_GRAPH_EDGE: return createGuiGraphEdge(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public GuiGraph createGuiGraph() { + GuiGraphImpl guiGraph = new GuiGraphImpl(); + return guiGraph; + } + + /** + * + * + * @generated + */ + public GuiGraphItem createGuiGraphItem() { + GuiGraphItemImpl guiGraphItem = new GuiGraphItemImpl(); + return guiGraphItem; + } + + /** + * + * + * @generated + */ + public GuiGraphNode createGuiGraphNode() { + GuiGraphNodeImpl guiGraphNode = new GuiGraphNodeImpl(); + return guiGraphNode; + } + + /** + * + * + * @generated + */ + public GuiGraphEdge createGuiGraphEdge() { + GuiGraphEdgeImpl guiGraphEdge = new GuiGraphEdgeImpl(); + return guiGraphEdge; + } + + /** + * + * + * @generated + */ + public GraphPackage getGraphPackage() { + return (GraphPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static GraphPackage getPackage() { + return GraphPackage.eINSTANCE; + } + +} //GraphFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GraphPackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GraphPackageImpl.java new file mode 100644 index 0000000..9e1c4c5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GraphPackageImpl.java @@ -0,0 +1,401 @@ + +/*- + * ============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.sirius.manager.graph.impl; + +import org.openecomp.ncomp.sirius.manager.graph.GraphFactory; +import org.openecomp.ncomp.sirius.manager.graph.GraphPackage; +import org.openecomp.ncomp.sirius.manager.graph.GuiGraph; +import org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge; +import org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem; +import org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +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 GraphPackageImpl extends EPackageImpl implements GraphPackage { + /** + * + * + * @generated + */ + private EClass guiGraphEClass = null; + + /** + * + * + * @generated + */ + private EClass guiGraphItemEClass = null; + + /** + * + * + * @generated + */ + private EClass guiGraphNodeEClass = null; + + /** + * + * + * @generated + */ + private EClass guiGraphEdgeEClass = 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.sirius.manager.graph.GraphPackage#eNS_URI + * @see #init() + * @generated + */ + private GraphPackageImpl() { + super(eNS_URI, GraphFactory.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 GraphPackage#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 GraphPackage init() { + if (isInited) return (GraphPackage)EPackage.Registry.INSTANCE.getEPackage(GraphPackage.eNS_URI); + + // Obtain or create and register package + GraphPackageImpl theGraphPackage = (GraphPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof GraphPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new GraphPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theGraphPackage.createPackageContents(); + + // Initialize created meta-data + theGraphPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theGraphPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(GraphPackage.eNS_URI, theGraphPackage); + return theGraphPackage; + } + + /** + * + * + * @generated + */ + public EClass getGuiGraph() { + return guiGraphEClass; + } + + /** + * + * + * @generated + */ + public EReference getGuiGraph_Nodes() { + return (EReference)guiGraphEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGuiGraph_Edges() { + return (EReference)guiGraphEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getGuiGraphItem() { + return guiGraphItemEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphItem_Name() { + return (EAttribute)guiGraphItemEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphItem_Tooltip() { + return (EAttribute)guiGraphItemEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphItem_Url() { + return (EAttribute)guiGraphItemEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getGuiGraphNode() { + return guiGraphNodeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphNode_X() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphNode_Y() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphNode_H() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getGuiGraphNode_W() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getGuiGraphEdge() { + return guiGraphEdgeEClass; + } + + /** + * + * + * @generated + */ + public EReference getGuiGraphEdge_X() { + return (EReference)guiGraphEdgeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getGuiGraphEdge_Y() { + return (EReference)guiGraphEdgeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public GraphFactory getGraphFactory() { + return (GraphFactory)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 + guiGraphEClass = createEClass(GUI_GRAPH); + createEReference(guiGraphEClass, GUI_GRAPH__NODES); + createEReference(guiGraphEClass, GUI_GRAPH__EDGES); + + guiGraphItemEClass = createEClass(GUI_GRAPH_ITEM); + createEAttribute(guiGraphItemEClass, GUI_GRAPH_ITEM__NAME); + createEAttribute(guiGraphItemEClass, GUI_GRAPH_ITEM__TOOLTIP); + createEAttribute(guiGraphItemEClass, GUI_GRAPH_ITEM__URL); + + guiGraphNodeEClass = createEClass(GUI_GRAPH_NODE); + createEAttribute(guiGraphNodeEClass, GUI_GRAPH_NODE__X); + createEAttribute(guiGraphNodeEClass, GUI_GRAPH_NODE__Y); + createEAttribute(guiGraphNodeEClass, GUI_GRAPH_NODE__H); + createEAttribute(guiGraphNodeEClass, GUI_GRAPH_NODE__W); + + guiGraphEdgeEClass = createEClass(GUI_GRAPH_EDGE); + createEReference(guiGraphEdgeEClass, GUI_GRAPH_EDGE__X); + createEReference(guiGraphEdgeEClass, GUI_GRAPH_EDGE__Y); + } + + /** + * + * + * @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 + guiGraphNodeEClass.getESuperTypes().add(this.getGuiGraphItem()); + guiGraphEdgeEClass.getESuperTypes().add(this.getGuiGraphItem()); + + // Initialize classes, features, and operations; add parameters + initEClass(guiGraphEClass, GuiGraph.class, "GuiGraph", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGuiGraph_Nodes(), this.getGuiGraphNode(), null, "nodes", null, 0, -1, GuiGraph.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGuiGraph_Edges(), this.getGuiGraphEdge(), null, "edges", null, 0, -1, GuiGraph.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(guiGraphItemEClass, GuiGraphItem.class, "GuiGraphItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGuiGraphItem_Name(), theEcorePackage.getEString(), "name", null, 0, 1, GuiGraphItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGuiGraphItem_Tooltip(), theEcorePackage.getEString(), "tooltip", null, 0, 1, GuiGraphItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGuiGraphItem_Url(), theEcorePackage.getEString(), "Url", null, 0, 1, GuiGraphItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(guiGraphNodeEClass, GuiGraphNode.class, "GuiGraphNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGuiGraphNode_X(), theEcorePackage.getEIntegerObject(), "x", null, 0, 1, GuiGraphNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGuiGraphNode_Y(), theEcorePackage.getEIntegerObject(), "y", null, 0, 1, GuiGraphNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGuiGraphNode_H(), theEcorePackage.getEIntegerObject(), "h", null, 0, 1, GuiGraphNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGuiGraphNode_W(), theEcorePackage.getEIntegerObject(), "w", null, 0, 1, GuiGraphNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(guiGraphEdgeEClass, GuiGraphEdge.class, "GuiGraphEdge", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getGuiGraphEdge_X(), this.getGuiGraphNode(), null, "x", null, 0, 1, GuiGraphEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getGuiGraphEdge_Y(), this.getGuiGraphNode(), null, "y", null, 0, 1, GuiGraphEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + } + + /** + * 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[] { + "GenModel", "http://www.eclipse.org/emf/2002/GenModel" + }); + } + +} //GraphPackageImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphEdgeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphEdgeImpl.java new file mode 100644 index 0000000..0a1c680 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphEdgeImpl.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.sirius.manager.graph.impl; + +import org.openecomp.ncomp.sirius.manager.graph.GraphPackage; +import org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge; +import org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Gui Graph Edge'. + * + *
+ * 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.sirius.manager.graph.GraphPackage
+ * @generated
+ */
+public class GraphAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static GraphPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public GraphAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = GraphPackage.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 GraphSwitchtarget
.
+ *
+ *
+ * @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.sirius.manager.graph.GuiGraph Gui Graph}'.
+ *
+ * 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.sirius.manager.graph.GuiGraph
+ * @generated
+ */
+ public Adapter createGuiGraphAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem Gui Graph Item}'.
+ *
+ * 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.sirius.manager.graph.GuiGraphItem
+ * @generated
+ */
+ public Adapter createGuiGraphItemAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode Gui Graph Node}'.
+ *
+ * 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.sirius.manager.graph.GuiGraphNode
+ * @generated
+ */
+ public Adapter createGuiGraphNodeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge Gui Graph Edge}'.
+ *
+ * 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.sirius.manager.graph.GuiGraphEdge
+ * @generated
+ */
+ public Adapter createGuiGraphEdgeAdapter() {
+ 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;
+ }
+
+} //GraphAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/util/GraphSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/util/GraphSwitch.java
new file mode 100644
index 0000000..db66b0f
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/util/GraphSwitch.java
@@ -0,0 +1,196 @@
+
+/*-
+ * ============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.sirius.manager.graph.util;
+
+import org.openecomp.ncomp.sirius.manager.graph.*;
+
+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.sirius.manager.graph.GraphPackage
+ * @generated
+ */
+public class GraphSwitchcaseXXX
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 GraphPackage.GUI_GRAPH: {
+ GuiGraph guiGraph = (GuiGraph)theEObject;
+ T result = caseGuiGraph(guiGraph);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GraphPackage.GUI_GRAPH_ITEM: {
+ GuiGraphItem guiGraphItem = (GuiGraphItem)theEObject;
+ T result = caseGuiGraphItem(guiGraphItem);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GraphPackage.GUI_GRAPH_NODE: {
+ GuiGraphNode guiGraphNode = (GuiGraphNode)theEObject;
+ T result = caseGuiGraphNode(guiGraphNode);
+ if (result == null) result = caseGuiGraphItem(guiGraphNode);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GraphPackage.GUI_GRAPH_EDGE: {
+ GuiGraphEdge guiGraphEdge = (GuiGraphEdge)theEObject;
+ T result = caseGuiGraphEdge(guiGraphEdge);
+ if (result == null) result = caseGuiGraphItem(guiGraphEdge);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Graph'.
+ *
+ * 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 'Gui Graph'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiGraph(GuiGraph object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Graph Item'.
+ *
+ * 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 'Gui Graph Item'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiGraphItem(GuiGraphItem object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Graph Node'.
+ *
+ * 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 'Gui Graph Node'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiGraphNode(GuiGraphNode object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Gui Graph Edge'.
+ *
+ * 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 'Gui Graph Edge'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGuiGraphEdge(GuiGraphEdge 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;
+ }
+
+} //GraphSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/AbstractProperty.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/AbstractProperty.java
new file mode 100644
index 0000000..9b39c2c
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/AbstractProperty.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.sirius.manager.properties;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Abstract Property'.
+ *
+ *
+ *
+ * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getAbstractProperty()
+ * @model abstract="true"
+ * @generated
+ */
+public interface AbstractProperty extends EObject {
+} // AbstractProperty
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/Module.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/Module.java
new file mode 100644
index 0000000..2cf8f90
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/Module.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.sirius.manager.properties;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ *
+ * A representation of the model object 'Module'.
+ *
+ *
+ * + * The following features are supported: + *
+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModule_Version() + * @model unique="false" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.properties.Module#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the 'Sub Modules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.properties.Module}. + * + *+ * If the meaning of the 'Sub Modules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Sub Modules' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModule_SubModules() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Modules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Modules' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModuleContainer_Modules() + * @model containment="true" + * @generated + */ + EList+ * 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.sirius.manager.properties.PropertiesPackage#getProperty_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.properties.Property#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(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.sirius.manager.properties.PropertiesPackage#getProperty_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.properties.Property#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // Property diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/AbstractPropertyImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/AbstractPropertyImpl.java new file mode 100644 index 0000000..78243fd --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/AbstractPropertyImpl.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.sirius.manager.properties.impl; + +import org.openecomp.ncomp.sirius.manager.properties.AbstractProperty; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Abstract Property'. + * + *+ *
+ * + * @generated + */ +public abstract class AbstractPropertyImpl extends MinimalEObjectImpl.Container implements AbstractProperty { + /** + * + * + * @generated + */ + protected AbstractPropertyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.ABSTRACT_PROPERTY; + } + +} //AbstractPropertyImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModuleContainerImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModuleContainerImpl.java new file mode 100644 index 0000000..b4451f0 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModuleContainerImpl.java @@ -0,0 +1,173 @@ + +/*- + * ============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.sirius.manager.properties.impl; + +import org.openecomp.ncomp.sirius.manager.properties.Module; +import org.openecomp.ncomp.sirius.manager.properties.ModuleContainer; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; + +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 'Module 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.sirius.manager.properties.PropertiesPackage#eNS_URI + * @see #init() + * @generated + */ + private PropertiesPackageImpl() { + super(eNS_URI, PropertiesFactory.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 PropertiesPackage#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 PropertiesPackage init() { + if (isInited) return (PropertiesPackage)EPackage.Registry.INSTANCE.getEPackage(PropertiesPackage.eNS_URI); + + // Obtain or create and register package + PropertiesPackageImpl thePropertiesPackage = (PropertiesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PropertiesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PropertiesPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + thePropertiesPackage.createPackageContents(); + + // Initialize created meta-data + thePropertiesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + thePropertiesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(PropertiesPackage.eNS_URI, thePropertiesPackage); + return thePropertiesPackage; + } + + /** + * + * + * @generated + */ + public EClass getAbstractProperty() { + return abstractPropertyEClass; + } + + /** + * + * + * @generated + */ + public EClass getProperty() { + return propertyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getProperty_Name() { + return (EAttribute)propertyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getProperty_Value() { + return (EAttribute)propertyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getModuleProperty() { + return modulePropertyEClass; + } + + /** + * + * + * @generated + */ + public EClass getModule() { + return moduleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getModule_Version() { + return (EAttribute)moduleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getModule_SubModules() { + return (EReference)moduleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getModuleContainer() { + return moduleContainerEClass; + } + + /** + * + * + * @generated + */ + public EReference getModuleContainer_Modules() { + return (EReference)moduleContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public PropertiesFactory getPropertiesFactory() { + return (PropertiesFactory)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 + abstractPropertyEClass = createEClass(ABSTRACT_PROPERTY); + + propertyEClass = createEClass(PROPERTY); + createEAttribute(propertyEClass, PROPERTY__NAME); + createEAttribute(propertyEClass, PROPERTY__VALUE); + + modulePropertyEClass = createEClass(MODULE_PROPERTY); + + moduleEClass = createEClass(MODULE); + createEAttribute(moduleEClass, MODULE__VERSION); + createEReference(moduleEClass, MODULE__SUB_MODULES); + + moduleContainerEClass = createEClass(MODULE_CONTAINER); + createEReference(moduleContainerEClass, MODULE_CONTAINER__MODULES); + } + + /** + * + * + * @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 + propertyEClass.getESuperTypes().add(this.getAbstractProperty()); + modulePropertyEClass.getESuperTypes().add(this.getAbstractProperty()); + modulePropertyEClass.getESuperTypes().add(this.getModule()); + moduleEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(abstractPropertyEClass, AbstractProperty.class, "AbstractProperty", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProperty_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProperty_Value(), theEcorePackage.getEString(), "value", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(modulePropertyEClass, ModuleProperty.class, "ModuleProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getModule_Version(), theEcorePackage.getEString(), "version", null, 0, 1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getModule_SubModules(), this.getModule(), null, "subModules", null, 0, -1, Module.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(moduleContainerEClass, ModuleContainer.class, "ModuleContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getModuleContainer_Modules(), this.getModule(), null, "modules", null, 0, -1, ModuleContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + } + + /** + * 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[] { + "GenModel", "http://www.eclipse.org/emf/2002/GenModel", + "doc", "http://openecomp.org/sirius/doc" + }); + } + +} //PropertiesPackageImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertyImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertyImpl.java new file mode 100644 index 0000000..08df14f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertyImpl.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.sirius.manager.properties.impl; + +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; +import org.openecomp.ncomp.sirius.manager.properties.Property; + +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 'Property'. + * + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage
+ * @generated
+ */
+public class PropertiesAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static PropertiesPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public PropertiesAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = PropertiesPackage.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 PropertiesSwitchtarget
.
+ *
+ *
+ * @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.sirius.manager.properties.AbstractProperty Abstract Property}'.
+ *
+ * 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.sirius.manager.properties.AbstractProperty
+ * @generated
+ */
+ public Adapter createAbstractPropertyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.properties.Property Property}'.
+ *
+ * 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.sirius.manager.properties.Property
+ * @generated
+ */
+ public Adapter createPropertyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.properties.ModuleProperty Module Property}'.
+ *
+ * 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.sirius.manager.properties.ModuleProperty
+ * @generated
+ */
+ public Adapter createModulePropertyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.properties.Module Module}'.
+ *
+ * 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.sirius.manager.properties.Module
+ * @generated
+ */
+ public Adapter createModuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.properties.ModuleContainer Module 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.sirius.manager.properties.ModuleContainer
+ * @generated
+ */
+ public Adapter createModuleContainerAdapter() {
+ 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;
+ }
+
+} //PropertiesAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/util/PropertiesSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/util/PropertiesSwitch.java
new file mode 100644
index 0000000..e67e811
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/util/PropertiesSwitch.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.sirius.manager.properties.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.sirius.manager.properties.*;
+
+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.sirius.manager.properties.PropertiesPackage
+ * @generated
+ */
+public class PropertiesSwitchcaseXXX
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 PropertiesPackage.ABSTRACT_PROPERTY: {
+ AbstractProperty abstractProperty = (AbstractProperty)theEObject;
+ T result = caseAbstractProperty(abstractProperty);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case PropertiesPackage.PROPERTY: {
+ Property property = (Property)theEObject;
+ T result = caseProperty(property);
+ if (result == null) result = caseAbstractProperty(property);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case PropertiesPackage.MODULE_PROPERTY: {
+ ModuleProperty moduleProperty = (ModuleProperty)theEObject;
+ T result = caseModuleProperty(moduleProperty);
+ if (result == null) result = caseAbstractProperty(moduleProperty);
+ if (result == null) result = caseModule(moduleProperty);
+ if (result == null) result = caseNamedEntity(moduleProperty);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case PropertiesPackage.MODULE: {
+ Module module = (Module)theEObject;
+ T result = caseModule(module);
+ if (result == null) result = caseNamedEntity(module);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case PropertiesPackage.MODULE_CONTAINER: {
+ ModuleContainer moduleContainer = (ModuleContainer)theEObject;
+ T result = caseModuleContainer(moduleContainer);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Abstract Property'.
+ *
+ * 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 'Abstract Property'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractProperty(AbstractProperty object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Property'.
+ *
+ * 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 'Property'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseProperty(Property object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Module Property'.
+ *
+ * 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 'Module Property'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModuleProperty(ModuleProperty object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Module'.
+ *
+ * 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 'Module'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModule(Module object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Module 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 'Module Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModuleContainer(ModuleContainer 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;
+ }
+
+} //PropertiesSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/AbstractManagementServer.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/AbstractManagementServer.java
new file mode 100644
index 0000000..853c2eb
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/AbstractManagementServer.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.sirius.manager.server;
+
+import org.openecomp.ncomp.component.Component;
+import org.openecomp.ncomp.core.function.Function;
+import org.openecomp.ncomp.core.function.ValuePair;
+import org.openecomp.ncomp.core.logs.LogMessage;
+import org.openecomp.ncomp.core.metrics.DoubleMetric;
+import org.openecomp.ncomp.core.metrics.MetricValueOption;
+import org.eclipse.emf.common.util.EList;
+import org.json.JSONObject;
+
+/**
+ *
+ * A representation of the model object 'Abstract Management Server'.
+ *
+ *
+ * + * The following features are supported: + *
+ * If the meaning of the 'Configuration' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Configuration' containment reference. + * @see #setConfiguration(AbstractManagementServerConfiguration) + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServer_Configuration() + * @model containment="true" + * @generated + */ + AbstractManagementServerConfiguration getConfiguration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getConfiguration Configuration}' containment reference. + * + * + * @param value the new value of the 'Configuration' containment reference. + * @see #getConfiguration() + * @generated + */ + void setConfiguration(AbstractManagementServerConfiguration value); + + /** + * Returns the value of the 'Component' containment reference. + * + *+ * If the meaning of the 'Component' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Component' containment reference. + * @see #setComponent(Component) + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServer_Component() + * @model containment="true" + * @generated + */ + Component getComponent(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getComponent Component}' containment reference. + * + * + * @param value the new value of the 'Component' containment reference. + * @see #getComponent() + * @generated + */ + void setComponent(Component value); + + /** + * + * + * @model unique="false" cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" pathUnique="false" startUnique="false" endUnique="false" optionUnique="false" relativeIntervalUnique="false" + * @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.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_Rules() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Metric Options' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metric Options' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_MetricOptions() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Table Templates' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Table Templates' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_TableTemplates() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Alert Templates' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Alert Templates' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_AlertTemplates() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Functions' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Functions' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_Functions() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * 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.sirius.manager.server.ServerPackage#getLoggerInfo_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.LoggerInfo#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // LoggerInfo diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ManagementInfo.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ManagementInfo.java new file mode 100644 index 0000000..768af20 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ManagementInfo.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.sirius.manager.server; + +import org.openecomp.ncomp.core.logs.LogMessage; +import org.openecomp.ncomp.core.metrics.Metric; +import org.openecomp.ncomp.sirius.manager.properties.AbstractProperty; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Management Info'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip' attribute. + * @see #setIp(String) + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo_Ip() + * @model unique="false" + * @generated + */ + String getIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getIp Ip}' attribute. + * + * + * @param value the new value of the 'Ip' attribute. + * @see #getIp() + * @generated + */ + void setIp(String value); + + /** + * Returns the value of the 'Metrics' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.metrics.Metric}. + * + *+ * 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.sirius.manager.server.ServerPackage#getManagementInfo_Metrics() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Logs' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Logs' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo_Logs() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Props' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Props' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo_Props() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModule_Version() + * @model unique="false" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.Module#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the 'Sub Modules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.server.Module}. + * + *+ * If the meaning of the 'Sub Modules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Sub Modules' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModule_SubModules() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Modules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Modules' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModuleContainer_Modules() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * 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.sirius.manager.server.ResponseStatus + * @see #setStatus(ResponseStatus) + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getResponse_Status() + * @model unique="false" + * @generated + */ + ResponseStatus getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.Response#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see org.openecomp.ncomp.sirius.manager.server.ResponseStatus + * @see #getStatus() + * @generated + */ + void setStatus(ResponseStatus 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.sirius.manager.server.ServerPackage#getResponse_Message() + * @model unique="false" + * @generated + */ + String getMessage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.server.Response#getMessage Message}' attribute. + * + * + * @param value the new value of the 'Message' attribute. + * @see #getMessage() + * @generated + */ + void setMessage(String value); + +} // Response diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ResponseStatus.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ResponseStatus.java new file mode 100644 index 0000000..172641a --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ResponseStatus.java @@ -0,0 +1,254 @@ + +/*- + * ============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.sirius.manager.server; + +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 'Response Status', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getResponseStatus() + * @model + * @generated + */ +public enum ResponseStatus implements Enumerator { + /** + * The 'OK' literal object. + * + * + * @see #OK_VALUE + * @generated + * @ordered + */ + OK(0, "OK", "OK"), + + /** + * 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 'OK' literal value. + * + *+ * If the meaning of 'OK' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #OK + * @model + * @generated + * @ordered + */ + public static final int OK_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; + + /** + * An array of all the 'Response Status' enumerators. + * + * + * @generated + */ + private static final ResponseStatus[] VALUES_ARRAY = + new ResponseStatus[] { + OK, + WARN, + ERROR, + }; + + /** + * A public read-only list of all the 'Response Status' enumerators. + * + * + * @generated + */ + public static final List+ * 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.sirius.manager.server.ServerPackage#eNS_URI + * @see #init() + * @generated + */ + private ServerPackageImpl() { + super(eNS_URI, ServerFactory.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 ServerPackage#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 ServerPackage init() { + if (isInited) return (ServerPackage)EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); + + // Obtain or create and register package + ServerPackageImpl theServerPackage = (ServerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ServerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ServerPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + AlertsPackage.eINSTANCE.eClass(); + PropertiesPackage.eINSTANCE.eClass(); + TableTemplatePackage.eINSTANCE.eClass(); + ComponentPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theServerPackage.createPackageContents(); + + // Initialize created meta-data + theServerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theServerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ServerPackage.eNS_URI, theServerPackage); + return theServerPackage; + } + + /** + * + * + * @generated + */ + public EClass getSouthBoundApiWithProxy() { + return southBoundApiWithProxyEClass; + } + + /** + * + * + * @generated + */ + public EOperation getSouthBoundApiWithProxy__UploadInfo__JSONObject_EList() { + return southBoundApiWithProxyEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSouthBoundApi() { + return southBoundApiEClass; + } + + /** + * + * + * @generated + */ + public EOperation getSouthBoundApi__Logs__JSONObject_EList() { + return southBoundApiEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getSouthBoundApi__Metrics__JSONObject_EList() { + return southBoundApiEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getSouthBoundApi__Properties__JSONObject_EList() { + return southBoundApiEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EClass getManagementInfo() { + return managementInfoEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getManagementInfo_Ip() { + return (EAttribute)managementInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getManagementInfo_Metrics() { + return (EReference)managementInfoEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getManagementInfo_Logs() { + return (EReference)managementInfoEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getManagementInfo_Props() { + return (EReference)managementInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getResponse() { + return responseEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getResponse_Status() { + return (EAttribute)responseEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getResponse_Message() { + return (EAttribute)responseEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getLoggerInfo() { + return loggerInfoEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getLoggerInfo_Name() { + return (EAttribute)loggerInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getAbstractManagementServer() { + return abstractManagementServerEClass; + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServer_Configuration() { + return (EReference)abstractManagementServerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServer_Component() { + return (EReference)abstractManagementServerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getAbstractManagementServer__GetValues__JSONObject_String_Long_Long_MetricValueOption_boolean() { + return abstractManagementServerEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getAbstractManagementServer__GetValuesAll__JSONObject_String_EList_Long_Long_MetricValueOption_boolean() { + return abstractManagementServerEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getAbstractManagementServer__GetMessages__JSONObject_String_Long_Long() { + return abstractManagementServerEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getAbstractManagementServer__GetRequestLogger__String_String_String_JSONObject() { + return abstractManagementServerEClass.getEOperations().get(3); + } + + /** + * + * + * @generated + */ + public EOperation getAbstractManagementServer__Evaluate__String_Function() { + return abstractManagementServerEClass.getEOperations().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getAbstractManagementServer__Update__String_Function() { + return abstractManagementServerEClass.getEOperations().get(5); + } + + /** + * + * + * @generated + */ + public EClass getAbstractManagementServerConfiguration() { + return abstractManagementServerConfigurationEClass; + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServerConfiguration_Rules() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServerConfiguration_MetricOptions() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServerConfiguration_TableTemplates() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServerConfiguration_AlertTemplates() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getAbstractManagementServerConfiguration_Functions() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EEnum getResponseStatus() { + return responseStatusEEnum; + } + + /** + * + * + * @generated + */ + public ServerFactory getServerFactory() { + return (ServerFactory)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 + southBoundApiWithProxyEClass = createEClass(SOUTH_BOUND_API_WITH_PROXY); + createEOperation(southBoundApiWithProxyEClass, SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST); + + southBoundApiEClass = createEClass(SOUTH_BOUND_API); + createEOperation(southBoundApiEClass, SOUTH_BOUND_API___LOGS__JSONOBJECT_ELIST); + createEOperation(southBoundApiEClass, SOUTH_BOUND_API___METRICS__JSONOBJECT_ELIST); + createEOperation(southBoundApiEClass, SOUTH_BOUND_API___PROPERTIES__JSONOBJECT_ELIST); + + managementInfoEClass = createEClass(MANAGEMENT_INFO); + createEAttribute(managementInfoEClass, MANAGEMENT_INFO__IP); + createEReference(managementInfoEClass, MANAGEMENT_INFO__METRICS); + createEReference(managementInfoEClass, MANAGEMENT_INFO__LOGS); + createEReference(managementInfoEClass, MANAGEMENT_INFO__PROPS); + + responseEClass = createEClass(RESPONSE); + createEAttribute(responseEClass, RESPONSE__STATUS); + createEAttribute(responseEClass, RESPONSE__MESSAGE); + + loggerInfoEClass = createEClass(LOGGER_INFO); + createEAttribute(loggerInfoEClass, LOGGER_INFO__NAME); + + abstractManagementServerEClass = createEClass(ABSTRACT_MANAGEMENT_SERVER); + createEReference(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION); + createEReference(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER__COMPONENT); + createEOperation(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN); + createEOperation(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN); + createEOperation(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG); + createEOperation(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT); + createEOperation(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER___EVALUATE__STRING_FUNCTION); + createEOperation(abstractManagementServerEClass, ABSTRACT_MANAGEMENT_SERVER___UPDATE__STRING_FUNCTION); + + abstractManagementServerConfigurationEClass = createEClass(ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION); + createEReference(abstractManagementServerConfigurationEClass, ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES); + createEReference(abstractManagementServerConfigurationEClass, ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS); + createEReference(abstractManagementServerConfigurationEClass, ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES); + createEReference(abstractManagementServerConfigurationEClass, ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES); + createEReference(abstractManagementServerConfigurationEClass, ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS); + + // Create enums + responseStatusEEnum = createEEnum(RESPONSE_STATUS); + } + + /** + * + * + * @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); + MetricsPackage theMetricsPackage = (MetricsPackage)EPackage.Registry.INSTANCE.getEPackage(MetricsPackage.eNS_URI); + PropertiesPackage thePropertiesPackage = (PropertiesPackage)EPackage.Registry.INSTANCE.getEPackage(PropertiesPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + ComponentPackage theComponentPackage = (ComponentPackage)EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); + FunctionPackage theFunctionPackage = (FunctionPackage)EPackage.Registry.INSTANCE.getEPackage(FunctionPackage.eNS_URI); + TableTemplatePackage theTableTemplatePackage = (TableTemplatePackage)EPackage.Registry.INSTANCE.getEPackage(TableTemplatePackage.eNS_URI); + AlertsPackage theAlertsPackage = (AlertsPackage)EPackage.Registry.INSTANCE.getEPackage(AlertsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + southBoundApiWithProxyEClass.getESuperTypes().add(this.getSouthBoundApi()); + abstractManagementServerEClass.getESuperTypes().add(this.getSouthBoundApiWithProxy()); + abstractManagementServerConfigurationEClass.getESuperTypes().add(thePropertiesPackage.getModuleContainer()); + + // Initialize classes, features, and operations; add parameters + initEClass(southBoundApiWithProxyEClass, SouthBoundApiWithProxy.class, "SouthBoundApiWithProxy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getSouthBoundApiWithProxy__UploadInfo__JSONObject_EList(), null, "uploadInfo", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getManagementInfo(), "info", 0, -1, !IS_UNIQUE, IS_ORDERED); + + initEClass(southBoundApiEClass, SouthBoundApi.class, "SouthBoundApi", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + op = initEOperation(getSouthBoundApi__Logs__JSONObject_EList(), null, "logs", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theLogsPackage.getLogMessage(), "logs", 0, -1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getSouthBoundApi__Metrics__JSONObject_EList(), null, "metrics", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theMetricsPackage.getMetric(), "metrics", 0, -1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getSouthBoundApi__Properties__JSONObject_EList(), null, "properties", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, thePropertiesPackage.getAbstractProperty(), "l", 0, -1, !IS_UNIQUE, IS_ORDERED); + + initEClass(managementInfoEClass, ManagementInfo.class, "ManagementInfo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getManagementInfo_Ip(), theEcorePackage.getEString(), "ip", null, 0, 1, ManagementInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManagementInfo_Metrics(), theMetricsPackage.getMetric(), null, "metrics", null, 0, -1, ManagementInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManagementInfo_Logs(), theLogsPackage.getLogMessage(), null, "logs", null, 0, -1, ManagementInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManagementInfo_Props(), thePropertiesPackage.getAbstractProperty(), null, "props", null, 0, -1, ManagementInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(responseEClass, Response.class, "Response", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getResponse_Status(), this.getResponseStatus(), "status", null, 0, 1, Response.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getResponse_Message(), theEcorePackage.getEString(), "message", null, 0, 1, Response.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(loggerInfoEClass, LoggerInfo.class, "LoggerInfo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLoggerInfo_Name(), theEcorePackage.getEString(), "name", null, 0, 1, LoggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(abstractManagementServerEClass, AbstractManagementServer.class, "AbstractManagementServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAbstractManagementServer_Configuration(), this.getAbstractManagementServerConfiguration(), null, "configuration", null, 0, 1, AbstractManagementServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAbstractManagementServer_Component(), theComponentPackage.getComponent(), null, "component", null, 0, 1, AbstractManagementServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + op = initEOperation(getAbstractManagementServer__GetValues__JSONObject_String_Long_Long_MetricValueOption_boolean(), theMetricsPackage.getDoubleMetric(), "getValues", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getELongObject(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getELongObject(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theMetricsPackage.getMetricValueOption(), "option", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBoolean(), "relativeInterval", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getAbstractManagementServer__GetValuesAll__JSONObject_String_EList_Long_Long_MetricValueOption_boolean(), theMetricsPackage.getDoubleMetric(), "getValuesAll", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "metrics", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getELongObject(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getELongObject(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theMetricsPackage.getMetricValueOption(), "option", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBoolean(), "relativeInterval", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getAbstractManagementServer__GetMessages__JSONObject_String_Long_Long(), theLogsPackage.getLogMessage(), "getMessages", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getELongObject(), "start", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getELongObject(), "end", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getAbstractManagementServer__GetRequestLogger__String_String_String_JSONObject(), this.getLoggerInfo(), "getRequestLogger", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "userName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "action", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "resourcePath", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getJsonObject(), "context", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getAbstractManagementServer__Evaluate__String_Function(), theFunctionPackage.getValuePair(), "evaluate", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theFunctionPackage.getFunction(), "function", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getAbstractManagementServer__Update__String_Function(), null, "update", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "path", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theFunctionPackage.getFunction(), "function", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(abstractManagementServerConfigurationEClass, AbstractManagementServerConfiguration.class, "AbstractManagementServerConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAbstractManagementServerConfiguration_Rules(), theLogsPackage.getLogMessageRule(), null, "rules", null, 0, -1, AbstractManagementServerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAbstractManagementServerConfiguration_MetricOptions(), theMetricsPackage.getMetricValueOption(), null, "metricOptions", null, 0, -1, AbstractManagementServerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAbstractManagementServerConfiguration_TableTemplates(), theTableTemplatePackage.getAbstractTableTemplate(), null, "tableTemplates", null, 0, -1, AbstractManagementServerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAbstractManagementServerConfiguration_AlertTemplates(), theAlertsPackage.getAlertingTemplate(), null, "alertTemplates", null, 0, -1, AbstractManagementServerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getAbstractManagementServerConfiguration_Functions(), theFunctionPackage.getFunction(), null, "functions", null, 0, -1, AbstractManagementServerConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(responseStatusEEnum, ResponseStatus.class, "ResponseStatus"); + addEEnumLiteral(responseStatusEEnum, ResponseStatus.OK); + addEEnumLiteral(responseStatusEEnum, ResponseStatus.WARN); + addEEnumLiteral(responseStatusEEnum, ResponseStatus.ERROR); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/sirius/doc + createDocAnnotations(); + } + + /** + * 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[] { + "GenModel", "http://www.eclipse.org/emf/2002/GenModel", + "doc", "http://openecomp.org/sirius/doc" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/sirius/doc. + * + * + * @generated + */ + protected void createDocAnnotations() { + String source = "http://openecomp.org/sirius/doc"; + addAnnotation + (getSouthBoundApi__Logs__JSONObject_EList(), + source, + new String[] { + "description", "This operation allows the clients to report log messages \r\n\tand overall state of the client" + }); + addAnnotation + ((getSouthBoundApi__Logs__JSONObject_EList()).getEParameters().get(0), + source, + new String[] { + "description", "This parameter is for internal use and is ignored if set by client." + }); + addAnnotation + ((getSouthBoundApi__Logs__JSONObject_EList()).getEParameters().get(1), + source, + new String[] { + "description", "List of log message to inform the management system about." + }); + addAnnotation + (getSouthBoundApi__Metrics__JSONObject_EList(), + source, + new String[] { + "description", "This operation allows the client VMs to report metrics \r\n\t\tand overall state of the VM" + }); + addAnnotation + ((getSouthBoundApi__Metrics__JSONObject_EList()).getEParameters().get(0), + source, + new String[] { + "description", "This parameter is for internal use and is ignored if set by client." + }); + addAnnotation + (getSouthBoundApi__Properties__JSONObject_EList(), + source, + new String[] { + "description", "Used by the BSA Management Agent to report \r\n\tproperty key value pairs to the BSA Controller." + }); + addAnnotation + ((getSouthBoundApi__Properties__JSONObject_EList()).getEParameters().get(0), + source, + new String[] { + "description", "This parameter is for internal use and is ignored if set by client." + }); + } + +} //ServerPackageImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/SouthBoundApiImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/SouthBoundApiImpl.java new file mode 100644 index 0000000..6857ca0 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/SouthBoundApiImpl.java @@ -0,0 +1,121 @@ + +/*- + * ============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.sirius.manager.server.impl; + +import org.openecomp.ncomp.core.logs.LogMessage; +import org.openecomp.ncomp.core.metrics.Metric; +import org.openecomp.ncomp.sirius.manager.properties.AbstractProperty; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.json.JSONObject; + +/** + * + * An implementation of the model object 'South Bound Api'. + * + *
+ *
+ * + * @generated + */ +public class SouthBoundApiImpl extends MinimalEObjectImpl.Container implements SouthBoundApi { + /** + * + * + * @generated + */ + protected SouthBoundApiImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.SOUTH_BOUND_API; + } + + /** + * + * + * @generated + */ + public void logs(JSONObject cx, EList+ *
+ * + * @generated + */ +public class SouthBoundApiWithProxyImpl extends SouthBoundApiImpl implements SouthBoundApiWithProxy { + /** + * + * + * @generated + */ + protected SouthBoundApiWithProxyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.SOUTH_BOUND_API_WITH_PROXY; + } + + /** + * + * + * @generated + */ + public void uploadInfo(JSONObject cx, EListcreateXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage
+ * @generated
+ */
+public class ServerAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static ServerPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public ServerAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ServerPackage.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 ServerSwitchtarget
.
+ *
+ *
+ * @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.sirius.manager.server.SouthBoundApiWithProxy South Bound Api With Proxy}'.
+ *
+ * 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.sirius.manager.server.SouthBoundApiWithProxy
+ * @generated
+ */
+ public Adapter createSouthBoundApiWithProxyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi South Bound 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.sirius.manager.server.SouthBoundApi
+ * @generated
+ */
+ public Adapter createSouthBoundApiAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo Management Info}'.
+ *
+ * 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.sirius.manager.server.ManagementInfo
+ * @generated
+ */
+ public Adapter createManagementInfoAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.Response Response}'.
+ *
+ * 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.sirius.manager.server.Response
+ * @generated
+ */
+ public Adapter createResponseAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.properties.ModuleContainer Module 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.sirius.manager.properties.ModuleContainer
+ * @generated
+ */
+ public Adapter createModuleContainerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.LoggerInfo Logger Info}'.
+ *
+ * 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.sirius.manager.server.LoggerInfo
+ * @generated
+ */
+ public Adapter createLoggerInfoAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer Abstract Management Server}'.
+ *
+ * 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.sirius.manager.server.AbstractManagementServer
+ * @generated
+ */
+ public Adapter createAbstractManagementServerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration Abstract Management Server 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.sirius.manager.server.AbstractManagementServerConfiguration
+ * @generated
+ */
+ public Adapter createAbstractManagementServerConfigurationAdapter() {
+ 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;
+ }
+
+} //ServerAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/util/ServerSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/util/ServerSwitch.java
new file mode 100644
index 0000000..73c7c80
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/util/ServerSwitch.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.sirius.manager.server.util;
+
+import org.openecomp.ncomp.sirius.manager.properties.ModuleContainer;
+import org.openecomp.ncomp.sirius.manager.server.*;
+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.sirius.manager.server.ServerPackage
+ * @generated
+ */
+public class ServerSwitchcaseXXX
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 ServerPackage.SOUTH_BOUND_API_WITH_PROXY: {
+ SouthBoundApiWithProxy southBoundApiWithProxy = (SouthBoundApiWithProxy)theEObject;
+ T result = caseSouthBoundApiWithProxy(southBoundApiWithProxy);
+ if (result == null) result = caseSouthBoundApi(southBoundApiWithProxy);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ServerPackage.SOUTH_BOUND_API: {
+ SouthBoundApi southBoundApi = (SouthBoundApi)theEObject;
+ T result = caseSouthBoundApi(southBoundApi);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ServerPackage.MANAGEMENT_INFO: {
+ ManagementInfo managementInfo = (ManagementInfo)theEObject;
+ T result = caseManagementInfo(managementInfo);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ServerPackage.RESPONSE: {
+ Response response = (Response)theEObject;
+ T result = caseResponse(response);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ServerPackage.LOGGER_INFO: {
+ LoggerInfo loggerInfo = (LoggerInfo)theEObject;
+ T result = caseLoggerInfo(loggerInfo);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ServerPackage.ABSTRACT_MANAGEMENT_SERVER: {
+ AbstractManagementServer abstractManagementServer = (AbstractManagementServer)theEObject;
+ T result = caseAbstractManagementServer(abstractManagementServer);
+ if (result == null) result = caseSouthBoundApiWithProxy(abstractManagementServer);
+ if (result == null) result = caseSouthBoundApi(abstractManagementServer);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION: {
+ AbstractManagementServerConfiguration abstractManagementServerConfiguration = (AbstractManagementServerConfiguration)theEObject;
+ T result = caseAbstractManagementServerConfiguration(abstractManagementServerConfiguration);
+ if (result == null) result = caseModuleContainer(abstractManagementServerConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'South Bound Api With Proxy'.
+ *
+ * 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 'South Bound Api With Proxy'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSouthBoundApiWithProxy(SouthBoundApiWithProxy object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'South Bound 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 'South Bound Api'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSouthBoundApi(SouthBoundApi object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Management Info'.
+ *
+ * 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 'Management Info'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseManagementInfo(ManagementInfo object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Response'.
+ *
+ * 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 'Response'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseResponse(Response object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Module 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 'Module Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModuleContainer(ModuleContainer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Logger Info'.
+ *
+ * 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 'Logger Info'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLoggerInfo(LoggerInfo object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Abstract Management Server'.
+ *
+ * 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 'Abstract Management Server'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractManagementServer(AbstractManagementServer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Abstract Management Server 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 'Abstract Management Server Configuration'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractManagementServerConfiguration(AbstractManagementServerConfiguration 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;
+ }
+
+} //ServerSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerCollectionFormat.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerCollectionFormat.java
new file mode 100644
index 0000000..dc4ecef
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerCollectionFormat.java
@@ -0,0 +1,300 @@
+
+/*-
+ * ============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.sirius.manager.swagger;
+
+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 'Collection Format',
+ * and utility methods for working with them.
+ *
+ * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerCollectionFormat()
+ * @model
+ * @generated
+ */
+public enum SwaggerCollectionFormat implements Enumerator {
+ /**
+ * The 'Csv' literal object.
+ *
+ *
+ * @see #CSV_VALUE
+ * @generated
+ * @ordered
+ */
+ CSV(0, "csv", "csv"),
+
+ /**
+ * The 'Ssv' literal object.
+ *
+ *
+ * @see #SSV_VALUE
+ * @generated
+ * @ordered
+ */
+ SSV(0, "ssv", "ssv"), /**
+ * The 'Tsv' literal object.
+ *
+ *
+ * @see #TSV_VALUE
+ * @generated
+ * @ordered
+ */
+ TSV(0, "tsv", "tsv"), /**
+ * The 'Pipes' literal object.
+ *
+ *
+ * @see #PIPES_VALUE
+ * @generated
+ * @ordered
+ */
+ PIPES(0, "pipes", "pipes"), /**
+ * The 'Multi' literal object.
+ *
+ *
+ * @see #MULTI_VALUE
+ * @generated
+ * @ordered
+ */
+ MULTI(0, "multi", "multi");
+
+ /**
+ * The 'Csv' literal value.
+ *
+ * + * If the meaning of 'CSV' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #CSV + * @model name="csv" + * @generated + * @ordered + */ + public static final int CSV_VALUE = 0; + + /** + * The 'Ssv' literal value. + * + *+ * If the meaning of 'Ssv' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #SSV + * @model name="ssv" + * @generated + * @ordered + */ + public static final int SSV_VALUE = 0; + + /** + * The 'Tsv' literal value. + * + *+ * If the meaning of 'Tsv' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TSV + * @model name="tsv" + * @generated + * @ordered + */ + public static final int TSV_VALUE = 0; + + /** + * The 'Pipes' literal value. + * + *+ * If the meaning of 'Pipes' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #PIPES + * @model name="pipes" + * @generated + * @ordered + */ + public static final int PIPES_VALUE = 0; + + /** + * The 'Multi' literal value. + * + *+ * If the meaning of 'Multi' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MULTI + * @model name="multi" + * @generated + * @ordered + */ + public static final int MULTI_VALUE = 0; + + /** + * An array of all the 'Collection Format' enumerators. + * + * + * @generated + */ + private static final SwaggerCollectionFormat[] VALUES_ARRAY = + new SwaggerCollectionFormat[] { + CSV, + SSV, + TSV, + PIPES, + MULTI, + }; + + /** + * A public read-only list of all the 'Collection Format' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Email' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Email' attribute. + * @see #setEmail(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerContact_Email() + * @model unique="false" + * @generated + */ + String getEmail(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact#getEmail Email}' attribute. + * + * + * @param value the new value of the 'Email' attribute. + * @see #getEmail() + * @generated + */ + void setEmail(String value); + +} // SwaggerContact diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerDefinition.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerDefinition.java new file mode 100644 index 0000000..2c5cd78 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerDefinition.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.sirius.manager.swagger; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Definition'. + * + * + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerDefinition() + * @model + * @generated + */ +public interface SwaggerDefinition extends NamedEntity, SwaggerObjectType { +} // SwaggerDefinition diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerEnumObjectType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerEnumObjectType.java new file mode 100644 index 0000000..c2d134d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerEnumObjectType.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.sirius.manager.swagger; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Enum Object Type'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Enum' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Enum' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerEnumObjectType_Enum() + * @model unique="false" + * @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.sirius.manager.swagger.SwaggerPackage#getSwaggerExternalDocumentation_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Url' attribute. + * + *+ * If the meaning of the 'Url' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Url' attribute. + * @see #setUrl(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerExternalDocumentation_Url() + * @model unique="false" + * @generated + */ + String getUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getUrl Url}' attribute. + * + * + * @param value the new value of the 'Url' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); + +} // SwaggerDocument diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerFactory.java new file mode 100644 index 0000000..14826cf --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerFactory.java @@ -0,0 +1,243 @@ + +/*- + * ============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.sirius.manager.swagger; + +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.sirius.manager.swagger.SwaggerPackage + * @generated + */ +public interface SwaggerFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + SwaggerFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerFactoryImpl.init(); + + /** + * Returns a new object of class 'Model'. + * + * + * @return a new object of class 'Model'. + * @generated + */ + SwaggerModel createSwaggerModel(); + + /** + * Returns a new object of class 'Info'. + * + * + * @return a new object of class 'Info'. + * @generated + */ + SwaggerInfo createSwaggerInfo(); + + /** + * Returns a new object of class 'Contact'. + * + * + * @return a new object of class 'Contact'. + * @generated + */ + SwaggerContact createSwaggerContact(); + + /** + * Returns a new object of class 'License'. + * + * + * @return a new object of class 'License'. + * @generated + */ + SwaggerLicense createSwaggerLicense(); + + /** + * Returns a new object of class 'Tag'. + * + * + * @return a new object of class 'Tag'. + * @generated + */ + SwaggerTag createSwaggerTag(); + + /** + * Returns a new object of class 'External Documentation'. + * + * + * @return a new object of class 'External Documentation'. + * @generated + */ + SwaggerExternalDocumentation createSwaggerExternalDocumentation(); + + /** + * Returns a new object of class 'Path'. + * + * + * @return a new object of class 'Path'. + * @generated + */ + SwaggerPath createSwaggerPath(); + + /** + * Returns a new object of class 'Operation'. + * + * + * @return a new object of class 'Operation'. + * @generated + */ + SwaggerOperation createSwaggerOperation(); + + /** + * Returns a new object of class 'Parameter'. + * + * + * @return a new object of class 'Parameter'. + * @generated + */ + SwaggerParameter createSwaggerParameter(); + + /** + * Returns a new object of class 'Response'. + * + * + * @return a new object of class 'Response'. + * @generated + */ + SwaggerResponse createSwaggerResponse(); + + /** + * Returns a new object of class 'Security Object'. + * + * + * @return a new object of class 'Security Object'. + * @generated + */ + SwaggerSecurityObject createSwaggerSecurityObject(); + + /** + * Returns a new object of class 'Security'. + * + * + * @return a new object of class 'Security'. + * @generated + */ + SwaggerSecurity createSwaggerSecurity(); + + /** + * Returns a new object of class 'Security Definition'. + * + * + * @return a new object of class 'Security Definition'. + * @generated + */ + SwaggerSecurityDefinition createSwaggerSecurityDefinition(); + + /** + * Returns a new object of class 'Security Definition Scope'. + * + * + * @return a new object of class 'Security Definition Scope'. + * @generated + */ + SwaggerSecurityDefinitionScope createSwaggerSecurityDefinitionScope(); + + /** + * Returns a new object of class 'Object Type'. + * + * + * @return a new object of class 'Object Type'. + * @generated + */ + SwaggerObjectType createSwaggerObjectType(); + + /** + * Returns a new object of class 'Reference Object Type'. + * + * + * @return a new object of class 'Reference Object Type'. + * @generated + */ + SwaggerReferenceObjectType createSwaggerReferenceObjectType(); + + /** + * Returns a new object of class 'Named Object Type'. + * + * + * @return a new object of class 'Named Object Type'. + * @generated + */ + SwaggerNamedObjectType createSwaggerNamedObjectType(); + + /** + * Returns a new object of class 'Object Class Definition'. + * + * + * @return a new object of class 'Object Class Definition'. + * @generated + */ + SwaggerObjectClassDefinition createSwaggerObjectClassDefinition(); + + /** + * Returns a new object of class 'Simple Object Type'. + * + * + * @return a new object of class 'Simple Object Type'. + * @generated + */ + SwaggerSimpleObjectType createSwaggerSimpleObjectType(); + + /** + * Returns a new object of class 'Xml'. + * + * + * @return a new object of class 'Xml'. + * @generated + */ + SwaggerXml createSwaggerXml(); + + /** + * Returns a new object of class 'Enum Object Type'. + * + * + * @return a new object of class 'Enum Object Type'. + * @generated + */ + SwaggerEnumObjectType createSwaggerEnumObjectType(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + SwaggerPackage getSwaggerPackage(); + +} //SwaggerFactory diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerInfo.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerInfo.java new file mode 100644 index 0000000..71b4ba7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerInfo.java @@ -0,0 +1,206 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Info'. + * + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Version' attribute. + * + *+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo_Version() + * @model unique="false" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the 'Title' attribute. + * + *+ * If the meaning of the 'Title' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Title' attribute. + * @see #setTitle(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo_Title() + * @model unique="false" + * @generated + */ + String getTitle(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTitle Title}' attribute. + * + * + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the 'Terms Of Service' attribute. + * + *+ * If the meaning of the 'Terms Of Service' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Terms Of Service' attribute. + * @see #setTermsOfService(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo_TermsOfService() + * @model unique="false" + * @generated + */ + String getTermsOfService(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTermsOfService Terms Of Service}' attribute. + * + * + * @param value the new value of the 'Terms Of Service' attribute. + * @see #getTermsOfService() + * @generated + */ + void setTermsOfService(String value); + + /** + * Returns the value of the 'Contact' containment reference. + * + *+ * If the meaning of the 'Contact' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Contact' containment reference. + * @see #setContact(SwaggerContact) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo_Contact() + * @model containment="true" + * @generated + */ + SwaggerContact getContact(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getContact Contact}' containment reference. + * + * + * @param value the new value of the 'Contact' containment reference. + * @see #getContact() + * @generated + */ + void setContact(SwaggerContact value); + + /** + * Returns the value of the 'License' containment reference. + * + *+ * If the meaning of the 'License' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'License' containment reference. + * @see #setLicense(SwaggerLicense) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo_License() + * @model containment="true" + * @generated + */ + SwaggerLicense getLicense(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getLicense License}' containment reference. + * + * + * @param value the new value of the 'License' containment reference. + * @see #getLicense() + * @generated + */ + void setLicense(SwaggerLicense value); + +} // SwaggerInfo diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerLicense.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerLicense.java new file mode 100644 index 0000000..afa85f7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerLicense.java @@ -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============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.swagger; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'License'. + * + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerLicense_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Url' attribute. + * + *+ * If the meaning of the 'Url' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Url' attribute. + * @see #setUrl(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerLicense_Url() + * @model unique="false" + * @generated + */ + String getUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getUrl Url}' attribute. + * + * + * @param value the new value of the 'Url' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); + +} // SwaggerLicense diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerModel.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerModel.java new file mode 100644 index 0000000..48a3d3c --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerModel.java @@ -0,0 +1,267 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Model'. + * + * + *+ * The following features are supported: + *
"2.0"
.
+ *
+ * + * If the meaning of the 'Swagger' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Swagger' attribute. + * @see #setSwagger(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Swagger() + * @model default="2.0" unique="false" + * @generated + */ + String getSwagger(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSwagger Swagger}' attribute. + * + * + * @param value the new value of the 'Swagger' attribute. + * @see #getSwagger() + * @generated + */ + void setSwagger(String value); + + /** + * Returns the value of the 'Info' containment reference. + * + *+ * If the meaning of the 'Info' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Info' containment reference. + * @see #setInfo(SwaggerInfo) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Info() + * @model containment="true" + * @generated + */ + SwaggerInfo getInfo(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getInfo Info}' containment reference. + * + * + * @param value the new value of the 'Info' containment reference. + * @see #getInfo() + * @generated + */ + void setInfo(SwaggerInfo value); + + /** + * Returns the value of the 'Host' attribute. + * + *+ * If the meaning of the 'Host' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Host' attribute. + * @see #setHost(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Host() + * @model unique="false" + * @generated + */ + String getHost(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getHost Host}' attribute. + * + * + * @param value the new value of the 'Host' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the 'Base Path' attribute. + * + *+ * If the meaning of the 'Base Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Base Path' attribute. + * @see #setBasePath(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_BasePath() + * @model unique="false" + * @generated + */ + String getBasePath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getBasePath Base Path}' attribute. + * + * + * @param value the new value of the 'Base Path' attribute. + * @see #getBasePath() + * @generated + */ + void setBasePath(String value); + + /** + * Returns the value of the 'Tags' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag}. + * + *+ * If the meaning of the 'Tags' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tags' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Tags() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Schemes' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Schemes' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Schemes() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Paths' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Paths' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Paths() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Definitions' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Definitions' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Definitions() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'External Docs' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'External Docs' containment reference. + * @see #setExternalDocs(SwaggerExternalDocumentation) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_ExternalDocs() + * @model containment="true" + * @generated + */ + SwaggerExternalDocumentation getExternalDocs(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getExternalDocs External Docs}' containment reference. + * + * + * @param value the new value of the 'External Docs' containment reference. + * @see #getExternalDocs() + * @generated + */ + void setExternalDocs(SwaggerExternalDocumentation value); + + /** + * Returns the value of the 'Security Definitions' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition}. + * + *+ * If the meaning of the 'Security Definitions' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security Definitions' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_SecurityDefinitions() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerNamedObjectType_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Default' attribute. + * + *+ * If the meaning of the 'Default' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Default' attribute. + * @see #setDefault(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerNamedObjectType_Default() + * @model unique="false" + * @generated + */ + String getDefault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDefault Default}' attribute. + * + * + * @param value the new value of the 'Default' attribute. + * @see #getDefault() + * @generated + */ + void setDefault(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerNamedObjectType_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Xml' containment reference. + * + *+ * If the meaning of the 'Xml' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Xml' containment reference. + * @see #setXml(SwaggerXml) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerNamedObjectType_Xml() + * @model containment="true" + * @generated + */ + SwaggerXml getXml(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getXml Xml}' containment reference. + * + * + * @param value the new value of the 'Xml' containment reference. + * @see #getXml() + * @generated + */ + void setXml(SwaggerXml value); + +} // SwaggerNamedObjectType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectClassDefinition.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectClassDefinition.java new file mode 100644 index 0000000..99fd6ff --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectClassDefinition.java @@ -0,0 +1,122 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Object Class Definition'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Required' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Required' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_Required() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'All Of' reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'All Of' reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_AllOf() + * @model + * @generated + */ + EList+ * If the meaning of the 'Properties' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Properties' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_Properties() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Additional Properties' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Additional Properties' containment reference. + * @see #setAdditionalProperties(SwaggerObjectType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_AdditionalProperties() + * @model containment="true" + * @generated + */ + SwaggerObjectType getAdditionalProperties(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAdditionalProperties Additional Properties}' containment reference. + * + * + * @param value the new value of the 'Additional Properties' containment reference. + * @see #getAdditionalProperties() + * @generated + */ + void setAdditionalProperties(SwaggerObjectType value); + +} // SwaggerObjectClassDefinition diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectType.java new file mode 100644 index 0000000..f0c32f8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectType.java @@ -0,0 +1,73 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Object Type'. + * + * + *+ * The following features are supported: + *
"false"
.
+ *
+ * + * If the meaning of the 'Many' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Many' attribute. + * @see #setMany(boolean) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectType_Many() + * @model default="false" unique="false" + * @generated + */ + boolean isMany(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType#isMany Many}' attribute. + * + * + * @param value the new value of the 'Many' attribute. + * @see #isMany() + * @generated + */ + void setMany(boolean value); + +} // SwaggerObjectType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectTypeDefinition.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectTypeDefinition.java new file mode 100644 index 0000000..f4d449b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectTypeDefinition.java @@ -0,0 +1,99 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.openecomp.ncomp.core.NamedEntity; + + +/** + * + * A representation of the model object 'Object Type Definition'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectTypeDefinition_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectTypeDefinition#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Default' attribute. + * + *+ * If the meaning of the 'Default' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Default' attribute. + * @see #setDefault(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectTypeDefinition_Default() + * @model unique="false" + * @generated + */ + String getDefault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectTypeDefinition#getDefault Default}' attribute. + * + * + * @param value the new value of the 'Default' attribute. + * @see #getDefault() + * @generated + */ + void setDefault(String value); + +} // SwaggerObjectTypeDefinition diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectTypeReference.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectTypeReference.java new file mode 100644 index 0000000..03c9149 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerObjectTypeReference.java @@ -0,0 +1,70 @@ + +/*- + * ============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.sirius.manager.swagger; + + +/** + * + * A representation of the model object 'Object Type Reference'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Reference' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Reference' reference. + * @see #setReference(SwaggerObjectType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectTypeReference_Reference() + * @model annotation="http://openecomp.org/ncomp/swagger name='$ref'" + * @generated + */ + SwaggerObjectType getReference(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectTypeReference#getReference Reference}' reference. + * + * + * @param value the new value of the 'Reference' reference. + * @see #getReference() + * @generated + */ + void setReference(SwaggerObjectType value); + +} // SwaggerObjectTypeReference diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerOperation.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerOperation.java new file mode 100644 index 0000000..bcc6788 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerOperation.java @@ -0,0 +1,257 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Operation'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Tags' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tags' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Tags() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Summary' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Summary' attribute. + * @see #setSummary(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Summary() + * @model unique="false" + * @generated + */ + String getSummary(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSummary Summary}' attribute. + * + * + * @param value the new value of the 'Summary' attribute. + * @see #getSummary() + * @generated + */ + void setSummary(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Operation Id' attribute. + * + *+ * If the meaning of the 'Operation Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Operation Id' attribute. + * @see #setOperationId(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_OperationId() + * @model unique="false" + * @generated + */ + String getOperationId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getOperationId Operation Id}' attribute. + * + * + * @param value the new value of the 'Operation Id' attribute. + * @see #getOperationId() + * @generated + */ + void setOperationId(String value); + + /** + * Returns the value of the 'Consumes' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Consumes' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Consumes' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Consumes() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Produces' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Produces' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Produces() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Parameters' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Parameters' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Parameters() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Responses' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Responses' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Responses() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Security' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Security() + * @model containment="true" + * @generated + */ + EList"false"
.
+ *
+ * + * If the meaning of the 'Deprecated' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Deprecated' attribute. + * @see #setDeprecated(boolean) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Deprecated() + * @model default="false" unique="false" + * @generated + */ + boolean isDeprecated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#isDeprecated Deprecated}' attribute. + * + * + * @param value the new value of the 'Deprecated' attribute. + * @see #isDeprecated() + * @generated + */ + void setDeprecated(boolean value); + +} // SwaggerOperation diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerPackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerPackage.java new file mode 100644 index 0000000..03619b2 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerPackage.java @@ -0,0 +1,3767 @@ + +/*- + * ============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.sirius.manager.swagger; + +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 'In' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'In' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see #setIn(SwaggerParameterType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerParameter_In() + * @model unique="false" + * @generated + */ + SwaggerParameterType getIn(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getIn In}' attribute. + * + * + * @param value the new value of the 'In' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see #getIn() + * @generated + */ + void setIn(SwaggerParameterType value); + + /** + * Returns the value of the 'Type' containment reference. + * + *+ * If the meaning of the 'Type' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Type' containment reference. + * @see #setType(SwaggerObjectType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerParameter_Type() + * @model containment="true" + * @generated + */ + SwaggerObjectType getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getType Type}' containment reference. + * + * + * @param value the new value of the 'Type' containment reference. + * @see #getType() + * @generated + */ + void setType(SwaggerObjectType value); + +} // SwaggerParameter diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerParameterType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerParameterType.java new file mode 100644 index 0000000..c0d14d9 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerParameterType.java @@ -0,0 +1,330 @@ + +/*- + * ============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.sirius.manager.swagger; + +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 'Parameter Type', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerParameterType() + * @model + * @generated + */ +public enum SwaggerParameterType implements Enumerator { + /** + * The 'Path' literal object. + * + * + * @see #PATH_VALUE + * @generated + * @ordered + */ + PATH(0, "path", "path"), + + /** + * The 'Query' literal object. + * + * + * @see #QUERY_VALUE + * @generated + * @ordered + */ + QUERY(0, "query", "query"), + + /** + * The 'Header' literal object. + * + * + * @see #HEADER_VALUE + * @generated + * @ordered + */ + HEADER(0, "header", "header"), + + /** + * The 'Body' literal object. + * + * + * @see #BODY_VALUE + * @generated + * @ordered + */ + BODY(0, "body", "body"), + + /** + * The 'Form' literal object. + * + * + * @see #FORM_VALUE + * @generated + * @ordered + */ + FORM(0, "form", "form"), /** + * The 'Form Data' literal object. + * + * + * @see #FORM_DATA_VALUE + * @generated + * @ordered + */ + FORM_DATA(0, "formData", "formData"); + + /** + * The 'Path' literal value. + * + *+ * If the meaning of 'Path' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #PATH + * @model name="path" + * @generated + * @ordered + */ + public static final int PATH_VALUE = 0; + + /** + * The 'Query' literal value. + * + *+ * If the meaning of 'Query' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #QUERY + * @model name="query" + * @generated + * @ordered + */ + public static final int QUERY_VALUE = 0; + + /** + * The 'Header' literal value. + * + *+ * If the meaning of 'Header' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HEADER + * @model name="header" + * @generated + * @ordered + */ + public static final int HEADER_VALUE = 0; + + /** + * The 'Body' literal value. + * + *+ * If the meaning of 'Body' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #BODY + * @model name="body" + * @generated + * @ordered + */ + public static final int BODY_VALUE = 0; + + /** + * The 'Form' literal value. + * + *+ * If the meaning of 'Form' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FORM + * @model name="form" + * @generated + * @ordered + */ + public static final int FORM_VALUE = 0; + + /** + * The 'Form Data' literal value. + * + *+ * If the meaning of 'Form Data' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FORM_DATA + * @model name="formData" + * @generated + * @ordered + */ + public static final int FORM_DATA_VALUE = 0; + + /** + * An array of all the 'Parameter Type' enumerators. + * + * + * @generated + */ + private static final SwaggerParameterType[] VALUES_ARRAY = + new SwaggerParameterType[] { + PATH, + QUERY, + HEADER, + BODY, + FORM, + FORM_DATA, + }; + + /** + * A public read-only list of all the 'Parameter Type' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Methods' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Methods' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerPath_Methods() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Required' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Required' attribute. + * @see #setRequired(boolean) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerReferenceObjectType_Required() + * @model unique="false" + * annotation="http://openecomp.org/ncomp/swagger name='$ref'" + * @generated + */ + boolean isRequired(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#isRequired Required}' attribute. + * + * + * @param value the new value of the 'Required' attribute. + * @see #isRequired() + * @generated + */ + void setRequired(boolean value); + + /** + * Returns the value of the 'Reference' reference. + * + *+ * If the meaning of the 'Reference' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Reference' reference. + * @see #setReference(SwaggerObjectType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerReferenceObjectType_Reference() + * @model + * @generated + */ + SwaggerObjectType getReference(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#getReference Reference}' reference. + * + * + * @param value the new value of the 'Reference' reference. + * @see #getReference() + * @generated + */ + void setReference(SwaggerObjectType value); + +} // SwaggerReferenceObjectType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerResponse.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerResponse.java new file mode 100644 index 0000000..a2e6a32 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerResponse.java @@ -0,0 +1,116 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Response'. + * + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerResponse_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Schema' containment reference. + * + *+ * If the meaning of the 'Schema' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Schema' containment reference. + * @see #setSchema(SwaggerObjectType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerResponse_Schema() + * @model containment="true" + * @generated + */ + SwaggerObjectType getSchema(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getSchema Schema}' containment reference. + * + * + * @param value the new value of the 'Schema' containment reference. + * @see #getSchema() + * @generated + */ + void setSchema(SwaggerObjectType value); + + /** + * Returns the value of the 'Headers' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType}. + * + *+ * If the meaning of the 'Headers' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Headers' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerResponse_Headers() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSchema_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSchema#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Schema' reference. + * + *+ * If the meaning of the 'Schema' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Schema' reference. + * @see #setSchema(SwaggerDefinition) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSchema_Schema() + * @model + * @generated + */ + SwaggerDefinition getSchema(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSchema#getSchema Schema}' reference. + * + * + * @param value the new value of the 'Schema' reference. + * @see #getSchema() + * @generated + */ + void setSchema(SwaggerDefinition value); + +} // SwaggerSchema diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurity.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurity.java new file mode 100644 index 0000000..e70d885 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurity.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.sirius.manager.swagger; + +import org.openecomp.ncomp.core.NamedEntity; +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Security'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Roles' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Roles' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurity_Roles() + * @model unique="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinition_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Authorization Url' attribute. + * + *+ * If the meaning of the 'Authorization Url' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Authorization Url' attribute. + * @see #setAuthorizationUrl(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinition_AuthorizationUrl() + * @model unique="false" + * @generated + */ + String getAuthorizationUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getAuthorizationUrl Authorization Url}' attribute. + * + * + * @param value the new value of the 'Authorization Url' attribute. + * @see #getAuthorizationUrl() + * @generated + */ + void setAuthorizationUrl(String value); + + /** + * Returns the value of the 'Flow' attribute. + * + *+ * If the meaning of the 'Flow' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Flow' attribute. + * @see #setFlow(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinition_Flow() + * @model unique="false" + * @generated + */ + String getFlow(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getFlow Flow}' attribute. + * + * + * @param value the new value of the 'Flow' attribute. + * @see #getFlow() + * @generated + */ + void setFlow(String value); + + /** + * Returns the value of the 'In' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType}. + * + *+ * If the meaning of the 'In' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'In' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see #setIn(SwaggerParameterType) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinition_In() + * @model unique="false" + * @generated + */ + SwaggerParameterType getIn(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getIn In}' attribute. + * + * + * @param value the new value of the 'In' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see #getIn() + * @generated + */ + void setIn(SwaggerParameterType value); +} // SwaggerSecurityDefinition diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityDefinitionScope.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityDefinitionScope.java new file mode 100644 index 0000000..150c34d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityDefinitionScope.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.sirius.manager.swagger; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Security Definition Scope'. + * + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinitionScope_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + +} // SwaggerSecurityDefinitionScope diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityList.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityList.java new file mode 100644 index 0000000..bcbdddb --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityList.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.sirius.manager.swagger; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Security List'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'List' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'List' containment reference. + * @see #setList(SwaggerSecurity) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityList_List() + * @model containment="true" + * @generated + */ + SwaggerSecurity getList(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityList#getList List}' containment reference. + * + * + * @param value the new value of the 'List' containment reference. + * @see #getList() + * @generated + */ + void setList(SwaggerSecurity value); + +} // SwaggerSecurityList diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityObject.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityObject.java new file mode 100644 index 0000000..3095ec5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityObject.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.sirius.manager.swagger; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Security Object'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'List' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'List' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityObject_List() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Required' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Required' attribute. + * @see #setRequired(boolean) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_Required() + * @model unique="false" + * @generated + */ + boolean isRequired(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#isRequired Required}' attribute. + * + * + * @param value the new value of the 'Required' attribute. + * @see #isRequired() + * @generated + */ + void setRequired(boolean value); + + /** + * Returns the value of the 'Format' attribute. + * + *+ * If the meaning of the 'Format' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Format' attribute. + * @see #setFormat(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_Format() + * @model unique="false" + * @generated + */ + String getFormat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getFormat Format}' attribute. + * + * + * @param value the new value of the 'Format' attribute. + * @see #getFormat() + * @generated + */ + void setFormat(String value); + + /** + * Returns the value of the 'Minimum' attribute. + * + *+ * If the meaning of the 'Minimum' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Minimum' attribute. + * @see #setMinimum(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_Minimum() + * @model unique="false" + * @generated + */ + String getMinimum(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMinimum Minimum}' attribute. + * + * + * @param value the new value of the 'Minimum' attribute. + * @see #getMinimum() + * @generated + */ + void setMinimum(String value); + + /** + * Returns the value of the 'Maximum' attribute. + * + *+ * If the meaning of the 'Maximum' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Maximum' attribute. + * @see #setMaximum(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_Maximum() + * @model unique="false" + * @generated + */ + String getMaximum(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMaximum Maximum}' attribute. + * + * + * @param value the new value of the 'Maximum' attribute. + * @see #getMaximum() + * @generated + */ + void setMaximum(String value); + + /** + * Returns the value of the 'Pattern' attribute. + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_Pattern() + * @model unique="false" + * @generated + */ + String getPattern(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getPattern Pattern}' attribute. + * + * + * @param value the new value of the 'Pattern' attribute. + * @see #getPattern() + * @generated + */ + void setPattern(String value); + + /** + * Returns the value of the 'Example' attribute. + * + *+ * If the meaning of the 'Example' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Example' attribute. + * @see #setExample(String) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_Example() + * @model unique="false" + * @generated + */ + String getExample(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getExample Example}' attribute. + * + * + * @param value the new value of the 'Example' attribute. + * @see #getExample() + * @generated + */ + void setExample(String value); + + /** + * Returns the value of the 'Collection Format' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat}. + * + *+ * If the meaning of the 'Collection Format' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Collection Format' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat + * @see #setCollectionFormat(SwaggerCollectionFormat) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType_CollectionFormat() + * @model unique="false" + * @generated + */ + SwaggerCollectionFormat getCollectionFormat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getCollectionFormat Collection Format}' attribute. + * + * + * @param value the new value of the 'Collection Format' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat + * @see #getCollectionFormat() + * @generated + */ + void setCollectionFormat(SwaggerCollectionFormat value); + +} // SwaggerSimpleObjectType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerTag.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerTag.java new file mode 100644 index 0000000..debeba0 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerTag.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.sirius.manager.swagger; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Tag'. + * + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerTag_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerTag_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'External Docs' containment reference. + * + *+ * If the meaning of the 'External Docs' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'External Docs' containment reference. + * @see #setExternalDocs(SwaggerExternalDocumentation) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerTag_ExternalDocs() + * @model containment="true" + * @generated + */ + SwaggerExternalDocumentation getExternalDocs(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getExternalDocs External Docs}' containment reference. + * + * + * @param value the new value of the 'External Docs' containment reference. + * @see #getExternalDocs() + * @generated + */ + void setExternalDocs(SwaggerExternalDocumentation value); + +} // SwaggerTag diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerXml.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerXml.java new file mode 100644 index 0000000..1f10a87 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerXml.java @@ -0,0 +1,99 @@ + +/*- + * ============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.sirius.manager.swagger; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Xml'. + * + * + *+ * 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.sirius.manager.swagger.SwaggerPackage#getSwaggerXml_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Wrapped' attribute. + * The default value is"false"
.
+ *
+ * + * If the meaning of the 'Wrapped' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Wrapped' attribute. + * @see #setWrapped(boolean) + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerXml_Wrapped() + * @model default="false" unique="false" + * @generated + */ + boolean isWrapped(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#isWrapped Wrapped}' attribute. + * + * + * @param value the new value of the 'Wrapped' attribute. + * @see #isWrapped() + * @generated + */ + void setWrapped(boolean value); + +} // SwaggerXml diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerContactImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerContactImpl.java new file mode 100644 index 0000000..3454e1f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerContactImpl.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.sirius.manager.swagger.impl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; + +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 'Contact'. + * + *+ * 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: + *
+ * 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.sirius.manager.swagger.SwaggerPackage#eNS_URI + * @see #init() + * @generated + */ + private SwaggerPackageImpl() { + super(eNS_URI, SwaggerFactory.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 SwaggerPackage#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 SwaggerPackage init() { + if (isInited) return (SwaggerPackage)EPackage.Registry.INSTANCE.getEPackage(SwaggerPackage.eNS_URI); + + // Obtain or create and register package + SwaggerPackageImpl theSwaggerPackage = (SwaggerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SwaggerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SwaggerPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theSwaggerPackage.createPackageContents(); + + // Initialize created meta-data + theSwaggerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSwaggerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SwaggerPackage.eNS_URI, theSwaggerPackage); + return theSwaggerPackage; + } + + /** + * + * + * @generated + */ + public EClass getSwaggerModel() { + return swaggerModelEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerModel_Swagger() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerModel_Info() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerModel_Host() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerModel_BasePath() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerModel_Tags() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerModel_Schemes() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerModel_Paths() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerModel_Definitions() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerModel_ExternalDocs() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerModel_SecurityDefinitions() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerInfo() { + return swaggerInfoEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerInfo_Description() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerInfo_Version() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerInfo_Title() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerInfo_TermsOfService() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerInfo_Contact() { + return (EReference)swaggerInfoEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerInfo_License() { + return (EReference)swaggerInfoEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerContact() { + return swaggerContactEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerContact_Email() { + return (EAttribute)swaggerContactEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerLicense() { + return swaggerLicenseEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerLicense_Name() { + return (EAttribute)swaggerLicenseEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerLicense_Url() { + return (EAttribute)swaggerLicenseEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerTag() { + return swaggerTagEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerTag_Name() { + return (EAttribute)swaggerTagEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerTag_Description() { + return (EAttribute)swaggerTagEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerTag_ExternalDocs() { + return (EReference)swaggerTagEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerExternalDocumentation() { + return swaggerExternalDocumentationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerExternalDocumentation_Description() { + return (EAttribute)swaggerExternalDocumentationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerExternalDocumentation_Url() { + return (EAttribute)swaggerExternalDocumentationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerPath() { + return swaggerPathEClass; + } + + /** + * + * + * @generated + */ + public EReference getSwaggerPath_Methods() { + return (EReference)swaggerPathEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerOperation() { + return swaggerOperationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_Tags() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_Summary() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_Description() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_OperationId() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_Consumes() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_Produces() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerOperation_Parameters() { + return (EReference)swaggerOperationEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerOperation_Responses() { + return (EReference)swaggerOperationEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerOperation_Security() { + return (EReference)swaggerOperationEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerOperation_Deprecated() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerParameter() { + return swaggerParameterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerParameter_In() { + return (EAttribute)swaggerParameterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerParameter_Type() { + return (EReference)swaggerParameterEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerResponse() { + return swaggerResponseEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerResponse_Description() { + return (EAttribute)swaggerResponseEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerResponse_Schema() { + return (EReference)swaggerResponseEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerResponse_Headers() { + return (EReference)swaggerResponseEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerSecurityObject() { + return swaggerSecurityObjectEClass; + } + + /** + * + * + * @generated + */ + public EReference getSwaggerSecurityObject_List() { + return (EReference)swaggerSecurityObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerSecurity() { + return swaggerSecurityEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSecurity_Roles() { + return (EAttribute)swaggerSecurityEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerSecurityDefinition() { + return swaggerSecurityDefinitionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_Type() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_AuthorizationUrl() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_Flow() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_In() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerSecurityDefinitionScope() { + return swaggerSecurityDefinitionScopeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSecurityDefinitionScope_Description() { + return (EAttribute)swaggerSecurityDefinitionScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerObjectType() { + return swaggerObjectTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerObjectType_Many() { + return (EAttribute)swaggerObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerReferenceObjectType() { + return swaggerReferenceObjectTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerReferenceObjectType_Required() { + return (EAttribute)swaggerReferenceObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerReferenceObjectType_Reference() { + return (EReference)swaggerReferenceObjectTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerNamedObjectType() { + return swaggerNamedObjectTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerNamedObjectType_Type() { + return (EAttribute)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerNamedObjectType_Default() { + return (EAttribute)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerNamedObjectType_Description() { + return (EAttribute)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerNamedObjectType_Xml() { + return (EReference)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerObjectClassDefinition() { + return swaggerObjectClassDefinitionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerObjectClassDefinition_Required() { + return (EAttribute)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerObjectClassDefinition_AllOf() { + return (EReference)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerObjectClassDefinition_Properties() { + return (EReference)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSwaggerObjectClassDefinition_AdditionalProperties() { + return (EReference)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerSimpleObjectType() { + return swaggerSimpleObjectTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Required() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Format() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Minimum() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Maximum() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Pattern() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Example() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_CollectionFormat() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerXml() { + return swaggerXmlEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerXml_Name() { + return (EAttribute)swaggerXmlEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerXml_Wrapped() { + return (EAttribute)swaggerXmlEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSwaggerEnumObjectType() { + return swaggerEnumObjectTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSwaggerEnumObjectType_Enum() { + return (EAttribute)swaggerEnumObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getSwaggerParameterType() { + return swaggerParameterTypeEEnum; + } + + /** + * + * + * @generated + */ + public EEnum getSwaggerCollectionFormat() { + return swaggerCollectionFormatEEnum; + } + + /** + * + * + * @generated + */ + public SwaggerFactory getSwaggerFactory() { + return (SwaggerFactory)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 + swaggerModelEClass = createEClass(SWAGGER_MODEL); + createEAttribute(swaggerModelEClass, SWAGGER_MODEL__SWAGGER); + createEReference(swaggerModelEClass, SWAGGER_MODEL__INFO); + createEAttribute(swaggerModelEClass, SWAGGER_MODEL__HOST); + createEAttribute(swaggerModelEClass, SWAGGER_MODEL__BASE_PATH); + createEReference(swaggerModelEClass, SWAGGER_MODEL__TAGS); + createEAttribute(swaggerModelEClass, SWAGGER_MODEL__SCHEMES); + createEReference(swaggerModelEClass, SWAGGER_MODEL__PATHS); + createEReference(swaggerModelEClass, SWAGGER_MODEL__DEFINITIONS); + createEReference(swaggerModelEClass, SWAGGER_MODEL__EXTERNAL_DOCS); + createEReference(swaggerModelEClass, SWAGGER_MODEL__SECURITY_DEFINITIONS); + + swaggerInfoEClass = createEClass(SWAGGER_INFO); + createEAttribute(swaggerInfoEClass, SWAGGER_INFO__DESCRIPTION); + createEAttribute(swaggerInfoEClass, SWAGGER_INFO__VERSION); + createEAttribute(swaggerInfoEClass, SWAGGER_INFO__TITLE); + createEAttribute(swaggerInfoEClass, SWAGGER_INFO__TERMS_OF_SERVICE); + createEReference(swaggerInfoEClass, SWAGGER_INFO__CONTACT); + createEReference(swaggerInfoEClass, SWAGGER_INFO__LICENSE); + + swaggerContactEClass = createEClass(SWAGGER_CONTACT); + createEAttribute(swaggerContactEClass, SWAGGER_CONTACT__EMAIL); + + swaggerLicenseEClass = createEClass(SWAGGER_LICENSE); + createEAttribute(swaggerLicenseEClass, SWAGGER_LICENSE__NAME); + createEAttribute(swaggerLicenseEClass, SWAGGER_LICENSE__URL); + + swaggerTagEClass = createEClass(SWAGGER_TAG); + createEAttribute(swaggerTagEClass, SWAGGER_TAG__NAME); + createEAttribute(swaggerTagEClass, SWAGGER_TAG__DESCRIPTION); + createEReference(swaggerTagEClass, SWAGGER_TAG__EXTERNAL_DOCS); + + swaggerExternalDocumentationEClass = createEClass(SWAGGER_EXTERNAL_DOCUMENTATION); + createEAttribute(swaggerExternalDocumentationEClass, SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION); + createEAttribute(swaggerExternalDocumentationEClass, SWAGGER_EXTERNAL_DOCUMENTATION__URL); + + swaggerPathEClass = createEClass(SWAGGER_PATH); + createEReference(swaggerPathEClass, SWAGGER_PATH__METHODS); + + swaggerOperationEClass = createEClass(SWAGGER_OPERATION); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__TAGS); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__SUMMARY); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__DESCRIPTION); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__OPERATION_ID); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__CONSUMES); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__PRODUCES); + createEReference(swaggerOperationEClass, SWAGGER_OPERATION__PARAMETERS); + createEReference(swaggerOperationEClass, SWAGGER_OPERATION__RESPONSES); + createEReference(swaggerOperationEClass, SWAGGER_OPERATION__SECURITY); + createEAttribute(swaggerOperationEClass, SWAGGER_OPERATION__DEPRECATED); + + swaggerParameterEClass = createEClass(SWAGGER_PARAMETER); + createEAttribute(swaggerParameterEClass, SWAGGER_PARAMETER__IN); + createEReference(swaggerParameterEClass, SWAGGER_PARAMETER__TYPE); + + swaggerResponseEClass = createEClass(SWAGGER_RESPONSE); + createEAttribute(swaggerResponseEClass, SWAGGER_RESPONSE__DESCRIPTION); + createEReference(swaggerResponseEClass, SWAGGER_RESPONSE__SCHEMA); + createEReference(swaggerResponseEClass, SWAGGER_RESPONSE__HEADERS); + + swaggerSecurityObjectEClass = createEClass(SWAGGER_SECURITY_OBJECT); + createEReference(swaggerSecurityObjectEClass, SWAGGER_SECURITY_OBJECT__LIST); + + swaggerSecurityEClass = createEClass(SWAGGER_SECURITY); + createEAttribute(swaggerSecurityEClass, SWAGGER_SECURITY__ROLES); + + swaggerSecurityDefinitionEClass = createEClass(SWAGGER_SECURITY_DEFINITION); + createEAttribute(swaggerSecurityDefinitionEClass, SWAGGER_SECURITY_DEFINITION__TYPE); + createEAttribute(swaggerSecurityDefinitionEClass, SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL); + createEAttribute(swaggerSecurityDefinitionEClass, SWAGGER_SECURITY_DEFINITION__FLOW); + createEAttribute(swaggerSecurityDefinitionEClass, SWAGGER_SECURITY_DEFINITION__IN); + + swaggerSecurityDefinitionScopeEClass = createEClass(SWAGGER_SECURITY_DEFINITION_SCOPE); + createEAttribute(swaggerSecurityDefinitionScopeEClass, SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION); + + swaggerObjectTypeEClass = createEClass(SWAGGER_OBJECT_TYPE); + createEAttribute(swaggerObjectTypeEClass, SWAGGER_OBJECT_TYPE__MANY); + + swaggerReferenceObjectTypeEClass = createEClass(SWAGGER_REFERENCE_OBJECT_TYPE); + createEAttribute(swaggerReferenceObjectTypeEClass, SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED); + createEReference(swaggerReferenceObjectTypeEClass, SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE); + + swaggerNamedObjectTypeEClass = createEClass(SWAGGER_NAMED_OBJECT_TYPE); + createEAttribute(swaggerNamedObjectTypeEClass, SWAGGER_NAMED_OBJECT_TYPE__TYPE); + createEAttribute(swaggerNamedObjectTypeEClass, SWAGGER_NAMED_OBJECT_TYPE__DEFAULT); + createEAttribute(swaggerNamedObjectTypeEClass, SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION); + createEReference(swaggerNamedObjectTypeEClass, SWAGGER_NAMED_OBJECT_TYPE__XML); + + swaggerObjectClassDefinitionEClass = createEClass(SWAGGER_OBJECT_CLASS_DEFINITION); + createEAttribute(swaggerObjectClassDefinitionEClass, SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED); + createEReference(swaggerObjectClassDefinitionEClass, SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF); + createEReference(swaggerObjectClassDefinitionEClass, SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES); + createEReference(swaggerObjectClassDefinitionEClass, SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES); + + swaggerSimpleObjectTypeEClass = createEClass(SWAGGER_SIMPLE_OBJECT_TYPE); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE); + createEAttribute(swaggerSimpleObjectTypeEClass, SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT); + + swaggerXmlEClass = createEClass(SWAGGER_XML); + createEAttribute(swaggerXmlEClass, SWAGGER_XML__NAME); + createEAttribute(swaggerXmlEClass, SWAGGER_XML__WRAPPED); + + swaggerEnumObjectTypeEClass = createEClass(SWAGGER_ENUM_OBJECT_TYPE); + createEAttribute(swaggerEnumObjectTypeEClass, SWAGGER_ENUM_OBJECT_TYPE__ENUM); + + // Create enums + swaggerParameterTypeEEnum = createEEnum(SWAGGER_PARAMETER_TYPE); + swaggerCollectionFormatEEnum = createEEnum(SWAGGER_COLLECTION_FORMAT); + } + + /** + * + * + * @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 + swaggerPathEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerOperationEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerParameterEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerResponseEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerSecurityEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerSecurityDefinitionEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerSecurityDefinitionScopeEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerReferenceObjectTypeEClass.getESuperTypes().add(this.getSwaggerNamedObjectType()); + swaggerNamedObjectTypeEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + swaggerNamedObjectTypeEClass.getESuperTypes().add(this.getSwaggerObjectType()); + swaggerObjectClassDefinitionEClass.getESuperTypes().add(this.getSwaggerNamedObjectType()); + swaggerSimpleObjectTypeEClass.getESuperTypes().add(this.getSwaggerNamedObjectType()); + swaggerEnumObjectTypeEClass.getESuperTypes().add(this.getSwaggerSimpleObjectType()); + + // Initialize classes, features, and operations; add parameters + initEClass(swaggerModelEClass, SwaggerModel.class, "SwaggerModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerModel_Swagger(), theEcorePackage.getEString(), "swagger", "2.0", 0, 1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerModel_Info(), this.getSwaggerInfo(), null, "info", null, 0, 1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerModel_Host(), theEcorePackage.getEString(), "host", null, 0, 1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerModel_BasePath(), theEcorePackage.getEString(), "basePath", null, 0, 1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerModel_Tags(), this.getSwaggerTag(), null, "tags", null, 0, -1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerModel_Schemes(), theEcorePackage.getEString(), "schemes", null, 0, -1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerModel_Paths(), this.getSwaggerPath(), null, "paths", null, 0, -1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerModel_Definitions(), this.getSwaggerNamedObjectType(), null, "definitions", null, 0, -1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerModel_ExternalDocs(), this.getSwaggerExternalDocumentation(), null, "externalDocs", null, 0, 1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerModel_SecurityDefinitions(), this.getSwaggerSecurityDefinition(), null, "securityDefinitions", null, 0, -1, SwaggerModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerInfoEClass, SwaggerInfo.class, "SwaggerInfo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerInfo_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerInfo_Version(), theEcorePackage.getEString(), "version", null, 0, 1, SwaggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerInfo_Title(), theEcorePackage.getEString(), "title", null, 0, 1, SwaggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerInfo_TermsOfService(), theEcorePackage.getEString(), "termsOfService", null, 0, 1, SwaggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerInfo_Contact(), this.getSwaggerContact(), null, "contact", null, 0, 1, SwaggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerInfo_License(), this.getSwaggerLicense(), null, "license", null, 0, 1, SwaggerInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerContactEClass, SwaggerContact.class, "SwaggerContact", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerContact_Email(), theEcorePackage.getEString(), "email", null, 0, 1, SwaggerContact.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerLicenseEClass, SwaggerLicense.class, "SwaggerLicense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerLicense_Name(), theEcorePackage.getEString(), "name", null, 0, 1, SwaggerLicense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerLicense_Url(), theEcorePackage.getEString(), "url", null, 0, 1, SwaggerLicense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerTagEClass, SwaggerTag.class, "SwaggerTag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerTag_Name(), theEcorePackage.getEString(), "name", null, 0, 1, SwaggerTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerTag_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerTag_ExternalDocs(), this.getSwaggerExternalDocumentation(), null, "externalDocs", null, 0, 1, SwaggerTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerExternalDocumentationEClass, SwaggerExternalDocumentation.class, "SwaggerExternalDocumentation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerExternalDocumentation_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerExternalDocumentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerExternalDocumentation_Url(), theEcorePackage.getEString(), "url", null, 0, 1, SwaggerExternalDocumentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerPathEClass, SwaggerPath.class, "SwaggerPath", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSwaggerPath_Methods(), this.getSwaggerOperation(), null, "methods", null, 0, -1, SwaggerPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerOperationEClass, SwaggerOperation.class, "SwaggerOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerOperation_Tags(), theEcorePackage.getEString(), "tags", null, 0, -1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerOperation_Summary(), theEcorePackage.getEString(), "summary", null, 0, 1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerOperation_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerOperation_OperationId(), theEcorePackage.getEString(), "operationId", null, 0, 1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerOperation_Consumes(), theEcorePackage.getEString(), "consumes", null, 0, -1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerOperation_Produces(), theEcorePackage.getEString(), "produces", null, 0, -1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerOperation_Parameters(), this.getSwaggerParameter(), null, "parameters", null, 0, -1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerOperation_Responses(), this.getSwaggerResponse(), null, "responses", null, 0, -1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerOperation_Security(), this.getSwaggerSecurityObject(), null, "security", null, 0, -1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerOperation_Deprecated(), theEcorePackage.getEBoolean(), "deprecated", "false", 0, 1, SwaggerOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerParameterEClass, SwaggerParameter.class, "SwaggerParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerParameter_In(), this.getSwaggerParameterType(), "in", null, 0, 1, SwaggerParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerParameter_Type(), this.getSwaggerObjectType(), null, "type", null, 0, 1, SwaggerParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerResponseEClass, SwaggerResponse.class, "SwaggerResponse", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerResponse_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerResponse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerResponse_Schema(), this.getSwaggerObjectType(), null, "schema", null, 0, 1, SwaggerResponse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerResponse_Headers(), this.getSwaggerSimpleObjectType(), null, "headers", null, 0, -1, SwaggerResponse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerSecurityObjectEClass, SwaggerSecurityObject.class, "SwaggerSecurityObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSwaggerSecurityObject_List(), this.getSwaggerSecurity(), null, "list", null, 0, -1, SwaggerSecurityObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerSecurityEClass, SwaggerSecurity.class, "SwaggerSecurity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerSecurity_Roles(), theEcorePackage.getEString(), "roles", null, 0, -1, SwaggerSecurity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerSecurityDefinitionEClass, SwaggerSecurityDefinition.class, "SwaggerSecurityDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerSecurityDefinition_Type(), theEcorePackage.getEString(), "type", null, 0, 1, SwaggerSecurityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSecurityDefinition_AuthorizationUrl(), theEcorePackage.getEString(), "authorizationUrl", null, 0, 1, SwaggerSecurityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSecurityDefinition_Flow(), theEcorePackage.getEString(), "flow", null, 0, 1, SwaggerSecurityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSecurityDefinition_In(), this.getSwaggerParameterType(), "in", null, 0, 1, SwaggerSecurityDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerSecurityDefinitionScopeEClass, SwaggerSecurityDefinitionScope.class, "SwaggerSecurityDefinitionScope", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerSecurityDefinitionScope_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerSecurityDefinitionScope.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerObjectTypeEClass, SwaggerObjectType.class, "SwaggerObjectType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerObjectType_Many(), theEcorePackage.getEBoolean(), "many", "false", 0, 1, SwaggerObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerReferenceObjectTypeEClass, SwaggerReferenceObjectType.class, "SwaggerReferenceObjectType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerReferenceObjectType_Required(), theEcorePackage.getEBoolean(), "required", null, 0, 1, SwaggerReferenceObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerReferenceObjectType_Reference(), this.getSwaggerObjectType(), null, "reference", null, 0, 1, SwaggerReferenceObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerNamedObjectTypeEClass, SwaggerNamedObjectType.class, "SwaggerNamedObjectType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerNamedObjectType_Type(), theEcorePackage.getEString(), "type", null, 0, 1, SwaggerNamedObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerNamedObjectType_Default(), theEcorePackage.getEString(), "default", null, 0, 1, SwaggerNamedObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerNamedObjectType_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SwaggerNamedObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerNamedObjectType_Xml(), this.getSwaggerXml(), null, "xml", null, 0, 1, SwaggerNamedObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerObjectClassDefinitionEClass, SwaggerObjectClassDefinition.class, "SwaggerObjectClassDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerObjectClassDefinition_Required(), theEcorePackage.getEString(), "required", null, 0, -1, SwaggerObjectClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerObjectClassDefinition_AllOf(), this.getSwaggerObjectType(), null, "allOf", null, 0, -1, SwaggerObjectClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerObjectClassDefinition_Properties(), this.getSwaggerNamedObjectType(), null, "properties", null, 0, -1, SwaggerObjectClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSwaggerObjectClassDefinition_AdditionalProperties(), this.getSwaggerObjectType(), null, "additionalProperties", null, 0, 1, SwaggerObjectClassDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerSimpleObjectTypeEClass, SwaggerSimpleObjectType.class, "SwaggerSimpleObjectType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerSimpleObjectType_Required(), theEcorePackage.getEBoolean(), "required", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSimpleObjectType_Format(), theEcorePackage.getEString(), "format", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSimpleObjectType_Minimum(), theEcorePackage.getEString(), "minimum", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSimpleObjectType_Maximum(), theEcorePackage.getEString(), "maximum", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSimpleObjectType_Pattern(), theEcorePackage.getEString(), "pattern", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSimpleObjectType_Example(), theEcorePackage.getEString(), "example", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerSimpleObjectType_CollectionFormat(), this.getSwaggerCollectionFormat(), "collectionFormat", null, 0, 1, SwaggerSimpleObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerXmlEClass, SwaggerXml.class, "SwaggerXml", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerXml_Name(), theEcorePackage.getEString(), "name", null, 0, 1, SwaggerXml.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSwaggerXml_Wrapped(), theEcorePackage.getEBoolean(), "wrapped", "false", 0, 1, SwaggerXml.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(swaggerEnumObjectTypeEClass, SwaggerEnumObjectType.class, "SwaggerEnumObjectType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSwaggerEnumObjectType_Enum(), theEcorePackage.getEString(), "enum", null, 0, -1, SwaggerEnumObjectType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(swaggerParameterTypeEEnum, SwaggerParameterType.class, "SwaggerParameterType"); + addEEnumLiteral(swaggerParameterTypeEEnum, SwaggerParameterType.PATH); + addEEnumLiteral(swaggerParameterTypeEEnum, SwaggerParameterType.QUERY); + addEEnumLiteral(swaggerParameterTypeEEnum, SwaggerParameterType.HEADER); + addEEnumLiteral(swaggerParameterTypeEEnum, SwaggerParameterType.BODY); + addEEnumLiteral(swaggerParameterTypeEEnum, SwaggerParameterType.FORM); + addEEnumLiteral(swaggerParameterTypeEEnum, SwaggerParameterType.FORM_DATA); + + initEEnum(swaggerCollectionFormatEEnum, SwaggerCollectionFormat.class, "SwaggerCollectionFormat"); + addEEnumLiteral(swaggerCollectionFormatEEnum, SwaggerCollectionFormat.CSV); + addEEnumLiteral(swaggerCollectionFormatEEnum, SwaggerCollectionFormat.SSV); + addEEnumLiteral(swaggerCollectionFormatEEnum, SwaggerCollectionFormat.TSV); + addEEnumLiteral(swaggerCollectionFormatEEnum, SwaggerCollectionFormat.PIPES); + addEEnumLiteral(swaggerCollectionFormatEEnum, SwaggerCollectionFormat.MULTI); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/ncomp/swagger + createSwaggerAnnotations(); + } + + /** + * 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[] { + "swagger", "http://openecomp.org/ncomp/swagger" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/ncomp/swagger. + * + * + * @generated + */ + protected void createSwaggerAnnotations() { + String source = "http://openecomp.org/ncomp/swagger"; + addAnnotation + (getSwaggerReferenceObjectType_Required(), + source, + new String[] { + "name", "$ref" + }); + } + +} //SwaggerPackageImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerParameterImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerParameterImpl.java new file mode 100644 index 0000000..07933d6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerParameterImpl.java @@ -0,0 +1,263 @@ + +/*- + * ============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.sirius.manager.swagger.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Parameter'. + * + *
+ * 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: + *
+ * 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.sirius.manager.swagger.SwaggerPackage
+ * @generated
+ */
+public class SwaggerAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static SwaggerPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public SwaggerAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = SwaggerPackage.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 SwaggerSwitchtarget
.
+ *
+ *
+ * @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.sirius.manager.swagger.SwaggerModel Model}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerModel
+ * @generated
+ */
+ public Adapter createSwaggerModelAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo Info}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerInfo
+ * @generated
+ */
+ public Adapter createSwaggerInfoAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact Contact}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerContact
+ * @generated
+ */
+ public Adapter createSwaggerContactAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense License}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerLicense
+ * @generated
+ */
+ public Adapter createSwaggerLicenseAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag Tag}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerTag
+ * @generated
+ */
+ public Adapter createSwaggerTagAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation External Documentation}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerExternalDocumentation
+ * @generated
+ */
+ public Adapter createSwaggerExternalDocumentationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath Path}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerPath
+ * @generated
+ */
+ public Adapter createSwaggerPathAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation Operation}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerOperation
+ * @generated
+ */
+ public Adapter createSwaggerOperationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter Parameter}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerParameter
+ * @generated
+ */
+ public Adapter createSwaggerParameterAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse Response}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerResponse
+ * @generated
+ */
+ public Adapter createSwaggerResponseAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject Security Object}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerSecurityObject
+ * @generated
+ */
+ public Adapter createSwaggerSecurityObjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity Security}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerSecurity
+ * @generated
+ */
+ public Adapter createSwaggerSecurityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition Security Definition}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerSecurityDefinition
+ * @generated
+ */
+ public Adapter createSwaggerSecurityDefinitionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope Security Definition Scope}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerSecurityDefinitionScope
+ * @generated
+ */
+ public Adapter createSwaggerSecurityDefinitionScopeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType Object Type}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerObjectType
+ * @generated
+ */
+ public Adapter createSwaggerObjectTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType Reference Object Type}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerReferenceObjectType
+ * @generated
+ */
+ public Adapter createSwaggerReferenceObjectTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType Named Object Type}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerNamedObjectType
+ * @generated
+ */
+ public Adapter createSwaggerNamedObjectTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition Object Class Definition}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerObjectClassDefinition
+ * @generated
+ */
+ public Adapter createSwaggerObjectClassDefinitionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType Simple Object Type}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerSimpleObjectType
+ * @generated
+ */
+ public Adapter createSwaggerSimpleObjectTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml Xml}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerXml
+ * @generated
+ */
+ public Adapter createSwaggerXmlAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType Enum Object Type}'.
+ *
+ * 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.sirius.manager.swagger.SwaggerEnumObjectType
+ * @generated
+ */
+ public Adapter createSwaggerEnumObjectTypeAdapter() {
+ 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;
+ }
+
+} //SwaggerAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/util/SwaggerSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/util/SwaggerSwitch.java
new file mode 100644
index 0000000..dc3e38b
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/util/SwaggerSwitch.java
@@ -0,0 +1,590 @@
+
+/*-
+ * ============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.sirius.manager.swagger.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.sirius.manager.swagger.*;
+
+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.sirius.manager.swagger.SwaggerPackage
+ * @generated
+ */
+public class SwaggerSwitchcaseXXX
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 SwaggerPackage.SWAGGER_MODEL: {
+ SwaggerModel swaggerModel = (SwaggerModel)theEObject;
+ T result = caseSwaggerModel(swaggerModel);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_INFO: {
+ SwaggerInfo swaggerInfo = (SwaggerInfo)theEObject;
+ T result = caseSwaggerInfo(swaggerInfo);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_CONTACT: {
+ SwaggerContact swaggerContact = (SwaggerContact)theEObject;
+ T result = caseSwaggerContact(swaggerContact);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_LICENSE: {
+ SwaggerLicense swaggerLicense = (SwaggerLicense)theEObject;
+ T result = caseSwaggerLicense(swaggerLicense);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_TAG: {
+ SwaggerTag swaggerTag = (SwaggerTag)theEObject;
+ T result = caseSwaggerTag(swaggerTag);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION: {
+ SwaggerExternalDocumentation swaggerExternalDocumentation = (SwaggerExternalDocumentation)theEObject;
+ T result = caseSwaggerExternalDocumentation(swaggerExternalDocumentation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_PATH: {
+ SwaggerPath swaggerPath = (SwaggerPath)theEObject;
+ T result = caseSwaggerPath(swaggerPath);
+ if (result == null) result = caseNamedEntity(swaggerPath);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_OPERATION: {
+ SwaggerOperation swaggerOperation = (SwaggerOperation)theEObject;
+ T result = caseSwaggerOperation(swaggerOperation);
+ if (result == null) result = caseNamedEntity(swaggerOperation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_PARAMETER: {
+ SwaggerParameter swaggerParameter = (SwaggerParameter)theEObject;
+ T result = caseSwaggerParameter(swaggerParameter);
+ if (result == null) result = caseNamedEntity(swaggerParameter);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_RESPONSE: {
+ SwaggerResponse swaggerResponse = (SwaggerResponse)theEObject;
+ T result = caseSwaggerResponse(swaggerResponse);
+ if (result == null) result = caseNamedEntity(swaggerResponse);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_SECURITY_OBJECT: {
+ SwaggerSecurityObject swaggerSecurityObject = (SwaggerSecurityObject)theEObject;
+ T result = caseSwaggerSecurityObject(swaggerSecurityObject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_SECURITY: {
+ SwaggerSecurity swaggerSecurity = (SwaggerSecurity)theEObject;
+ T result = caseSwaggerSecurity(swaggerSecurity);
+ if (result == null) result = caseNamedEntity(swaggerSecurity);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_SECURITY_DEFINITION: {
+ SwaggerSecurityDefinition swaggerSecurityDefinition = (SwaggerSecurityDefinition)theEObject;
+ T result = caseSwaggerSecurityDefinition(swaggerSecurityDefinition);
+ if (result == null) result = caseNamedEntity(swaggerSecurityDefinition);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE: {
+ SwaggerSecurityDefinitionScope swaggerSecurityDefinitionScope = (SwaggerSecurityDefinitionScope)theEObject;
+ T result = caseSwaggerSecurityDefinitionScope(swaggerSecurityDefinitionScope);
+ if (result == null) result = caseNamedEntity(swaggerSecurityDefinitionScope);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_OBJECT_TYPE: {
+ SwaggerObjectType swaggerObjectType = (SwaggerObjectType)theEObject;
+ T result = caseSwaggerObjectType(swaggerObjectType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE: {
+ SwaggerReferenceObjectType swaggerReferenceObjectType = (SwaggerReferenceObjectType)theEObject;
+ T result = caseSwaggerReferenceObjectType(swaggerReferenceObjectType);
+ if (result == null) result = caseSwaggerNamedObjectType(swaggerReferenceObjectType);
+ if (result == null) result = caseNamedEntity(swaggerReferenceObjectType);
+ if (result == null) result = caseSwaggerObjectType(swaggerReferenceObjectType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE: {
+ SwaggerNamedObjectType swaggerNamedObjectType = (SwaggerNamedObjectType)theEObject;
+ T result = caseSwaggerNamedObjectType(swaggerNamedObjectType);
+ if (result == null) result = caseNamedEntity(swaggerNamedObjectType);
+ if (result == null) result = caseSwaggerObjectType(swaggerNamedObjectType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION: {
+ SwaggerObjectClassDefinition swaggerObjectClassDefinition = (SwaggerObjectClassDefinition)theEObject;
+ T result = caseSwaggerObjectClassDefinition(swaggerObjectClassDefinition);
+ if (result == null) result = caseSwaggerNamedObjectType(swaggerObjectClassDefinition);
+ if (result == null) result = caseNamedEntity(swaggerObjectClassDefinition);
+ if (result == null) result = caseSwaggerObjectType(swaggerObjectClassDefinition);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE: {
+ SwaggerSimpleObjectType swaggerSimpleObjectType = (SwaggerSimpleObjectType)theEObject;
+ T result = caseSwaggerSimpleObjectType(swaggerSimpleObjectType);
+ if (result == null) result = caseSwaggerNamedObjectType(swaggerSimpleObjectType);
+ if (result == null) result = caseNamedEntity(swaggerSimpleObjectType);
+ if (result == null) result = caseSwaggerObjectType(swaggerSimpleObjectType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_XML: {
+ SwaggerXml swaggerXml = (SwaggerXml)theEObject;
+ T result = caseSwaggerXml(swaggerXml);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE: {
+ SwaggerEnumObjectType swaggerEnumObjectType = (SwaggerEnumObjectType)theEObject;
+ T result = caseSwaggerEnumObjectType(swaggerEnumObjectType);
+ if (result == null) result = caseSwaggerSimpleObjectType(swaggerEnumObjectType);
+ if (result == null) result = caseSwaggerNamedObjectType(swaggerEnumObjectType);
+ if (result == null) result = caseNamedEntity(swaggerEnumObjectType);
+ if (result == null) result = caseSwaggerObjectType(swaggerEnumObjectType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Model'.
+ *
+ * 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 'Model'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerModel(SwaggerModel object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Info'.
+ *
+ * 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 'Info'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerInfo(SwaggerInfo object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Contact'.
+ *
+ * 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 'Contact'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerContact(SwaggerContact object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'License'.
+ *
+ * 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 'License'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerLicense(SwaggerLicense object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Tag'.
+ *
+ * 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 'Tag'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerTag(SwaggerTag object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'External Documentation'.
+ *
+ * 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 'External Documentation'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerExternalDocumentation(SwaggerExternalDocumentation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Path'.
+ *
+ * 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 'Path'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerPath(SwaggerPath object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Operation'.
+ *
+ * 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 'Operation'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerOperation(SwaggerOperation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Parameter'.
+ *
+ * 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 'Parameter'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerParameter(SwaggerParameter object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Response'.
+ *
+ * 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 'Response'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerResponse(SwaggerResponse object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Object'.
+ *
+ * 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 'Security Object'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerSecurityObject(SwaggerSecurityObject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security'.
+ *
+ * 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 'Security'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerSecurity(SwaggerSecurity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Definition'.
+ *
+ * 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 'Security Definition'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerSecurityDefinition(SwaggerSecurityDefinition object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Definition Scope'.
+ *
+ * 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 'Security Definition Scope'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerSecurityDefinitionScope(SwaggerSecurityDefinitionScope object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Object Type'.
+ *
+ * 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 'Object Type'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerObjectType(SwaggerObjectType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Reference Object Type'.
+ *
+ * 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 'Reference Object Type'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerReferenceObjectType(SwaggerReferenceObjectType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Object Type'.
+ *
+ * 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 Object Type'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerNamedObjectType(SwaggerNamedObjectType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Object Class Definition'.
+ *
+ * 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 'Object Class Definition'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerObjectClassDefinition(SwaggerObjectClassDefinition object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Simple Object Type'.
+ *
+ * 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 'Simple Object Type'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerSimpleObjectType(SwaggerSimpleObjectType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Xml'.
+ *
+ * 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 'Xml'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerXml(SwaggerXml object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Enum Object Type'.
+ *
+ * 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 'Enum Object Type'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSwaggerEnumObjectType(SwaggerEnumObjectType 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;
+ }
+
+} //SwaggerSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/AbstractTableTemplate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/AbstractTableTemplate.java
new file mode 100644
index 0000000..f0f634b
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/AbstractTableTemplate.java
@@ -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============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.sirius.manager.tableTemplate;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+/**
+ *
+ * A representation of the model object 'Abstract Table Template'.
+ *
+ *
+ * + * The following features are supported: + *
+ * If the meaning of the 'Tree Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tree Path' attribute. + * @see #setTreePath(String) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getAbstractTableTemplate_TreePath() + * @model unique="false" + * @generated + */ + String getTreePath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTreePath Tree Path}' attribute. + * + * + * @param value the new value of the 'Tree Path' attribute. + * @see #getTreePath() + * @generated + */ + void setTreePath(String value); + + /** + * Returns the value of the 'Table Path' attribute. + * + *+ * If the meaning of the 'Table Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Table Path' attribute. + * @see #setTablePath(String) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getAbstractTableTemplate_TablePath() + * @model unique="false" + * @generated + */ + String getTablePath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTablePath Table Path}' attribute. + * + * + * @param value the new value of the 'Table Path' attribute. + * @see #getTablePath() + * @generated + */ + void setTablePath(String value); + +} // AbstractTableTemplate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/HasColumnsTableTemplate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/HasColumnsTableTemplate.java new file mode 100644 index 0000000..84a5d81 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/HasColumnsTableTemplate.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.sirius.manager.tableTemplate; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Has Columns Table Template'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Columns' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Columns' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getHasColumnsTableTemplate_Columns() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Iterator' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Iterator' containment reference. + * @see #setIterator(Iterator) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getIteratorTableTemplate_Iterator() + * @model containment="true" + * @generated + */ + Iterator getIterator(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate#getIterator Iterator}' containment reference. + * + * + * @param value the new value of the 'Iterator' containment reference. + * @see #getIterator() + * @generated + */ + void setIterator(Iterator value); + +} // IteratorTableTemplate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/LogTableTemplate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/LogTableTemplate.java new file mode 100644 index 0000000..a458fde --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/LogTableTemplate.java @@ -0,0 +1,186 @@ + +/*- + * ============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.sirius.manager.tableTemplate; + +import org.openecomp.ncomp.core.logs.LogLevel; +import org.openecomp.ncomp.core.logs.LogSeverity; + +/** + * + * A representation of the model object 'Log Table Template'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Min Level' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Min Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #setMinLevel(LogLevel) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getLogTableTemplate_MinLevel() + * @model unique="false" + * @generated + */ + LogLevel getMinLevel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinLevel Min Level}' attribute. + * + * + * @param value the new value of the 'Min Level' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #getMinLevel() + * @generated + */ + void setMinLevel(LogLevel value); + + /** + * Returns the value of the 'Min Severity' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogSeverity}. + * + *+ * If the meaning of the 'Min Severity' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Min Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #setMinSeverity(LogSeverity) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getLogTableTemplate_MinSeverity() + * @model unique="false" + * @generated + */ + LogSeverity getMinSeverity(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinSeverity Min Severity}' attribute. + * + * + * @param value the new value of the 'Min Severity' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getMinSeverity() + * @generated + */ + void setMinSeverity(LogSeverity value); + + /** + * Returns the value of the 'Prefix Resource Path' attribute. + * + *+ * If the meaning of the 'Prefix Resource Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Prefix Resource Path' attribute. + * @see #setPrefixResourcePath(String) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getLogTableTemplate_PrefixResourcePath() + * @model unique="false" + * @generated + */ + String getPrefixResourcePath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getPrefixResourcePath Prefix Resource Path}' attribute. + * + * + * @param value the new value of the 'Prefix Resource Path' attribute. + * @see #getPrefixResourcePath() + * @generated + */ + void setPrefixResourcePath(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(String) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getLogTableTemplate_Duration() + * @model unique="false" + * @generated + */ + String getDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#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 Duration' attribute. + * + *+ * If the meaning of the 'Aggregation Duration' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Aggregation Duration' attribute. + * @see #setAggregationDuration(String) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getLogTableTemplate_AggregationDuration() + * @model unique="false" + * @generated + */ + String getAggregationDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getAggregationDuration Aggregation Duration}' attribute. + * + * + * @param value the new value of the 'Aggregation Duration' attribute. + * @see #getAggregationDuration() + * @generated + */ + void setAggregationDuration(String value); + +} // LogTableTemplate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplate.java new file mode 100644 index 0000000..ff0d58c --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplate.java @@ -0,0 +1,70 @@ + +/*- + * ============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.sirius.manager.tableTemplate; + + +/** + * + * A representation of the model object 'Table Template'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Row Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Row Path' attribute. + * @see #setRowPath(String) + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplate_RowPath() + * @model unique="false" + * @generated + */ + String getRowPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate#getRowPath Row Path}' attribute. + * + * + * @param value the new value of the 'Row Path' attribute. + * @see #getRowPath() + * @generated + */ + void setRowPath(String value); + +} // TableTemplate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateAttributeColumn.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateAttributeColumn.java new file mode 100644 index 0000000..4b5dea4 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateAttributeColumn.java @@ -0,0 +1,70 @@ + +/*- + * ============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.sirius.manager.tableTemplate; + + +/** + * + * A representation of the model object 'Attribute Column'. + * + * + *+ * 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.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplateAttributeColumn_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // TableTemplateAttributeColumn diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateColumn.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateColumn.java new file mode 100644 index 0000000..e088470 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateColumn.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.sirius.manager.tableTemplate; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Column'. + * + * + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplateColumn() + * @model abstract="true" + * @generated + */ +public interface TableTemplateColumn extends NamedEntity { +} // TableTemplateColumn diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateFactory.java new file mode 100644 index 0000000..1cd608f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateFactory.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.sirius.manager.tableTemplate; + +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.sirius.manager.tableTemplate.TableTemplatePackage + * @generated + */ +public interface TableTemplateFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + TableTemplateFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateFactoryImpl.init(); + + /** + * Returns a new object of class 'Log Table Template'. + * + * + * @return a new object of class 'Log Table Template'. + * @generated + */ + LogTableTemplate createLogTableTemplate(); + + /** + * Returns a new object of class 'Table Template'. + * + * + * @return a new object of class 'Table Template'. + * @generated + */ + TableTemplate createTableTemplate(); + + /** + * Returns a new object of class 'Iterator Table Template'. + * + * + * @return a new object of class 'Iterator Table Template'. + * @generated + */ + IteratorTableTemplate createIteratorTableTemplate(); + + /** + * Returns a new object of class 'Time Table Template'. + * + * + * @return a new object of class 'Time Table Template'. + * @generated + */ + TimeTableTemplate createTimeTableTemplate(); + + /** + * Returns a new object of class 'Attribute Column'. + * + * + * @return a new object of class 'Attribute Column'. + * @generated + */ + TableTemplateAttributeColumn createTableTemplateAttributeColumn(); + + /** + * Returns a new object of class 'Metric Column'. + * + * + * @return a new object of class 'Metric Column'. + * @generated + */ + TableTemplateMetricColumn createTableTemplateMetricColumn(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + TableTemplatePackage getTableTemplatePackage(); + +} //TableTemplateFactory diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateMetricColumn.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateMetricColumn.java new file mode 100644 index 0000000..f345c77 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplateMetricColumn.java @@ -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============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.tableTemplate; + +import org.openecomp.ncomp.core.metrics.MetricValueOption; + +/** + * + * A representation of the model object 'Metric Column'. + * + * + *+ * 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.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplateMetricColumn_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#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.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplateMetricColumn_Option() + * @model + * @generated + */ + MetricValueOption getOption(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getOption Option}' reference. + * + * + * @param value the new value of the 'Option' reference. + * @see #getOption() + * @generated + */ + void setOption(MetricValueOption value); + +} // TableTemplateMetricColumn diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplatePackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplatePackage.java new file mode 100644 index 0000000..ddf5d4b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TableTemplatePackage.java @@ -0,0 +1,1330 @@ + +/*- + * ============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.sirius.manager.tableTemplate; + +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 '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.sirius.manager.tableTemplate.TableTemplatePackage#getTimeTableTemplate_Duration() + * @model unique="false" + * @generated + */ + String getDuration(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate#getDuration Duration}' attribute. + * + * + * @param value the new value of the 'Duration' attribute. + * @see #getDuration() + * @generated + */ + void setDuration(String value); + +} // TimeTableTemplate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/AbstractTableTemplateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/AbstractTableTemplateImpl.java new file mode 100644 index 0000000..eb1b228 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/AbstractTableTemplateImpl.java @@ -0,0 +1,239 @@ + +/*- + * ============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.sirius.manager.tableTemplate.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; + +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 'Abstract Table Template'. + * + *+ * 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: + *
+ *
+ * + * @generated + */ +public abstract class TableTemplateColumnImpl extends NamedEntityImpl implements TableTemplateColumn { + /** + * + * + * @generated + */ + protected TableTemplateColumnImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.TABLE_TEMPLATE_COLUMN; + } + +} //TableTemplateColumnImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateFactoryImpl.java new file mode 100644 index 0000000..d13e876 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateFactoryImpl.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.sirius.manager.tableTemplate.impl; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.*; + +import org.eclipse.emf.ecore.EClass; +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 TableTemplateFactoryImpl extends EFactoryImpl implements TableTemplateFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static TableTemplateFactory init() { + try { + TableTemplateFactory theTableTemplateFactory = (TableTemplateFactory)EPackage.Registry.INSTANCE.getEFactory(TableTemplatePackage.eNS_URI); + if (theTableTemplateFactory != null) { + return theTableTemplateFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new TableTemplateFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public TableTemplateFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case TableTemplatePackage.LOG_TABLE_TEMPLATE: return createLogTableTemplate(); + case TableTemplatePackage.TABLE_TEMPLATE: return createTableTemplate(); + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE: return createIteratorTableTemplate(); + case TableTemplatePackage.TIME_TABLE_TEMPLATE: return createTimeTableTemplate(); + case TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN: return createTableTemplateAttributeColumn(); + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN: return createTableTemplateMetricColumn(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public LogTableTemplate createLogTableTemplate() { + LogTableTemplateImpl logTableTemplate = new LogTableTemplateImpl(); + return logTableTemplate; + } + + /** + * + * + * @generated + */ + public TableTemplate createTableTemplate() { + TableTemplateImpl tableTemplate = new TableTemplateImpl(); + return tableTemplate; + } + + /** + * + * + * @generated + */ + public IteratorTableTemplate createIteratorTableTemplate() { + IteratorTableTemplateImpl iteratorTableTemplate = new IteratorTableTemplateImpl(); + return iteratorTableTemplate; + } + + /** + * + * + * @generated + */ + public TimeTableTemplate createTimeTableTemplate() { + TimeTableTemplateImpl timeTableTemplate = new TimeTableTemplateImpl(); + return timeTableTemplate; + } + + /** + * + * + * @generated + */ + public TableTemplateAttributeColumn createTableTemplateAttributeColumn() { + TableTemplateAttributeColumnImpl tableTemplateAttributeColumn = new TableTemplateAttributeColumnImpl(); + return tableTemplateAttributeColumn; + } + + /** + * + * + * @generated + */ + public TableTemplateMetricColumn createTableTemplateMetricColumn() { + TableTemplateMetricColumnImpl tableTemplateMetricColumn = new TableTemplateMetricColumnImpl(); + return tableTemplateMetricColumn; + } + + /** + * + * + * @generated + */ + public TableTemplatePackage getTableTemplatePackage() { + return (TableTemplatePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static TableTemplatePackage getPackage() { + return TableTemplatePackage.eINSTANCE; + } + +} //TableTemplateFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateImpl.java new file mode 100644 index 0000000..3a24cb6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateImpl.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.sirius.manager.tableTemplate.impl; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Table Template'. + * + *+ * 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.sirius.manager.tableTemplate.TableTemplatePackage#eNS_URI + * @see #init() + * @generated + */ + private TableTemplatePackageImpl() { + super(eNS_URI, TableTemplateFactory.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 TableTemplatePackage#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 TableTemplatePackage init() { + if (isInited) return (TableTemplatePackage)EPackage.Registry.INSTANCE.getEPackage(TableTemplatePackage.eNS_URI); + + // Obtain or create and register package + TableTemplatePackageImpl theTableTemplatePackage = (TableTemplatePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TableTemplatePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TableTemplatePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + LogsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theTableTemplatePackage.createPackageContents(); + + // Initialize created meta-data + theTableTemplatePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theTableTemplatePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(TableTemplatePackage.eNS_URI, theTableTemplatePackage); + return theTableTemplatePackage; + } + + /** + * + * + * @generated + */ + public EClass getAbstractTableTemplate() { + return abstractTableTemplateEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAbstractTableTemplate_TreePath() { + return (EAttribute)abstractTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAbstractTableTemplate_TablePath() { + return (EAttribute)abstractTableTemplateEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHasColumnsTableTemplate() { + return hasColumnsTableTemplateEClass; + } + + /** + * + * + * @generated + */ + public EReference getHasColumnsTableTemplate_Columns() { + return (EReference)hasColumnsTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getLogTableTemplate() { + return logTableTemplateEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getLogTableTemplate_MinLevel() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getLogTableTemplate_MinSeverity() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getLogTableTemplate_PrefixResourcePath() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getLogTableTemplate_Duration() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getLogTableTemplate_AggregationDuration() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getTableTemplate() { + return tableTemplateEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTableTemplate_RowPath() { + return (EAttribute)tableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getIteratorTableTemplate() { + return iteratorTableTemplateEClass; + } + + /** + * + * + * @generated + */ + public EReference getIteratorTableTemplate_Iterator() { + return (EReference)iteratorTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getTimeTableTemplate() { + return timeTableTemplateEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTimeTableTemplate_Duration() { + return (EAttribute)timeTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getTableTemplateColumn() { + return tableTemplateColumnEClass; + } + + /** + * + * + * @generated + */ + public EClass getTableTemplateAttributeColumn() { + return tableTemplateAttributeColumnEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTableTemplateAttributeColumn_Path() { + return (EAttribute)tableTemplateAttributeColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getTableTemplateMetricColumn() { + return tableTemplateMetricColumnEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTableTemplateMetricColumn_Path() { + return (EAttribute)tableTemplateMetricColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTableTemplateMetricColumn_Option() { + return (EReference)tableTemplateMetricColumnEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public TableTemplateFactory getTableTemplateFactory() { + return (TableTemplateFactory)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 + abstractTableTemplateEClass = createEClass(ABSTRACT_TABLE_TEMPLATE); + createEAttribute(abstractTableTemplateEClass, ABSTRACT_TABLE_TEMPLATE__TREE_PATH); + createEAttribute(abstractTableTemplateEClass, ABSTRACT_TABLE_TEMPLATE__TABLE_PATH); + + hasColumnsTableTemplateEClass = createEClass(HAS_COLUMNS_TABLE_TEMPLATE); + createEReference(hasColumnsTableTemplateEClass, HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS); + + logTableTemplateEClass = createEClass(LOG_TABLE_TEMPLATE); + createEAttribute(logTableTemplateEClass, LOG_TABLE_TEMPLATE__MIN_LEVEL); + createEAttribute(logTableTemplateEClass, LOG_TABLE_TEMPLATE__MIN_SEVERITY); + createEAttribute(logTableTemplateEClass, LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH); + createEAttribute(logTableTemplateEClass, LOG_TABLE_TEMPLATE__DURATION); + createEAttribute(logTableTemplateEClass, LOG_TABLE_TEMPLATE__AGGREGATION_DURATION); + + tableTemplateEClass = createEClass(TABLE_TEMPLATE); + createEAttribute(tableTemplateEClass, TABLE_TEMPLATE__ROW_PATH); + + iteratorTableTemplateEClass = createEClass(ITERATOR_TABLE_TEMPLATE); + createEReference(iteratorTableTemplateEClass, ITERATOR_TABLE_TEMPLATE__ITERATOR); + + timeTableTemplateEClass = createEClass(TIME_TABLE_TEMPLATE); + createEAttribute(timeTableTemplateEClass, TIME_TABLE_TEMPLATE__DURATION); + + tableTemplateColumnEClass = createEClass(TABLE_TEMPLATE_COLUMN); + + tableTemplateAttributeColumnEClass = createEClass(TABLE_TEMPLATE_ATTRIBUTE_COLUMN); + createEAttribute(tableTemplateAttributeColumnEClass, TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH); + + tableTemplateMetricColumnEClass = createEClass(TABLE_TEMPLATE_METRIC_COLUMN); + createEAttribute(tableTemplateMetricColumnEClass, TABLE_TEMPLATE_METRIC_COLUMN__PATH); + createEReference(tableTemplateMetricColumnEClass, TABLE_TEMPLATE_METRIC_COLUMN__OPTION); + } + + /** + * + * + * @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); + LogsPackage theLogsPackage = (LogsPackage)EPackage.Registry.INSTANCE.getEPackage(LogsPackage.eNS_URI); + FunctionPackage theFunctionPackage = (FunctionPackage)EPackage.Registry.INSTANCE.getEPackage(FunctionPackage.eNS_URI); + MetricsPackage theMetricsPackage = (MetricsPackage)EPackage.Registry.INSTANCE.getEPackage(MetricsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + abstractTableTemplateEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + logTableTemplateEClass.getESuperTypes().add(this.getAbstractTableTemplate()); + tableTemplateEClass.getESuperTypes().add(this.getAbstractTableTemplate()); + tableTemplateEClass.getESuperTypes().add(this.getHasColumnsTableTemplate()); + iteratorTableTemplateEClass.getESuperTypes().add(this.getAbstractTableTemplate()); + iteratorTableTemplateEClass.getESuperTypes().add(this.getHasColumnsTableTemplate()); + timeTableTemplateEClass.getESuperTypes().add(this.getTableTemplate()); + tableTemplateColumnEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + tableTemplateAttributeColumnEClass.getESuperTypes().add(this.getTableTemplateColumn()); + tableTemplateMetricColumnEClass.getESuperTypes().add(this.getTableTemplateColumn()); + + // Initialize classes, features, and operations; add parameters + initEClass(abstractTableTemplateEClass, AbstractTableTemplate.class, "AbstractTableTemplate", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAbstractTableTemplate_TreePath(), theEcorePackage.getEString(), "treePath", null, 0, 1, AbstractTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAbstractTableTemplate_TablePath(), theEcorePackage.getEString(), "tablePath", null, 0, 1, AbstractTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hasColumnsTableTemplateEClass, HasColumnsTableTemplate.class, "HasColumnsTableTemplate", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHasColumnsTableTemplate_Columns(), this.getTableTemplateColumn(), null, "columns", null, 0, -1, HasColumnsTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(logTableTemplateEClass, LogTableTemplate.class, "LogTableTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLogTableTemplate_MinLevel(), theLogsPackage.getLogLevel(), "minLevel", null, 0, 1, LogTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLogTableTemplate_MinSeverity(), theLogsPackage.getLogSeverity(), "minSeverity", null, 0, 1, LogTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLogTableTemplate_PrefixResourcePath(), theEcorePackage.getEString(), "prefixResourcePath", null, 0, 1, LogTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLogTableTemplate_Duration(), theEcorePackage.getEString(), "duration", null, 0, 1, LogTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLogTableTemplate_AggregationDuration(), theEcorePackage.getEString(), "aggregationDuration", null, 0, 1, LogTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tableTemplateEClass, TableTemplate.class, "TableTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTableTemplate_RowPath(), theEcorePackage.getEString(), "rowPath", null, 0, 1, TableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(iteratorTableTemplateEClass, IteratorTableTemplate.class, "IteratorTableTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIteratorTableTemplate_Iterator(), theFunctionPackage.getIterator(), null, "iterator", null, 0, 1, IteratorTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(timeTableTemplateEClass, TimeTableTemplate.class, "TimeTableTemplate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTimeTableTemplate_Duration(), theEcorePackage.getEString(), "duration", null, 0, 1, TimeTableTemplate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tableTemplateColumnEClass, TableTemplateColumn.class, "TableTemplateColumn", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(tableTemplateAttributeColumnEClass, TableTemplateAttributeColumn.class, "TableTemplateAttributeColumn", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTableTemplateAttributeColumn_Path(), theEcorePackage.getEString(), "path", null, 0, 1, TableTemplateAttributeColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tableTemplateMetricColumnEClass, TableTemplateMetricColumn.class, "TableTemplateMetricColumn", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTableTemplateMetricColumn_Path(), theEcorePackage.getEString(), "path", null, 0, 1, TableTemplateMetricColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTableTemplateMetricColumn_Option(), theMetricsPackage.getMetricValueOption(), null, "option", null, 0, 1, TableTemplateMetricColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + } + + /** + * 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[] { + "GenModel", "http://www.eclipse.org/emf/2002/GenModel", + "doc", "http://openecomp.org/sirius/doc" + }); + } + +} //TableTemplatePackageImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TimeTableTemplateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TimeTableTemplateImpl.java new file mode 100644 index 0000000..942b194 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TimeTableTemplateImpl.java @@ -0,0 +1,183 @@ + +/*- + * ============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.sirius.manager.tableTemplate.impl; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate; + +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 'Time Table Template'. + * + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage
+ * @generated
+ */
+public class TableTemplateAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static TableTemplatePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public TableTemplateAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = TableTemplatePackage.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 TableTemplateSwitchtarget
.
+ *
+ *
+ * @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.sirius.manager.tableTemplate.AbstractTableTemplate Abstract Table 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.sirius.manager.tableTemplate.AbstractTableTemplate
+ * @generated
+ */
+ public Adapter createAbstractTableTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate Has Columns Table 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.sirius.manager.tableTemplate.HasColumnsTableTemplate
+ * @generated
+ */
+ public Adapter createHasColumnsTableTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate Log Table 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.sirius.manager.tableTemplate.LogTableTemplate
+ * @generated
+ */
+ public Adapter createLogTableTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate Table 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.sirius.manager.tableTemplate.TableTemplate
+ * @generated
+ */
+ public Adapter createTableTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate Iterator Table 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.sirius.manager.tableTemplate.IteratorTableTemplate
+ * @generated
+ */
+ public Adapter createIteratorTableTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate Time Table 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.sirius.manager.tableTemplate.TimeTableTemplate
+ * @generated
+ */
+ public Adapter createTimeTableTemplateAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn Column}'.
+ *
+ * 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.sirius.manager.tableTemplate.TableTemplateColumn
+ * @generated
+ */
+ public Adapter createTableTemplateColumnAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn Attribute Column}'.
+ *
+ * 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.sirius.manager.tableTemplate.TableTemplateAttributeColumn
+ * @generated
+ */
+ public Adapter createTableTemplateAttributeColumnAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn Metric Column}'.
+ *
+ * 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.sirius.manager.tableTemplate.TableTemplateMetricColumn
+ * @generated
+ */
+ public Adapter createTableTemplateMetricColumnAdapter() {
+ 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;
+ }
+
+} //TableTemplateAdapterFactory
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/util/TableTemplateSwitch.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/util/TableTemplateSwitch.java
new file mode 100644
index 0000000..20d863e
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/util/TableTemplateSwitch.java
@@ -0,0 +1,334 @@
+
+/*-
+ * ============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.sirius.manager.tableTemplate.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.sirius.manager.tableTemplate.*;
+
+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.sirius.manager.tableTemplate.TableTemplatePackage
+ * @generated
+ */
+public class TableTemplateSwitchcaseXXX
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 TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE: {
+ AbstractTableTemplate abstractTableTemplate = (AbstractTableTemplate)theEObject;
+ T result = caseAbstractTableTemplate(abstractTableTemplate);
+ if (result == null) result = caseNamedEntity(abstractTableTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE: {
+ HasColumnsTableTemplate hasColumnsTableTemplate = (HasColumnsTableTemplate)theEObject;
+ T result = caseHasColumnsTableTemplate(hasColumnsTableTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.LOG_TABLE_TEMPLATE: {
+ LogTableTemplate logTableTemplate = (LogTableTemplate)theEObject;
+ T result = caseLogTableTemplate(logTableTemplate);
+ if (result == null) result = caseAbstractTableTemplate(logTableTemplate);
+ if (result == null) result = caseNamedEntity(logTableTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.TABLE_TEMPLATE: {
+ TableTemplate tableTemplate = (TableTemplate)theEObject;
+ T result = caseTableTemplate(tableTemplate);
+ if (result == null) result = caseAbstractTableTemplate(tableTemplate);
+ if (result == null) result = caseHasColumnsTableTemplate(tableTemplate);
+ if (result == null) result = caseNamedEntity(tableTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE: {
+ IteratorTableTemplate iteratorTableTemplate = (IteratorTableTemplate)theEObject;
+ T result = caseIteratorTableTemplate(iteratorTableTemplate);
+ if (result == null) result = caseAbstractTableTemplate(iteratorTableTemplate);
+ if (result == null) result = caseHasColumnsTableTemplate(iteratorTableTemplate);
+ if (result == null) result = caseNamedEntity(iteratorTableTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.TIME_TABLE_TEMPLATE: {
+ TimeTableTemplate timeTableTemplate = (TimeTableTemplate)theEObject;
+ T result = caseTimeTableTemplate(timeTableTemplate);
+ if (result == null) result = caseTableTemplate(timeTableTemplate);
+ if (result == null) result = caseAbstractTableTemplate(timeTableTemplate);
+ if (result == null) result = caseHasColumnsTableTemplate(timeTableTemplate);
+ if (result == null) result = caseNamedEntity(timeTableTemplate);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.TABLE_TEMPLATE_COLUMN: {
+ TableTemplateColumn tableTemplateColumn = (TableTemplateColumn)theEObject;
+ T result = caseTableTemplateColumn(tableTemplateColumn);
+ if (result == null) result = caseNamedEntity(tableTemplateColumn);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN: {
+ TableTemplateAttributeColumn tableTemplateAttributeColumn = (TableTemplateAttributeColumn)theEObject;
+ T result = caseTableTemplateAttributeColumn(tableTemplateAttributeColumn);
+ if (result == null) result = caseTableTemplateColumn(tableTemplateAttributeColumn);
+ if (result == null) result = caseNamedEntity(tableTemplateAttributeColumn);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN: {
+ TableTemplateMetricColumn tableTemplateMetricColumn = (TableTemplateMetricColumn)theEObject;
+ T result = caseTableTemplateMetricColumn(tableTemplateMetricColumn);
+ if (result == null) result = caseTableTemplateColumn(tableTemplateMetricColumn);
+ if (result == null) result = caseNamedEntity(tableTemplateMetricColumn);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Abstract Table 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 'Abstract Table Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractTableTemplate(AbstractTableTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Has Columns Table 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 'Has Columns Table Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHasColumnsTableTemplate(HasColumnsTableTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Log Table 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 'Log Table Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLogTableTemplate(LogTableTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Table 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 'Table Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTableTemplate(TableTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Iterator Table 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 'Iterator Table Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIteratorTableTemplate(IteratorTableTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Time Table 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 'Time Table Template'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTimeTableTemplate(TimeTableTemplate object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Column'.
+ *
+ * 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 'Column'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTableTemplateColumn(TableTemplateColumn object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Attribute Column'.
+ *
+ * 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 'Attribute Column'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTableTemplateAttributeColumn(TableTemplateAttributeColumn object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Metric Column'.
+ *
+ * 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 Column'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTableTemplateMetricColumn(TableTemplateMetricColumn 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;
+ }
+
+} //TableTemplateSwitch
diff --git a/ncomp-sirius-manager-model/src/main/xcore/controllerModel.xcore b/ncomp-sirius-manager-model/src/main/xcore/controllerModel.xcore
new file mode 100644
index 0000000..d0086d1
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/controllerModel.xcore
@@ -0,0 +1,33 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+
+package org.openecomp.ncomp.sirius.manager.controllermodel
+
+class ControllerModel {
+ String templateDirectory
+ String pluginName
+ String name
+ String title
+ String prefix
+}
\ No newline at end of file
diff --git a/ncomp-sirius-manager-model/src/main/xcore/graph.xcore b/ncomp-sirius-manager-model/src/main/xcore/graph.xcore
new file mode 100644
index 0000000..d5ae008
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/graph.xcore
@@ -0,0 +1,53 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+@GenModel(updateClasspath="false")
+package org.openecomp.ncomp.sirius.manager.graph
+
+annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
+
+class GuiGraph {
+ contains GuiGraphNode[] nodes
+ contains GuiGraphEdge[] edges
+}
+
+class GuiGraphItem {
+ String name
+ String tooltip
+ String Url
+}
+
+class GuiGraphNode extends GuiGraphItem {
+ Integer x
+ Integer y
+ Integer h
+ Integer w
+}
+
+
+class GuiGraphEdge extends GuiGraphItem {
+ refers GuiGraphNode x
+ refers GuiGraphNode y
+}
+
+
diff --git a/ncomp-sirius-manager-model/src/main/xcore/gui.xcore b/ncomp-sirius-manager-model/src/main/xcore/gui.xcore
new file mode 100644
index 0000000..1b06bf0
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/gui.xcore
@@ -0,0 +1,182 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+// package org.openecomp.ncomp.sirius.manager.gui
+// TODO NEED TO CHANGE PACKAGE NAME BUT GUI DEPEND ON THE OLD NAME.
+package org.openecomp.ncomp.gwt.siriusportal.model
+
+import org.openecomp.ncomp.sirius.manager.graph.GuiGraph
+
+annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
+
+type Date wraps java.util.Date
+
+class GuiClientApi {
+ op GuiTree getTree()
+ op GuiObject getObject(String path)
+ op GuiTimeSerie getTimeSerie(String path, String start, String end, String duration)
+ op GuiTable getTable(String path, String start, String end)
+ op GuiHtml getHtml(String path, String start, String end)
+ op GuiGraph getGraph(String path, String start, String end)
+}
+
+class GuiTree {
+ contains GuiTreeNode[] sections
+}
+
+class GuiTreeNode {
+ String nodeName
+ String title // Pretty label, if null then use name
+ String tooltip
+ String icon
+ GuiView view
+ contains GuiTreeNode[] children
+}
+
+enum GuiView { NONE, OBJECT, TIMESERIES, BIRTREPORT, HTML, TABLE }
+
+class GuiObject {
+ contains GuiObjectValue[] values
+}
+
+class GuiNamedObject extends GuiObject {
+ String objectName
+}
+
+abstract class GuiObjectValue {
+ String valueName
+ String tooltip
+}
+
+class GuiObjectValueInteger extends GuiObjectValue {
+ int i
+}
+
+class GuiObjectValueString extends GuiObjectValue {
+ String v
+}
+
+class GuiObjectValueReference extends GuiObjectValueString {
+ String path
+}
+
+class GuiObjectValueTimeSeries extends GuiObjectValueString {
+ String path
+}
+
+class GuiObjectValueObject extends GuiObjectValue {
+ contains GuiObject v
+}
+
+class GuiObjectUnNamedList extends GuiObjectValue {
+ contains GuiObject[] objects
+}
+
+class GuiObjectNamedList extends GuiObjectValue {
+ contains GuiNamedObject[] objects
+}
+
+class GuiTimeSerie {
+ String name
+ String xAxisLabel
+ String xAxisDateFormat = "MM-dd HH:mm"
+ String yAxisLabel
+ Date start
+ Date end
+ boolean isRate
+ contains GuiTimeSerieData[] data
+}
+
+class GuiTimeSerieData {
+ Date time
+ double value
+ Double max
+ Double min
+ int num
+}
+
+class GuiTable {
+ contains GuiTableColumn[] columns
+ contains GuiTableRow[] rows
+}
+
+class GuiTableColumn {
+ String colName
+ String tooltip
+ String format
+ int width = "0" // pixels
+ boolean hidden = "false"
+ GuiTableColumnType columnType
+}
+
+enum GuiTableColumnType { STRING, DOUBLE, DATE, REF_LIST}
+
+class GuiTableRow {
+ contains GuiTableCell[] cells
+}
+
+abstract class GuiTableCell {
+ String tooltip
+}
+
+class GuiTableCellString extends GuiTableCell {
+ String value
+}
+
+class GuiTableCellDouble extends GuiTableCell {
+ double value
+ String timeseriesPath
+}
+
+class GuiTableCellDate extends GuiTableCell {
+ Date value
+}
+
+class GuiTableCellReferences extends GuiTableCell {
+ contains GuiTableCellReference[] refs
+}
+
+class GuiTableCellReference {
+ String label
+ String path
+}
+
+
+class GuiDiagram {
+ contains GuiDiagramItem[] items
+}
+
+class GuiDiagramItem {
+ String tooltip
+}
+
+class GuiDiagramRectangle extends GuiDiagramItem {
+ int x
+ int y
+ int h
+ int w
+}
+
+class GuiHtml {
+ String html
+}
diff --git a/ncomp-sirius-manager-model/src/main/xcore/property.xcore b/ncomp-sirius-manager-model/src/main/xcore/property.xcore
new file mode 100644
index 0000000..e3fe1a4
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/property.xcore
@@ -0,0 +1,51 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.sirius.manager.properties
+
+import org.openecomp.ncomp.core.NamedEntity
+
+
+annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
+annotation 'http://openecomp.org/sirius/doc' as doc
+
+abstract class AbstractProperty {}
+
+class Property extends AbstractProperty {
+ String name
+ String value
+}
+
+class ModuleProperty extends AbstractProperty, Module {
+}
+
+class Module extends NamedEntity {
+ String version
+ contains Module[] subModules
+}
+
+abstract class ModuleContainer {
+ contains Module[] modules
+}
+
+
diff --git a/ncomp-sirius-manager-model/src/main/xcore/server.xcore b/ncomp-sirius-manager-model/src/main/xcore/server.xcore
new file mode 100644
index 0000000..de3b243
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/server.xcore
@@ -0,0 +1,119 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.sirius.manager.server
+
+import org.openecomp.ncomp.core.JsonObject
+import org.openecomp.ncomp.core.RemoteContext
+import org.openecomp.ncomp.core.function.Function
+import org.openecomp.ncomp.core.function.ValuePair
+import org.openecomp.ncomp.core.logs.LogMessage
+import org.openecomp.ncomp.core.logs.LogMessageRule
+import org.openecomp.ncomp.core.metrics.MetricValueOption
+import org.openecomp.ncomp.core.metrics.Metric
+import org.openecomp.ncomp.sirius.manager.properties.AbstractProperty
+import org.openecomp.ncomp.sirius.manager.properties.ModuleContainer
+import org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate
+import org.openecomp.ncomp.core.alerts.AlertingTemplate
+import org.openecomp.ncomp.core.metrics.DoubleMetric
+import org.openecomp.ncomp.component.Component
+
+annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
+annotation 'http://openecomp.org/sirius/doc' as doc
+
+class SouthBoundApiWithProxy extends SouthBoundApi {
+ op void uploadInfo(RemoteContext cx, ManagementInfo[] info)
+
+}
+
+class SouthBoundApi {
+ @doc(description="This operation allows the clients to report log messages
+ and overall state of the client")
+ op void logs(
+ @doc(description = "This parameter is for internal use and is ignored if set by client.")
+ RemoteContext cx,
+ @doc(description = "List of log message to inform the management system about.")
+ LogMessage[] logs
+ )
+ @doc(description="This operation allows the client VMs to report metrics
+ and overall state of the VM")
+ op void metrics(
+ @doc(description = "This parameter is for internal use and is ignored if set by client.")
+ RemoteContext cx,
+ Metric[] metrics
+ )
+ @doc(description = "Used by the BSA Management Agent to report
+ property key value pairs to the BSA Controller.")
+ op void properties(
+ @doc(description = "This parameter is for internal use and is ignored if set by client.")
+ RemoteContext cx,
+ AbstractProperty[] l
+ )
+}
+
+class ManagementInfo {
+ String ip
+ contains Metric[] metrics
+ contains LogMessage[] logs
+ contains AbstractProperty[] props
+}
+
+class Response {
+ ResponseStatus status
+ String message
+}
+
+
+enum ResponseStatus { OK, WARN, ERROR }
+
+
+
+
+class LoggerInfo {
+ String name
+}
+
+class AbstractManagementServer extends SouthBoundApiWithProxy {
+ op DoubleMetric[] getValues(RemoteContext cx, String path, Long start, Long end, MetricValueOption option, boolean relativeInterval)
+ op DoubleMetric[] getValuesAll(RemoteContext cx, String path, String[] metrics, Long start, Long end, MetricValueOption option, boolean relativeInterval)
+ op LogMessage[] getMessages(RemoteContext cx, String path, Long start, Long end)
+ op LoggerInfo getRequestLogger(String userName, String action, String resourcePath, JsonObject context)
+ op ValuePair[] evaluate(String path, Function function)
+ op void update(String path, Function function)
+ contains AbstractManagementServerConfiguration configuration
+ contains Component component
+}
+
+class AbstractManagementServerConfiguration extends ModuleContainer {
+ contains LogMessageRule[] rules
+ contains unordered MetricValueOption[] metricOptions
+ contains AbstractTableTemplate[] tableTemplates
+ contains unordered AlertingTemplate[] alertTemplates
+ contains unordered Function[] functions
+}
+
+
+
+
+
+
diff --git a/ncomp-sirius-manager-model/src/main/xcore/swagger.xcore b/ncomp-sirius-manager-model/src/main/xcore/swagger.xcore
new file mode 100644
index 0000000..29b7601
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/swagger.xcore
@@ -0,0 +1,175 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.sirius.manager.swagger
+
+import org.openecomp.ncomp.core.NamedEntity
+
+annotation 'http://openecomp.org/ncomp/swagger' as swagger
+
+class SwaggerModel {
+ String swagger = "2.0"
+ contains SwaggerInfo info
+ String host
+ String basePath
+ contains SwaggerTag[] tags
+ String[] schemes
+ contains SwaggerPath[] paths
+ contains SwaggerNamedObjectType[] definitions
+ contains SwaggerExternalDocumentation externalDocs
+ contains SwaggerSecurityDefinition[] securityDefinitions
+}
+
+class SwaggerInfo {
+ String description
+ String version
+ String title
+ String termsOfService
+ contains SwaggerContact contact
+ contains SwaggerLicense license
+}
+
+class SwaggerContact {
+ String email
+}
+
+class SwaggerLicense {
+ String name
+ String url
+}
+
+class SwaggerTag {
+ String name
+ String description
+ contains SwaggerExternalDocumentation externalDocs
+}
+
+class SwaggerExternalDocumentation {
+ String description
+ String url
+}
+
+class SwaggerPath extends NamedEntity {
+ contains SwaggerOperation[] methods
+}
+
+class SwaggerOperation extends NamedEntity {
+ String[] tags
+ String summary
+ String description
+ String operationId
+ String[] consumes
+ String[] produces
+ contains SwaggerParameter[] parameters
+ contains SwaggerResponse[] responses
+ contains SwaggerSecurityObject[] security
+ boolean deprecated = "false"
+}
+
+class SwaggerParameter extends NamedEntity {
+ SwaggerParameterType in
+ contains SwaggerObjectType ^type
+}
+
+enum SwaggerParameterType {
+ path, query, header, body, form, formData
+}
+
+class SwaggerResponse extends NamedEntity {
+ String description
+ contains SwaggerObjectType schema
+ contains SwaggerSimpleObjectType[] headers
+}
+
+class SwaggerSecurityObject {
+ contains SwaggerSecurity[] list
+}
+
+class SwaggerSecurity extends NamedEntity {
+ String[] roles
+}
+
+class SwaggerSecurityDefinition extends NamedEntity {
+ String ^type
+ String authorizationUrl
+ String flow
+ SwaggerParameterType in
+// contains SwaggerSecurityDefinitionScope[] scopes
+}
+
+class SwaggerSecurityDefinitionScope extends NamedEntity {
+ String description
+}
+
+class SwaggerObjectType {
+ boolean many = "false"
+}
+
+class SwaggerReferenceObjectType extends SwaggerNamedObjectType {
+ @swagger(name="$ref")
+ boolean required
+ refers SwaggerObjectType reference
+}
+
+// object
+class SwaggerNamedObjectType extends NamedEntity, SwaggerObjectType {
+ String ^type
+ String ^default
+ String description
+ contains SwaggerXml xml
+}
+
+// object
+class SwaggerObjectClassDefinition extends SwaggerNamedObjectType {
+ String[] required
+ refers SwaggerObjectType[] allOf
+ contains SwaggerNamedObjectType[] properties
+ contains SwaggerObjectType additionalProperties
+}
+
+// string, integer, boolean
+class SwaggerSimpleObjectType extends SwaggerNamedObjectType {
+ boolean required
+ String format
+ String minimum
+ String maximum
+ String pattern
+ String example
+ SwaggerCollectionFormat collectionFormat
+}
+
+class SwaggerXml {
+ String name
+ boolean wrapped = "false"
+}
+
+class SwaggerEnumObjectType extends SwaggerSimpleObjectType {
+ String[] ^enum
+}
+
+enum SwaggerCollectionFormat {
+ csv, ssv, tsv, pipes, multi
+}
+
+
+
diff --git a/ncomp-sirius-manager-model/src/main/xcore/table.xcore b/ncomp-sirius-manager-model/src/main/xcore/table.xcore
new file mode 100644
index 0000000..ab60bbc
--- /dev/null
+++ b/ncomp-sirius-manager-model/src/main/xcore/table.xcore
@@ -0,0 +1,76 @@
+
+/*-
+ * ============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-sirius-manager-model/src/main/xcore-gen")
+
+package org.openecomp.ncomp.sirius.manager.tableTemplate
+
+import org.openecomp.ncomp.core.NamedEntity
+import org.openecomp.ncomp.core.logs.LogSeverity
+import org.openecomp.ncomp.core.function.Iterator
+import org.openecomp.ncomp.core.metrics.MetricValueOption
+import org.openecomp.ncomp.core.logs.LogLevel
+
+
+annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
+annotation 'http://openecomp.org/sirius/doc' as doc
+
+abstract class AbstractTableTemplate extends NamedEntity {
+ String treePath // e.g., /dataDepotServers/*
+ String tablePath // e.g., /reports/${/name}
+}
+
+abstract class HasColumnsTableTemplate {
+ contains TableTemplateColumn[] columns
+}
+
+class LogTableTemplate extends AbstractTableTemplate {
+ LogLevel minLevel
+ LogSeverity minSeverity
+ String prefixResourcePath // e.g., /dataDepotServers/${/name}
+ String duration
+ String aggregationDuration
+}
+
+class TableTemplate extends AbstractTableTemplate, HasColumnsTableTemplate {
+ String rowPath // e.g., /dataDepotServers/${/name}/databases/*/tables
+}
+
+class IteratorTableTemplate extends AbstractTableTemplate, HasColumnsTableTemplate {
+ contains Iterator iterator
+}
+
+class TimeTableTemplate extends TableTemplate {
+ String duration
+}
+
+abstract class TableTemplateColumn extends NamedEntity {
+}
+
+class TableTemplateAttributeColumn extends TableTemplateColumn {
+ String path // eg. /name, ../../name
+}
+
+class TableTemplateMetricColumn extends TableTemplateColumn {
+ String path // e.g. updatemanager/updateTime
+ refers MetricValueOption option
+}
+
--
cgit