diff options
author | lj1412 <lji@research.att.com> | 2017-02-14 15:11:44 +0000 |
---|---|---|
committer | lj1412 <lji@research.att.com> | 2017-02-14 15:11:46 +0000 |
commit | 033f0c30154107ddf36cd682c860e95025bf00b0 (patch) | |
tree | 4113f2053aac75642c51b11bfae9a0a608c1ed72 /ncomp-sirius-manager-model | |
parent | f6e50f2cec6365ea71696c58a96aa923eb3a1a10 (diff) |
Init ncomp.sirius.manager
Change-Id: I6691ecd21a942c96cb20cf3baa297e4b2dc7f970
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'ncomp-sirius-manager-model')
222 files changed, 54046 insertions, 0 deletions
diff --git a/ncomp-sirius-manager-model/.classpath b/ncomp-sirius-manager-model/.classpath new file mode 100644 index 0000000..217427e --- /dev/null +++ b/ncomp-sirius-manager-model/.classpath @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/main/xcore"/> + <classpathentry kind="src" path="src/main/xcore-gen"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ncomp-sirius-manager-model/.gitignore b/ncomp-sirius-manager-model/.gitignore new file mode 100644 index 0000000..b83d222 --- /dev/null +++ b/ncomp-sirius-manager-model/.gitignore @@ -0,0 +1 @@ +/target/ diff --git a/ncomp-sirius-manager-model/.project b/ncomp-sirius-manager-model/.project new file mode 100644 index 0000000..34f1e37 --- /dev/null +++ b/ncomp-sirius-manager-model/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>ncomp-sirius-manager-model</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/ncomp-sirius-manager-model/.settings/org.eclipse.jdt.core.prefs b/ncomp-sirius-manager-model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..443e085 --- /dev/null +++ b/ncomp-sirius-manager-model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/ncomp-sirius-manager-model/.settings/org.eclipse.m2e.core.prefs b/ncomp-sirius-manager-model/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/ncomp-sirius-manager-model/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/ncomp-sirius-manager-model/LICENSE.txt b/ncomp-sirius-manager-model/LICENSE.txt new file mode 100644 index 0000000..30471b5 --- /dev/null +++ b/ncomp-sirius-manager-model/LICENSE.txt @@ -0,0 +1,22 @@ + +/*- + * ============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============================================ + */ + +ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property. diff --git a/ncomp-sirius-manager-model/META-INF/MANIFEST.MF b/ncomp-sirius-manager-model/META-INF/MANIFEST.MF new file mode 100644 index 0000000..50eac37 --- /dev/null +++ b/ncomp-sirius-manager-model/META-INF/MANIFEST.MF @@ -0,0 +1,38 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: ncomp-sirius-manager-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.openecomp.ncomp.sirius.manager.controllermodel, + org.openecomp.ncomp.sirius.manager.controllermodel.impl, + org.openecomp.ncomp.sirius.manager.controllermodel.util, + org.openecomp.ncomp.sirius.manager.graph, + org.openecomp.ncomp.sirius.manager.properties, + org.openecomp.ncomp.sirius.manager.properties.impl, + org.openecomp.ncomp.sirius.manager.properties.util, + org.openecomp.ncomp.sirius.manager.server, + org.openecomp.ncomp.sirius.manager.server.impl, + org.openecomp.ncomp.sirius.manager.server.util, + org.openecomp.ncomp.sirius.manager.tableTemplate, + org.openecomp.ncomp.sirius.manager.tableTemplate.impl, + org.openecomp.ncomp.sirius.manager.tableTemplate.util, + org.openecomp.ncomp.gwt.siriusportal.model, + org.openecomp.ncomp.gwt.siriusportal.model.impl, + org.openecomp.ncomp.gwt.siriusportal.model.util, + org.openecomp.ncomp.sirius.manager.swagger, + org.openecomp.ncomp.sirius.manager.swagger.impl, + org.openecomp.ncomp.sirius.manager.swagger.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + org.eclipse.xtext;bundle-version="2.7.3", + ncomp-utils-java;bundle-version="0.1.0", + ncomp-core-types;bundle-version="0.1.0", + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-sirius-manager-model/build.properties b/ncomp-sirius-manager-model/build.properties new file mode 100644 index 0000000..d84fe30 --- /dev/null +++ b/ncomp-sirius-manager-model/build.properties @@ -0,0 +1,5 @@ +source.. = src/main/xcore/,\ + src/main/xcore-gen/ +bin.includes = META-INF/,\ + . +output.. = bin/ diff --git a/ncomp-sirius-manager-model/plugin.properties b/ncomp-sirius-manager-model/plugin.properties new file mode 100644 index 0000000..4ecd53d --- /dev/null +++ b/ncomp-sirius-manager-model/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = Graph Model +providerName = www.example.org diff --git a/ncomp-sirius-manager-model/plugin.xml b/ncomp-sirius-manager-model/plugin.xml new file mode 100644 index 0000000..e1864e7 --- /dev/null +++ b/ncomp-sirius-manager-model/plugin.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated gui --> + <package + uri="org.openecomp.ncomp.gwt.siriusportal.model" + class="org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage" + genModel="src/main/xcore/gui.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated graph --> + <package + uri="org.openecomp.ncomp.sirius.manager.graph" + class="org.openecomp.ncomp.sirius.manager.graph.GraphPackage" + genModel="src/main/xcore/graph.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated property --> + <package + uri="org.openecomp.ncomp.sirius.manager.properties" + class="org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage" + genModel="src/main/xcore/property.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated controllerModel --> + <package + uri="org.openecomp.ncomp.sirius.manager.controllermodel" + class="org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage" + genModel="src/main/xcore/controllerModel.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated table --> + <package + uri="org.openecomp.ncomp.sirius.manager.tableTemplate" + class="org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage" + genModel="src/main/xcore/table.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated server --> + <package + uri="org.openecomp.ncomp.sirius.manager.server" + class="org.openecomp.ncomp.sirius.manager.server.ServerPackage" + genModel="src/main/xcore/server.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated swagger --> + <package + uri="org.openecomp.ncomp.sirius.manager.swagger" + class="org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage" + genModel="src/main/xcore/swagger.xcore"/> + </extension> + +</plugin> diff --git a/ncomp-sirius-manager-model/pom.xml b/ncomp-sirius-manager-model/pom.xml new file mode 100644 index 0000000..66f7df3 --- /dev/null +++ b/ncomp-sirius-manager-model/pom.xml @@ -0,0 +1,18 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.openecomp.ncomp.sirius.manager</groupId> + <artifactId>ncomp-sirius-manager-model</artifactId> + <parent> + <groupId>org.openecomp.ncomp.maven</groupId> + <artifactId>ncomp-maven-xcore</artifactId> + <version>0.1.0-SNAPSHOT</version> + <relativePath>../../dcae-org.openecomp.ncomp.maven/ncomp-maven-xcore</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>org.openecomp.ncomp.core</groupId> + <artifactId>ncomp-core-model</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> +</project> diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiClientApi.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiClientApi.java new file mode 100644 index 0000000..80d2650 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiClientApi.java @@ -0,0 +1,89 @@ + +/*- + * ============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.openecomp.ncomp.sirius.manager.graph.GuiGraph; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Client Api</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiClientApi() + * @model + * @generated + */ +public interface GuiClientApi extends EObject { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model kind="operation" unique="false" + * @generated + */ + GuiTree getTree(); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" pathUnique="false" + * @generated + */ + GuiObject getObject(String path); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" pathUnique="false" startUnique="false" endUnique="false" durationUnique="false" + * @generated + */ + GuiTimeSerie getTimeSerie(String path, String start, String end, String duration); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" pathUnique="false" startUnique="false" endUnique="false" + * @generated + */ + GuiTable getTable(String path, String start, String end); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" pathUnique="false" startUnique="false" endUnique="false" + * @generated + */ + GuiHtml getHtml(String path, String start, String end); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" pathUnique="false" startUnique="false" endUnique="false" + * @generated + */ + GuiGraph getGraph(String path, String start, String end); + +} // GuiClientApi diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagram.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagram.java new file mode 100644 index 0000000..1af84bd --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagram.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Diagram</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram#getItems <em>Items</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagram() + * @model + * @generated + */ +public interface GuiDiagram extends EObject { + /** + * Returns the value of the '<em><b>Items</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Items</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Items</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagram_Items() + * @model containment="true" + * @generated + */ + EList<GuiDiagramItem> getItems(); + +} // GuiDiagram diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagramItem.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagramItem.java new file mode 100644 index 0000000..ac96d5e --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiDiagramItem.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Diagram Item</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem#getTooltip <em>Tooltip</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramItem() + * @model + * @generated + */ +public interface GuiDiagramItem extends EObject { + /** + * Returns the value of the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tooltip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tooltip</em>' 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 <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tooltip</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Diagram Rectangle</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getX <em>X</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getY <em>Y</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getH <em>H</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getW <em>W</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiDiagramRectangle() + * @model + * @generated + */ +public interface GuiDiagramRectangle extends GuiDiagramItem { + /** + * Returns the value of the '<em><b>X</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>X</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>X</em>' 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 <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>X</em>' attribute. + * @see #getX() + * @generated + */ + void setX(int value); + + /** + * Returns the value of the '<em><b>Y</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Y</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Y</em>' 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 <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Y</em>' attribute. + * @see #getY() + * @generated + */ + void setY(int value); + + /** + * Returns the value of the '<em><b>H</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>H</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>H</em>' 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 <em>H</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>H</em>' attribute. + * @see #getH() + * @generated + */ + void setH(int value); + + /** + * Returns the value of the '<em><b>W</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>W</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>W</em>' 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 <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>W</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Html</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml#getHtml <em>Html</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiHtml() + * @model + * @generated + */ +public interface GuiHtml extends EObject { + /** + * Returns the value of the '<em><b>Html</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Html</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Html</em>' 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 <em>Html</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Html</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Named Object</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject#getObjectName <em>Object Name</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiNamedObject() + * @model + * @generated + */ +public interface GuiNamedObject extends GuiObject { + /** + * Returns the value of the '<em><b>Object Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Object Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Object Name</em>' 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 <em>Object Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Object Name</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObject#getValues <em>Values</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObject() + * @model + * @generated + */ +public interface GuiObject extends EObject { + /** + * Returns the value of the '<em><b>Values</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Values</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Values</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObject_Values() + * @model containment="true" + * @generated + */ + EList<GuiObjectValue> getValues(); + +} // GuiObject diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectNamedList.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectNamedList.java new file mode 100644 index 0000000..35295c5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectNamedList.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Named List</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList#getObjects <em>Objects</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectNamedList() + * @model + * @generated + */ +public interface GuiObjectNamedList extends GuiObjectValue { + /** + * Returns the value of the '<em><b>Objects</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Objects</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Objects</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectNamedList_Objects() + * @model containment="true" + * @generated + */ + EList<GuiNamedObject> getObjects(); + +} // GuiObjectNamedList diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectUnNamedList.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectUnNamedList.java new file mode 100644 index 0000000..11500a5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectUnNamedList.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Un Named List</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList#getObjects <em>Objects</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectUnNamedList() + * @model + * @generated + */ +public interface GuiObjectUnNamedList extends GuiObjectValue { + /** + * Returns the value of the '<em><b>Objects</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObject}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Objects</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Objects</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectUnNamedList_Objects() + * @model containment="true" + * @generated + */ + EList<GuiObject> getObjects(); + +} // GuiObjectUnNamedList diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValue.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValue.java new file mode 100644 index 0000000..bf85426 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiObjectValue.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Value</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getValueName <em>Value Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getTooltip <em>Tooltip</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValue() + * @model abstract="true" + * @generated + */ +public interface GuiObjectValue extends EObject { + /** + * Returns the value of the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value Name</em>' 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 <em>Value Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value Name</em>' attribute. + * @see #getValueName() + * @generated + */ + void setValueName(String value); + + /** + * Returns the value of the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tooltip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tooltip</em>' 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 <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tooltip</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Value Integer</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger#getI <em>I</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueInteger() + * @model + * @generated + */ +public interface GuiObjectValueInteger extends GuiObjectValue { + /** + * Returns the value of the '<em><b>I</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>I</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>I</em>' 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 <em>I</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>I</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Value Object</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject#getV <em>V</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueObject() + * @model + * @generated + */ +public interface GuiObjectValueObject extends GuiObjectValue { + /** + * Returns the value of the '<em><b>V</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>V</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>V</em>' 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 <em>V</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>V</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Value Reference</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueReference() + * @model + * @generated + */ +public interface GuiObjectValueReference extends GuiObjectValueString { + /** + * Returns the value of the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Path</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Value String</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString#getV <em>V</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueString() + * @model + * @generated + */ +public interface GuiObjectValueString extends GuiObjectValue { + /** + * Returns the value of the '<em><b>V</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>V</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>V</em>' 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 <em>V</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>V</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Object Value Time Series</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiObjectValueTimeSeries() + * @model + * @generated + */ +public interface GuiObjectValueTimeSeries extends GuiObjectValueString { + /** + * Returns the value of the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Path</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTable#getColumns <em>Columns</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTable#getRows <em>Rows</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTable() + * @model + * @generated + */ +public interface GuiTable extends EObject { + /** + * Returns the value of the '<em><b>Columns</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Columns</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Columns</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTable_Columns() + * @model containment="true" + * @generated + */ + EList<GuiTableColumn> getColumns(); + + /** + * Returns the value of the '<em><b>Rows</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rows</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rows</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTable_Rows() + * @model containment="true" + * @generated + */ + EList<GuiTableRow> getRows(); + +} // GuiTable diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCell.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCell.java new file mode 100644 index 0000000..1812f3e --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCell.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Cell</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell#getTooltip <em>Tooltip</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCell() + * @model abstract="true" + * @generated + */ +public interface GuiTableCell extends EObject { + /** + * Returns the value of the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tooltip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tooltip</em>' 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 <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tooltip</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Cell Date</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellDate() + * @model + * @generated + */ +public interface GuiTableCellDate extends GuiTableCell { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' 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 <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Cell Double</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getValue <em>Value</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getTimeseriesPath <em>Timeseries Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellDouble() + * @model + * @generated + */ +public interface GuiTableCellDouble extends GuiTableCell { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' 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 <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(double value); + + /** + * Returns the value of the '<em><b>Timeseries Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Timeseries Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Timeseries Path</em>' 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 <em>Timeseries Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Timeseries Path</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Cell Reference</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getLabel <em>Label</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellReference() + * @model + * @generated + */ +public interface GuiTableCellReference extends EObject { + /** + * Returns the value of the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Label</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Label</em>' 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 <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Label</em>' attribute. + * @see #getLabel() + * @generated + */ + void setLabel(String value); + + /** + * Returns the value of the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Path</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Cell References</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences#getRefs <em>Refs</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellReferences() + * @model + * @generated + */ +public interface GuiTableCellReferences extends GuiTableCell { + /** + * Returns the value of the '<em><b>Refs</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Refs</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Refs</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellReferences_Refs() + * @model containment="true" + * @generated + */ + EList<GuiTableCellReference> getRefs(); + +} // GuiTableCellReferences diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellString.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellString.java new file mode 100644 index 0000000..0a5dd76 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableCellString.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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Cell String</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableCellString() + * @model + * @generated + */ +public interface GuiTableCellString extends GuiTableCell { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' 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 <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Column</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColName <em>Col Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getTooltip <em>Tooltip</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getFormat <em>Format</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getWidth <em>Width</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#isHidden <em>Hidden</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColumnType <em>Column Type</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumn() + * @model + * @generated + */ +public interface GuiTableColumn extends EObject { + /** + * Returns the value of the '<em><b>Col Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Col Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Col Name</em>' 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 <em>Col Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Col Name</em>' attribute. + * @see #getColName() + * @generated + */ + void setColName(String value); + + /** + * Returns the value of the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tooltip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tooltip</em>' 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 <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tooltip</em>' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + + /** + * Returns the value of the '<em><b>Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Format</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Format</em>' 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 <em>Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Format</em>' attribute. + * @see #getFormat() + * @generated + */ + void setFormat(String value); + + /** + * Returns the value of the '<em><b>Width</b></em>' attribute. + * The default value is <code>"0"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Width</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Width</em>' 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 <em>Width</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Width</em>' attribute. + * @see #getWidth() + * @generated + */ + void setWidth(int value); + + /** + * Returns the value of the '<em><b>Hidden</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Hidden</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Hidden</em>' 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 <em>Hidden</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Hidden</em>' attribute. + * @see #isHidden() + * @generated + */ + void setHidden(boolean value); + + /** + * Returns the value of the '<em><b>Column Type</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Type</em>' 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 <em>Column Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column Type</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Gui Table Column Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableColumnType() + * @model + * @generated + */ +public enum GuiTableColumnType implements Enumerator { + /** + * The '<em><b>STRING</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #STRING_VALUE + * @generated + * @ordered + */ + STRING(0, "STRING", "STRING"), + + /** + * The '<em><b>DOUBLE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #DOUBLE_VALUE + * @generated + * @ordered + */ + DOUBLE(0, "DOUBLE", "DOUBLE"), + + /** + * The '<em><b>DATE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #DATE_VALUE + * @generated + * @ordered + */ + DATE(0, "DATE", "DATE"), + + /** + * The '<em><b>REF LIST</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #REF_LIST_VALUE + * @generated + * @ordered + */ + REF_LIST(0, "REF_LIST", "REF_LIST"); + + /** + * The '<em><b>STRING</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>STRING</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #STRING + * @model + * @generated + * @ordered + */ + public static final int STRING_VALUE = 0; + + /** + * The '<em><b>DOUBLE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>DOUBLE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #DOUBLE + * @model + * @generated + * @ordered + */ + public static final int DOUBLE_VALUE = 0; + + /** + * The '<em><b>DATE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>DATE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #DATE + * @model + * @generated + * @ordered + */ + public static final int DATE_VALUE = 0; + + /** + * The '<em><b>REF LIST</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>REF LIST</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #REF_LIST + * @model + * @generated + * @ordered + */ + public static final int REF_LIST_VALUE = 0; + + /** + * An array of all the '<em><b>Gui Table Column Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final GuiTableColumnType[] VALUES_ARRAY = + new GuiTableColumnType[] { + STRING, + DOUBLE, + DATE, + REF_LIST, + }; + + /** + * A public read-only list of all the '<em><b>Gui Table Column Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<GuiTableColumnType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Gui Table Column Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GuiTableColumnType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + GuiTableColumnType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Gui Table Column Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GuiTableColumnType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + GuiTableColumnType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Gui Table Column Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GuiTableColumnType get(int value) { + switch (value) { + case STRING_VALUE: return STRING; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private GuiTableColumnType(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //GuiTableColumnType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableRow.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableRow.java new file mode 100644 index 0000000..7a00276 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTableRow.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Table Row</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow#getCells <em>Cells</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableRow() + * @model + * @generated + */ +public interface GuiTableRow extends EObject { + /** + * Returns the value of the '<em><b>Cells</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cells</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cells</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTableRow_Cells() + * @model containment="true" + * @generated + */ + EList<GuiTableCell> getCells(); + +} // GuiTableRow diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTimeSerie.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTimeSerie.java new file mode 100644 index 0000000..7a2ddbe --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTimeSerie.java @@ -0,0 +1,255 @@ + +/*- + * ============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; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Time Serie</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisLabel <em>XAxis Label</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisDateFormat <em>XAxis Date Format</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getYAxisLabel <em>YAxis Label</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getStart <em>Start</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getEnd <em>End</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#isIsRate <em>Is Rate</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getData <em>Data</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie() + * @model + * @generated + */ +public interface GuiTimeSerie extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>XAxis Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>XAxis Label</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>XAxis Label</em>' 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 <em>XAxis Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>XAxis Label</em>' attribute. + * @see #getXAxisLabel() + * @generated + */ + void setXAxisLabel(String value); + + /** + * Returns the value of the '<em><b>XAxis Date Format</b></em>' attribute. + * The default value is <code>"MM-dd HH:mm"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>XAxis Date Format</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>XAxis Date Format</em>' 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 <em>XAxis Date Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>XAxis Date Format</em>' attribute. + * @see #getXAxisDateFormat() + * @generated + */ + void setXAxisDateFormat(String value); + + /** + * Returns the value of the '<em><b>YAxis Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>YAxis Label</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>YAxis Label</em>' 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 <em>YAxis Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>YAxis Label</em>' attribute. + * @see #getYAxisLabel() + * @generated + */ + void setYAxisLabel(String value); + + /** + * Returns the value of the '<em><b>Start</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Start</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Start</em>' 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 <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Start</em>' attribute. + * @see #getStart() + * @generated + */ + void setStart(Date value); + + /** + * Returns the value of the '<em><b>End</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>End</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>End</em>' 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 <em>End</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>End</em>' attribute. + * @see #getEnd() + * @generated + */ + void setEnd(Date value); + + /** + * Returns the value of the '<em><b>Is Rate</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Is Rate</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Is Rate</em>' 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 <em>Is Rate</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Is Rate</em>' attribute. + * @see #isIsRate() + * @generated + */ + void setIsRate(boolean value); + + /** + * Returns the value of the '<em><b>Data</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Data</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Data</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerie_Data() + * @model containment="true" + * @generated + */ + EList<GuiTimeSerieData> getData(); + +} // GuiTimeSerie diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTimeSerieData.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTimeSerieData.java new file mode 100644 index 0000000..18b54cd --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTimeSerieData.java @@ -0,0 +1,181 @@ + +/*- + * ============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; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Time Serie Data</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getTime <em>Time</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getValue <em>Value</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMax <em>Max</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMin <em>Min</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getNum <em>Num</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTimeSerieData() + * @model + * @generated + */ +public interface GuiTimeSerieData extends EObject { + /** + * Returns the value of the '<em><b>Time</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Time</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Time</em>' 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 <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Time</em>' attribute. + * @see #getTime() + * @generated + */ + void setTime(Date value); + + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' 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 <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(double value); + + /** + * Returns the value of the '<em><b>Max</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Max</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Max</em>' 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 <em>Max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Max</em>' attribute. + * @see #getMax() + * @generated + */ + void setMax(Double value); + + /** + * Returns the value of the '<em><b>Min</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Min</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Min</em>' 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 <em>Min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Min</em>' attribute. + * @see #getMin() + * @generated + */ + void setMin(Double value); + + /** + * Returns the value of the '<em><b>Num</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Num</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Num</em>' 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 <em>Num</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Num</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Tree</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTree#getSections <em>Sections</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTree() + * @model + * @generated + */ +public interface GuiTree extends EObject { + /** + * Returns the value of the '<em><b>Sections</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sections</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sections</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTree_Sections() + * @model containment="true" + * @generated + */ + EList<GuiTreeNode> getSections(); + +} // GuiTree diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTreeNode.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTreeNode.java new file mode 100644 index 0000000..0a2149e --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiTreeNode.java @@ -0,0 +1,201 @@ + +/*- + * ============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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Tree Node</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getNodeName <em>Node Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTooltip <em>Tooltip</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getIcon <em>Icon</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getView <em>View</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getChildren <em>Children</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode() + * @model + * @generated + */ +public interface GuiTreeNode extends EObject { + /** + * Returns the value of the '<em><b>Node Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Node Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Node Name</em>' 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 <em>Node Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Node Name</em>' attribute. + * @see #getNodeName() + * @generated + */ + void setNodeName(String value); + + /** + * Returns the value of the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Title</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Title</em>' 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 <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Title</em>' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tooltip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tooltip</em>' 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 <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tooltip</em>' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + + /** + * Returns the value of the '<em><b>Icon</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Icon</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Icon</em>' 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 <em>Icon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Icon</em>' attribute. + * @see #getIcon() + * @generated + */ + void setIcon(String value); + + /** + * Returns the value of the '<em><b>View</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiView}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>View</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>View</em>' 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 <em>View</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>View</em>' attribute. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiView + * @see #getView() + * @generated + */ + void setView(GuiView value); + + /** + * Returns the value of the '<em><b>Children</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Children</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Children</em>' containment reference list. + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiTreeNode_Children() + * @model containment="true" + * @generated + */ + EList<GuiTreeNode> getChildren(); + +} // GuiTreeNode diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiView.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiView.java new file mode 100644 index 0000000..2bc0f15 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/GuiView.java @@ -0,0 +1,332 @@ + +/*- + * ============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; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Gui View</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage#getGuiView() + * @model + * @generated + */ +public enum GuiView implements Enumerator { + /** + * The '<em><b>NONE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #NONE_VALUE + * @generated + * @ordered + */ + NONE(0, "NONE", "NONE"), + + /** + * The '<em><b>OBJECT</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #OBJECT_VALUE + * @generated + * @ordered + */ + OBJECT(0, "OBJECT", "OBJECT"), + + /** + * The '<em><b>TIMESERIES</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TIMESERIES_VALUE + * @generated + * @ordered + */ + TIMESERIES(0, "TIMESERIES", "TIMESERIES"), + + /** + * The '<em><b>BIRTREPORT</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #BIRTREPORT_VALUE + * @generated + * @ordered + */ + BIRTREPORT(0, "BIRTREPORT", "BIRTREPORT"), + + /** + * The '<em><b>HTML</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #HTML_VALUE + * @generated + * @ordered + */ + HTML(0, "HTML", "HTML"), + + /** + * The '<em><b>TABLE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TABLE_VALUE + * @generated + * @ordered + */ + TABLE(0, "TABLE", "TABLE"); + + /** + * The '<em><b>NONE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>NONE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #NONE + * @model + * @generated + * @ordered + */ + public static final int NONE_VALUE = 0; + + /** + * The '<em><b>OBJECT</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>OBJECT</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #OBJECT + * @model + * @generated + * @ordered + */ + public static final int OBJECT_VALUE = 0; + + /** + * The '<em><b>TIMESERIES</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TIMESERIES</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TIMESERIES + * @model + * @generated + * @ordered + */ + public static final int TIMESERIES_VALUE = 0; + + /** + * The '<em><b>BIRTREPORT</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>BIRTREPORT</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #BIRTREPORT + * @model + * @generated + * @ordered + */ + public static final int BIRTREPORT_VALUE = 0; + + /** + * The '<em><b>HTML</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>HTML</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #HTML + * @model + * @generated + * @ordered + */ + public static final int HTML_VALUE = 0; + + /** + * The '<em><b>TABLE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TABLE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TABLE + * @model + * @generated + * @ordered + */ + public static final int TABLE_VALUE = 0; + + /** + * An array of all the '<em><b>Gui View</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final GuiView[] VALUES_ARRAY = + new GuiView[] { + NONE, + OBJECT, + TIMESERIES, + BIRTREPORT, + HTML, + TABLE, + }; + + /** + * A public read-only list of all the '<em><b>Gui View</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<GuiView> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Gui View</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GuiView get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + GuiView result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Gui View</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GuiView getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + GuiView result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Gui View</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GuiView get(int value) { + switch (value) { + case NONE_VALUE: return NONE; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private GuiView(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //GuiView diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/ModelFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/ModelFactory.java new file mode 100644 index 0000000..7dd1b62 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/ModelFactory.java @@ -0,0 +1,288 @@ + +/*- + * ============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.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage + * @generated + */ +public interface ModelFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + ModelFactory eINSTANCE = org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Gui Client Api</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Client Api</em>'. + * @generated + */ + GuiClientApi createGuiClientApi(); + + /** + * Returns a new object of class '<em>Gui Tree</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Tree</em>'. + * @generated + */ + GuiTree createGuiTree(); + + /** + * Returns a new object of class '<em>Gui Tree Node</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Tree Node</em>'. + * @generated + */ + GuiTreeNode createGuiTreeNode(); + + /** + * Returns a new object of class '<em>Gui Object</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object</em>'. + * @generated + */ + GuiObject createGuiObject(); + + /** + * Returns a new object of class '<em>Gui Named Object</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Named Object</em>'. + * @generated + */ + GuiNamedObject createGuiNamedObject(); + + /** + * Returns a new object of class '<em>Gui Object Value Integer</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Value Integer</em>'. + * @generated + */ + GuiObjectValueInteger createGuiObjectValueInteger(); + + /** + * Returns a new object of class '<em>Gui Object Value String</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Value String</em>'. + * @generated + */ + GuiObjectValueString createGuiObjectValueString(); + + /** + * Returns a new object of class '<em>Gui Object Value Reference</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Value Reference</em>'. + * @generated + */ + GuiObjectValueReference createGuiObjectValueReference(); + + /** + * Returns a new object of class '<em>Gui Object Value Time Series</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Value Time Series</em>'. + * @generated + */ + GuiObjectValueTimeSeries createGuiObjectValueTimeSeries(); + + /** + * Returns a new object of class '<em>Gui Object Value Object</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Value Object</em>'. + * @generated + */ + GuiObjectValueObject createGuiObjectValueObject(); + + /** + * Returns a new object of class '<em>Gui Object Un Named List</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Un Named List</em>'. + * @generated + */ + GuiObjectUnNamedList createGuiObjectUnNamedList(); + + /** + * Returns a new object of class '<em>Gui Object Named List</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Object Named List</em>'. + * @generated + */ + GuiObjectNamedList createGuiObjectNamedList(); + + /** + * Returns a new object of class '<em>Gui Time Serie</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Time Serie</em>'. + * @generated + */ + GuiTimeSerie createGuiTimeSerie(); + + /** + * Returns a new object of class '<em>Gui Time Serie Data</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Time Serie Data</em>'. + * @generated + */ + GuiTimeSerieData createGuiTimeSerieData(); + + /** + * Returns a new object of class '<em>Gui Table</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table</em>'. + * @generated + */ + GuiTable createGuiTable(); + + /** + * Returns a new object of class '<em>Gui Table Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Column</em>'. + * @generated + */ + GuiTableColumn createGuiTableColumn(); + + /** + * Returns a new object of class '<em>Gui Table Row</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Row</em>'. + * @generated + */ + GuiTableRow createGuiTableRow(); + + /** + * Returns a new object of class '<em>Gui Table Cell String</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Cell String</em>'. + * @generated + */ + GuiTableCellString createGuiTableCellString(); + + /** + * Returns a new object of class '<em>Gui Table Cell Double</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Cell Double</em>'. + * @generated + */ + GuiTableCellDouble createGuiTableCellDouble(); + + /** + * Returns a new object of class '<em>Gui Table Cell Date</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Cell Date</em>'. + * @generated + */ + GuiTableCellDate createGuiTableCellDate(); + + /** + * Returns a new object of class '<em>Gui Table Cell References</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Cell References</em>'. + * @generated + */ + GuiTableCellReferences createGuiTableCellReferences(); + + /** + * Returns a new object of class '<em>Gui Table Cell Reference</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Table Cell Reference</em>'. + * @generated + */ + GuiTableCellReference createGuiTableCellReference(); + + /** + * Returns a new object of class '<em>Gui Diagram</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Diagram</em>'. + * @generated + */ + GuiDiagram createGuiDiagram(); + + /** + * Returns a new object of class '<em>Gui Diagram Item</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Diagram Item</em>'. + * @generated + */ + GuiDiagramItem createGuiDiagramItem(); + + /** + * Returns a new object of class '<em>Gui Diagram Rectangle</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Diagram Rectangle</em>'. + * @generated + */ + GuiDiagramRectangle createGuiDiagramRectangle(); + + /** + * Returns a new object of class '<em>Gui Html</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Html</em>'. + * @generated + */ + GuiHtml createGuiHtml(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + ModelPackage getModelPackage(); + +} //ModelFactory diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/ModelPackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/ModelPackage.java new file mode 100644 index 0000000..b03f245 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/ModelPackage.java @@ -0,0 +1,3446 @@ + +/*- + * ============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.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.gwt.siriusportal'" + * annotation="http://www.eclipse.org/emf/2011/Xcore GenModel='http://www.eclipse.org/emf/2002/GenModel'" + * @generated + */ +public interface ModelPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "model"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.gwt.siriusportal.model"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "model"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + ModelPackage eINSTANCE = org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiClientApiImpl <em>Gui Client Api</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiClientApiImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiClientApi() + * @generated + */ + int GUI_CLIENT_API = 0; + + /** + * The number of structural features of the '<em>Gui Client Api</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API_FEATURE_COUNT = 0; + + /** + * The operation id for the '<em>Get Tree</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API___GET_TREE = 0; + + /** + * The operation id for the '<em>Get Object</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API___GET_OBJECT__STRING = 1; + + /** + * The operation id for the '<em>Get Time Serie</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API___GET_TIME_SERIE__STRING_STRING_STRING_STRING = 2; + + /** + * The operation id for the '<em>Get Table</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API___GET_TABLE__STRING_STRING_STRING = 3; + + /** + * The operation id for the '<em>Get Html</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API___GET_HTML__STRING_STRING_STRING = 4; + + /** + * The operation id for the '<em>Get Graph</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API___GET_GRAPH__STRING_STRING_STRING = 5; + + /** + * The number of operations of the '<em>Gui Client Api</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_CLIENT_API_OPERATION_COUNT = 6; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeImpl <em>Gui Tree</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTree() + * @generated + */ + int GUI_TREE = 1; + + /** + * The feature id for the '<em><b>Sections</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE__SECTIONS = 0; + + /** + * The number of structural features of the '<em>Gui Tree</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Tree</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl <em>Gui Tree Node</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTreeNode() + * @generated + */ + int GUI_TREE_NODE = 2; + + /** + * The feature id for the '<em><b>Node Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE__NODE_NAME = 0; + + /** + * The feature id for the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE__TITLE = 1; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE__TOOLTIP = 2; + + /** + * The feature id for the '<em><b>Icon</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE__ICON = 3; + + /** + * The feature id for the '<em><b>View</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE__VIEW = 4; + + /** + * The feature id for the '<em><b>Children</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE__CHILDREN = 5; + + /** + * The number of structural features of the '<em>Gui Tree Node</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE_FEATURE_COUNT = 6; + + /** + * The number of operations of the '<em>Gui Tree Node</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TREE_NODE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectImpl <em>Gui Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObject() + * @generated + */ + int GUI_OBJECT = 3; + + /** + * The feature id for the '<em><b>Values</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT__VALUES = 0; + + /** + * The number of structural features of the '<em>Gui Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiNamedObjectImpl <em>Gui Named Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiNamedObjectImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiNamedObject() + * @generated + */ + int GUI_NAMED_OBJECT = 4; + + /** + * The feature id for the '<em><b>Values</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_NAMED_OBJECT__VALUES = GUI_OBJECT__VALUES; + + /** + * The feature id for the '<em><b>Object Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_NAMED_OBJECT__OBJECT_NAME = GUI_OBJECT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Named Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_NAMED_OBJECT_FEATURE_COUNT = GUI_OBJECT_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Named Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_NAMED_OBJECT_OPERATION_COUNT = GUI_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueImpl <em>Gui Object Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValue() + * @generated + */ + int GUI_OBJECT_VALUE = 5; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE__VALUE_NAME = 0; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE__TOOLTIP = 1; + + /** + * The number of structural features of the '<em>Gui Object Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Gui Object Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueIntegerImpl <em>Gui Object Value Integer</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueIntegerImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueInteger() + * @generated + */ + int GUI_OBJECT_VALUE_INTEGER = 6; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_INTEGER__VALUE_NAME = GUI_OBJECT_VALUE__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_INTEGER__TOOLTIP = GUI_OBJECT_VALUE__TOOLTIP; + + /** + * The feature id for the '<em><b>I</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_INTEGER__I = GUI_OBJECT_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Value Integer</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_INTEGER_FEATURE_COUNT = GUI_OBJECT_VALUE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Value Integer</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_INTEGER_OPERATION_COUNT = GUI_OBJECT_VALUE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueStringImpl <em>Gui Object Value String</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueStringImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueString() + * @generated + */ + int GUI_OBJECT_VALUE_STRING = 7; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_STRING__VALUE_NAME = GUI_OBJECT_VALUE__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_STRING__TOOLTIP = GUI_OBJECT_VALUE__TOOLTIP; + + /** + * The feature id for the '<em><b>V</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_STRING__V = GUI_OBJECT_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Value String</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_STRING_FEATURE_COUNT = GUI_OBJECT_VALUE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Value String</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_STRING_OPERATION_COUNT = GUI_OBJECT_VALUE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueReferenceImpl <em>Gui Object Value Reference</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueReferenceImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueReference() + * @generated + */ + int GUI_OBJECT_VALUE_REFERENCE = 8; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_REFERENCE__VALUE_NAME = GUI_OBJECT_VALUE_STRING__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_REFERENCE__TOOLTIP = GUI_OBJECT_VALUE_STRING__TOOLTIP; + + /** + * The feature id for the '<em><b>V</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_REFERENCE__V = GUI_OBJECT_VALUE_STRING__V; + + /** + * The feature id for the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_REFERENCE__PATH = GUI_OBJECT_VALUE_STRING_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Value Reference</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_REFERENCE_FEATURE_COUNT = GUI_OBJECT_VALUE_STRING_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Value Reference</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_REFERENCE_OPERATION_COUNT = GUI_OBJECT_VALUE_STRING_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueTimeSeriesImpl <em>Gui Object Value Time Series</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueTimeSeriesImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueTimeSeries() + * @generated + */ + int GUI_OBJECT_VALUE_TIME_SERIES = 9; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_TIME_SERIES__VALUE_NAME = GUI_OBJECT_VALUE_STRING__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_TIME_SERIES__TOOLTIP = GUI_OBJECT_VALUE_STRING__TOOLTIP; + + /** + * The feature id for the '<em><b>V</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_TIME_SERIES__V = GUI_OBJECT_VALUE_STRING__V; + + /** + * The feature id for the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_TIME_SERIES__PATH = GUI_OBJECT_VALUE_STRING_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Value Time Series</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_TIME_SERIES_FEATURE_COUNT = GUI_OBJECT_VALUE_STRING_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Value Time Series</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_TIME_SERIES_OPERATION_COUNT = GUI_OBJECT_VALUE_STRING_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueObjectImpl <em>Gui Object Value Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueObjectImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueObject() + * @generated + */ + int GUI_OBJECT_VALUE_OBJECT = 10; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_OBJECT__VALUE_NAME = GUI_OBJECT_VALUE__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_OBJECT__TOOLTIP = GUI_OBJECT_VALUE__TOOLTIP; + + /** + * The feature id for the '<em><b>V</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_OBJECT__V = GUI_OBJECT_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Value Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_OBJECT_FEATURE_COUNT = GUI_OBJECT_VALUE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Value Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_VALUE_OBJECT_OPERATION_COUNT = GUI_OBJECT_VALUE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectUnNamedListImpl <em>Gui Object Un Named List</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectUnNamedListImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectUnNamedList() + * @generated + */ + int GUI_OBJECT_UN_NAMED_LIST = 11; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_UN_NAMED_LIST__VALUE_NAME = GUI_OBJECT_VALUE__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_UN_NAMED_LIST__TOOLTIP = GUI_OBJECT_VALUE__TOOLTIP; + + /** + * The feature id for the '<em><b>Objects</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_UN_NAMED_LIST__OBJECTS = GUI_OBJECT_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Un Named List</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_UN_NAMED_LIST_FEATURE_COUNT = GUI_OBJECT_VALUE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Un Named List</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_UN_NAMED_LIST_OPERATION_COUNT = GUI_OBJECT_VALUE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectNamedListImpl <em>Gui Object Named List</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectNamedListImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectNamedList() + * @generated + */ + int GUI_OBJECT_NAMED_LIST = 12; + + /** + * The feature id for the '<em><b>Value Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_NAMED_LIST__VALUE_NAME = GUI_OBJECT_VALUE__VALUE_NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_NAMED_LIST__TOOLTIP = GUI_OBJECT_VALUE__TOOLTIP; + + /** + * The feature id for the '<em><b>Objects</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_NAMED_LIST__OBJECTS = GUI_OBJECT_VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Object Named List</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_NAMED_LIST_FEATURE_COUNT = GUI_OBJECT_VALUE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Object Named List</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_OBJECT_NAMED_LIST_OPERATION_COUNT = GUI_OBJECT_VALUE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl <em>Gui Time Serie</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTimeSerie() + * @generated + */ + int GUI_TIME_SERIE = 13; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__NAME = 0; + + /** + * The feature id for the '<em><b>XAxis Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__XAXIS_LABEL = 1; + + /** + * The feature id for the '<em><b>XAxis Date Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__XAXIS_DATE_FORMAT = 2; + + /** + * The feature id for the '<em><b>YAxis Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__YAXIS_LABEL = 3; + + /** + * The feature id for the '<em><b>Start</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__START = 4; + + /** + * The feature id for the '<em><b>End</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__END = 5; + + /** + * The feature id for the '<em><b>Is Rate</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__IS_RATE = 6; + + /** + * The feature id for the '<em><b>Data</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE__DATA = 7; + + /** + * The number of structural features of the '<em>Gui Time Serie</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_FEATURE_COUNT = 8; + + /** + * The number of operations of the '<em>Gui Time Serie</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl <em>Gui Time Serie Data</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTimeSerieData() + * @generated + */ + int GUI_TIME_SERIE_DATA = 14; + + /** + * The feature id for the '<em><b>Time</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA__TIME = 0; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA__VALUE = 1; + + /** + * The feature id for the '<em><b>Max</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA__MAX = 2; + + /** + * The feature id for the '<em><b>Min</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA__MIN = 3; + + /** + * The feature id for the '<em><b>Num</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA__NUM = 4; + + /** + * The number of structural features of the '<em>Gui Time Serie Data</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA_FEATURE_COUNT = 5; + + /** + * The number of operations of the '<em>Gui Time Serie Data</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TIME_SERIE_DATA_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableImpl <em>Gui Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTable() + * @generated + */ + int GUI_TABLE = 15; + + /** + * The feature id for the '<em><b>Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE__COLUMNS = 0; + + /** + * The feature id for the '<em><b>Rows</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE__ROWS = 1; + + /** + * The number of structural features of the '<em>Gui Table</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Gui Table</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl <em>Gui Table Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableColumn() + * @generated + */ + int GUI_TABLE_COLUMN = 16; + + /** + * The feature id for the '<em><b>Col Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN__COL_NAME = 0; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN__TOOLTIP = 1; + + /** + * The feature id for the '<em><b>Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN__FORMAT = 2; + + /** + * The feature id for the '<em><b>Width</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN__WIDTH = 3; + + /** + * The feature id for the '<em><b>Hidden</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN__HIDDEN = 4; + + /** + * The feature id for the '<em><b>Column Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN__COLUMN_TYPE = 5; + + /** + * The number of structural features of the '<em>Gui Table Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN_FEATURE_COUNT = 6; + + /** + * The number of operations of the '<em>Gui Table Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_COLUMN_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableRowImpl <em>Gui Table Row</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableRowImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableRow() + * @generated + */ + int GUI_TABLE_ROW = 17; + + /** + * The feature id for the '<em><b>Cells</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_ROW__CELLS = 0; + + /** + * The number of structural features of the '<em>Gui Table Row</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_ROW_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Table Row</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_ROW_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellImpl <em>Gui Table Cell</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCell() + * @generated + */ + int GUI_TABLE_CELL = 18; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL__TOOLTIP = 0; + + /** + * The number of structural features of the '<em>Gui Table Cell</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Table Cell</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellStringImpl <em>Gui Table Cell String</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellStringImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellString() + * @generated + */ + int GUI_TABLE_CELL_STRING = 19; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_STRING__TOOLTIP = GUI_TABLE_CELL__TOOLTIP; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_STRING__VALUE = GUI_TABLE_CELL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Table Cell String</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_STRING_FEATURE_COUNT = GUI_TABLE_CELL_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Table Cell String</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_STRING_OPERATION_COUNT = GUI_TABLE_CELL_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDoubleImpl <em>Gui Table Cell Double</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDoubleImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellDouble() + * @generated + */ + int GUI_TABLE_CELL_DOUBLE = 20; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DOUBLE__TOOLTIP = GUI_TABLE_CELL__TOOLTIP; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DOUBLE__VALUE = GUI_TABLE_CELL_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Timeseries Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH = GUI_TABLE_CELL_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Gui Table Cell Double</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DOUBLE_FEATURE_COUNT = GUI_TABLE_CELL_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Gui Table Cell Double</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DOUBLE_OPERATION_COUNT = GUI_TABLE_CELL_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDateImpl <em>Gui Table Cell Date</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDateImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellDate() + * @generated + */ + int GUI_TABLE_CELL_DATE = 21; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DATE__TOOLTIP = GUI_TABLE_CELL__TOOLTIP; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DATE__VALUE = GUI_TABLE_CELL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Table Cell Date</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DATE_FEATURE_COUNT = GUI_TABLE_CELL_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Table Cell Date</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_DATE_OPERATION_COUNT = GUI_TABLE_CELL_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferencesImpl <em>Gui Table Cell References</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferencesImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellReferences() + * @generated + */ + int GUI_TABLE_CELL_REFERENCES = 22; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCES__TOOLTIP = GUI_TABLE_CELL__TOOLTIP; + + /** + * The feature id for the '<em><b>Refs</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCES__REFS = GUI_TABLE_CELL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Gui Table Cell References</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCES_FEATURE_COUNT = GUI_TABLE_CELL_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Gui Table Cell References</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCES_OPERATION_COUNT = GUI_TABLE_CELL_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferenceImpl <em>Gui Table Cell Reference</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferenceImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellReference() + * @generated + */ + int GUI_TABLE_CELL_REFERENCE = 23; + + /** + * The feature id for the '<em><b>Label</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCE__LABEL = 0; + + /** + * The feature id for the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCE__PATH = 1; + + /** + * The number of structural features of the '<em>Gui Table Cell Reference</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCE_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Gui Table Cell Reference</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_TABLE_CELL_REFERENCE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramImpl <em>Gui Diagram</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiDiagram() + * @generated + */ + int GUI_DIAGRAM = 24; + + /** + * The feature id for the '<em><b>Items</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM__ITEMS = 0; + + /** + * The number of structural features of the '<em>Gui Diagram</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Diagram</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramItemImpl <em>Gui Diagram Item</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramItemImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiDiagramItem() + * @generated + */ + int GUI_DIAGRAM_ITEM = 25; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_ITEM__TOOLTIP = 0; + + /** + * The number of structural features of the '<em>Gui Diagram Item</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_ITEM_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Diagram Item</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_ITEM_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl <em>Gui Diagram Rectangle</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiDiagramRectangle() + * @generated + */ + int GUI_DIAGRAM_RECTANGLE = 26; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE__TOOLTIP = GUI_DIAGRAM_ITEM__TOOLTIP; + + /** + * The feature id for the '<em><b>X</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE__X = GUI_DIAGRAM_ITEM_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Y</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE__Y = GUI_DIAGRAM_ITEM_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>H</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE__H = GUI_DIAGRAM_ITEM_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>W</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE__W = GUI_DIAGRAM_ITEM_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Gui Diagram Rectangle</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE_FEATURE_COUNT = GUI_DIAGRAM_ITEM_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>Gui Diagram Rectangle</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_DIAGRAM_RECTANGLE_OPERATION_COUNT = GUI_DIAGRAM_ITEM_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiHtmlImpl <em>Gui Html</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiHtmlImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiHtml() + * @generated + */ + int GUI_HTML = 27; + + /** + * The feature id for the '<em><b>Html</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_HTML__HTML = 0; + + /** + * The number of structural features of the '<em>Gui Html</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_HTML_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Gui Html</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_HTML_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiView <em>Gui View</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiView + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiView() + * @generated + */ + int GUI_VIEW = 28; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType <em>Gui Table Column Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableColumnType() + * @generated + */ + int GUI_TABLE_COLUMN_TYPE = 29; + + /** + * The meta object id for the '<em>Date</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.util.Date + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getDate() + * @generated + */ + int DATE = 30; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi <em>Gui Client Api</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Client Api</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi + * @generated + */ + EClass getGuiClientApi(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getTree() <em>Get Tree</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Tree</em>' operation. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getTree() + * @generated + */ + EOperation getGuiClientApi__GetTree(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getObject(java.lang.String) <em>Get Object</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Object</em>' operation. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getObject(java.lang.String) + * @generated + */ + EOperation getGuiClientApi__GetObject__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getTimeSerie(java.lang.String, java.lang.String, java.lang.String, java.lang.String) <em>Get Time Serie</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Time Serie</em>' operation. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getTimeSerie(java.lang.String, java.lang.String, java.lang.String, java.lang.String) + * @generated + */ + EOperation getGuiClientApi__GetTimeSerie__String_String_String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getTable(java.lang.String, java.lang.String, java.lang.String) <em>Get Table</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Table</em>' operation. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getTable(java.lang.String, java.lang.String, java.lang.String) + * @generated + */ + EOperation getGuiClientApi__GetTable__String_String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getHtml(java.lang.String, java.lang.String, java.lang.String) <em>Get Html</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Html</em>' operation. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getHtml(java.lang.String, java.lang.String, java.lang.String) + * @generated + */ + EOperation getGuiClientApi__GetHtml__String_String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getGraph(java.lang.String, java.lang.String, java.lang.String) <em>Get Graph</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Graph</em>' operation. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiClientApi#getGraph(java.lang.String, java.lang.String, java.lang.String) + * @generated + */ + EOperation getGuiClientApi__GetGraph__String_String_String(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTree <em>Gui Tree</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Tree</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTree + * @generated + */ + EClass getGuiTree(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTree#getSections <em>Sections</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Sections</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTree#getSections() + * @see #getGuiTree() + * @generated + */ + EReference getGuiTree_Sections(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode <em>Gui Tree Node</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Tree Node</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode + * @generated + */ + EClass getGuiTreeNode(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getNodeName <em>Node Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Node Name</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getNodeName() + * @see #getGuiTreeNode() + * @generated + */ + EAttribute getGuiTreeNode_NodeName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTitle <em>Title</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Title</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTitle() + * @see #getGuiTreeNode() + * @generated + */ + EAttribute getGuiTreeNode_Title(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTooltip <em>Tooltip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tooltip</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getTooltip() + * @see #getGuiTreeNode() + * @generated + */ + EAttribute getGuiTreeNode_Tooltip(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getIcon <em>Icon</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Icon</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getIcon() + * @see #getGuiTreeNode() + * @generated + */ + EAttribute getGuiTreeNode_Icon(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getView <em>View</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>View</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getView() + * @see #getGuiTreeNode() + * @generated + */ + EAttribute getGuiTreeNode_View(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getChildren <em>Children</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Children</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode#getChildren() + * @see #getGuiTreeNode() + * @generated + */ + EReference getGuiTreeNode_Children(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObject <em>Gui Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObject + * @generated + */ + EClass getGuiObject(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObject#getValues <em>Values</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Values</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObject#getValues() + * @see #getGuiObject() + * @generated + */ + EReference getGuiObject_Values(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject <em>Gui Named Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Named Object</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject + * @generated + */ + EClass getGuiNamedObject(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject#getObjectName <em>Object Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Object Name</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject#getObjectName() + * @see #getGuiNamedObject() + * @generated + */ + EAttribute getGuiNamedObject_ObjectName(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue <em>Gui Object Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Value</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue + * @generated + */ + EClass getGuiObjectValue(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getValueName <em>Value Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value Name</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getValueName() + * @see #getGuiObjectValue() + * @generated + */ + EAttribute getGuiObjectValue_ValueName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getTooltip <em>Tooltip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tooltip</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue#getTooltip() + * @see #getGuiObjectValue() + * @generated + */ + EAttribute getGuiObjectValue_Tooltip(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger <em>Gui Object Value Integer</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Value Integer</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger + * @generated + */ + EClass getGuiObjectValueInteger(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger#getI <em>I</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>I</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger#getI() + * @see #getGuiObjectValueInteger() + * @generated + */ + EAttribute getGuiObjectValueInteger_I(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString <em>Gui Object Value String</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Value String</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString + * @generated + */ + EClass getGuiObjectValueString(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString#getV <em>V</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>V</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString#getV() + * @see #getGuiObjectValueString() + * @generated + */ + EAttribute getGuiObjectValueString_V(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference <em>Gui Object Value Reference</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Value Reference</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference + * @generated + */ + EClass getGuiObjectValueReference(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Path</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference#getPath() + * @see #getGuiObjectValueReference() + * @generated + */ + EAttribute getGuiObjectValueReference_Path(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries <em>Gui Object Value Time Series</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Value Time Series</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries + * @generated + */ + EClass getGuiObjectValueTimeSeries(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Path</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries#getPath() + * @see #getGuiObjectValueTimeSeries() + * @generated + */ + EAttribute getGuiObjectValueTimeSeries_Path(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject <em>Gui Object Value Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Value Object</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject + * @generated + */ + EClass getGuiObjectValueObject(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject#getV <em>V</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>V</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject#getV() + * @see #getGuiObjectValueObject() + * @generated + */ + EReference getGuiObjectValueObject_V(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList <em>Gui Object Un Named List</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Un Named List</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList + * @generated + */ + EClass getGuiObjectUnNamedList(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList#getObjects <em>Objects</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Objects</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList#getObjects() + * @see #getGuiObjectUnNamedList() + * @generated + */ + EReference getGuiObjectUnNamedList_Objects(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList <em>Gui Object Named List</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Object Named List</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList + * @generated + */ + EClass getGuiObjectNamedList(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList#getObjects <em>Objects</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Objects</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList#getObjects() + * @see #getGuiObjectNamedList() + * @generated + */ + EReference getGuiObjectNamedList_Objects(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie <em>Gui Time Serie</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Time Serie</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie + * @generated + */ + EClass getGuiTimeSerie(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getName() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisLabel <em>XAxis Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>XAxis Label</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisLabel() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_XAxisLabel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisDateFormat <em>XAxis Date Format</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>XAxis Date Format</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getXAxisDateFormat() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_XAxisDateFormat(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getYAxisLabel <em>YAxis Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>YAxis Label</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getYAxisLabel() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_YAxisLabel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getStart <em>Start</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Start</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getStart() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_Start(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getEnd <em>End</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>End</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getEnd() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_End(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#isIsRate <em>Is Rate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Is Rate</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#isIsRate() + * @see #getGuiTimeSerie() + * @generated + */ + EAttribute getGuiTimeSerie_IsRate(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getData <em>Data</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Data</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie#getData() + * @see #getGuiTimeSerie() + * @generated + */ + EReference getGuiTimeSerie_Data(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData <em>Gui Time Serie Data</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Time Serie Data</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData + * @generated + */ + EClass getGuiTimeSerieData(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getTime <em>Time</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Time</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getTime() + * @see #getGuiTimeSerieData() + * @generated + */ + EAttribute getGuiTimeSerieData_Time(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getValue() + * @see #getGuiTimeSerieData() + * @generated + */ + EAttribute getGuiTimeSerieData_Value(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMax <em>Max</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Max</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMax() + * @see #getGuiTimeSerieData() + * @generated + */ + EAttribute getGuiTimeSerieData_Max(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMin <em>Min</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Min</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getMin() + * @see #getGuiTimeSerieData() + * @generated + */ + EAttribute getGuiTimeSerieData_Min(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getNum <em>Num</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Num</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData#getNum() + * @see #getGuiTimeSerieData() + * @generated + */ + EAttribute getGuiTimeSerieData_Num(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTable <em>Gui Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTable + * @generated + */ + EClass getGuiTable(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTable#getColumns <em>Columns</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Columns</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTable#getColumns() + * @see #getGuiTable() + * @generated + */ + EReference getGuiTable_Columns(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTable#getRows <em>Rows</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Rows</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTable#getRows() + * @see #getGuiTable() + * @generated + */ + EReference getGuiTable_Rows(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn <em>Gui Table Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Column</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn + * @generated + */ + EClass getGuiTableColumn(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColName <em>Col Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Col Name</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColName() + * @see #getGuiTableColumn() + * @generated + */ + EAttribute getGuiTableColumn_ColName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getTooltip <em>Tooltip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tooltip</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getTooltip() + * @see #getGuiTableColumn() + * @generated + */ + EAttribute getGuiTableColumn_Tooltip(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getFormat <em>Format</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Format</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getFormat() + * @see #getGuiTableColumn() + * @generated + */ + EAttribute getGuiTableColumn_Format(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getWidth <em>Width</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Width</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getWidth() + * @see #getGuiTableColumn() + * @generated + */ + EAttribute getGuiTableColumn_Width(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#isHidden <em>Hidden</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Hidden</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#isHidden() + * @see #getGuiTableColumn() + * @generated + */ + EAttribute getGuiTableColumn_Hidden(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColumnType <em>Column Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Column Type</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn#getColumnType() + * @see #getGuiTableColumn() + * @generated + */ + EAttribute getGuiTableColumn_ColumnType(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow <em>Gui Table Row</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Row</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow + * @generated + */ + EClass getGuiTableRow(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow#getCells <em>Cells</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Cells</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow#getCells() + * @see #getGuiTableRow() + * @generated + */ + EReference getGuiTableRow_Cells(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell <em>Gui Table Cell</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Cell</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell + * @generated + */ + EClass getGuiTableCell(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell#getTooltip <em>Tooltip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tooltip</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell#getTooltip() + * @see #getGuiTableCell() + * @generated + */ + EAttribute getGuiTableCell_Tooltip(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString <em>Gui Table Cell String</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Cell String</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString + * @generated + */ + EClass getGuiTableCellString(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString#getValue() + * @see #getGuiTableCellString() + * @generated + */ + EAttribute getGuiTableCellString_Value(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble <em>Gui Table Cell Double</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Cell Double</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble + * @generated + */ + EClass getGuiTableCellDouble(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getValue() + * @see #getGuiTableCellDouble() + * @generated + */ + EAttribute getGuiTableCellDouble_Value(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getTimeseriesPath <em>Timeseries Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Timeseries Path</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble#getTimeseriesPath() + * @see #getGuiTableCellDouble() + * @generated + */ + EAttribute getGuiTableCellDouble_TimeseriesPath(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate <em>Gui Table Cell Date</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Cell Date</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate + * @generated + */ + EClass getGuiTableCellDate(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate#getValue() + * @see #getGuiTableCellDate() + * @generated + */ + EAttribute getGuiTableCellDate_Value(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences <em>Gui Table Cell References</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Cell References</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences + * @generated + */ + EClass getGuiTableCellReferences(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences#getRefs <em>Refs</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Refs</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences#getRefs() + * @see #getGuiTableCellReferences() + * @generated + */ + EReference getGuiTableCellReferences_Refs(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference <em>Gui Table Cell Reference</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Table Cell Reference</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference + * @generated + */ + EClass getGuiTableCellReference(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getLabel <em>Label</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Label</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getLabel() + * @see #getGuiTableCellReference() + * @generated + */ + EAttribute getGuiTableCellReference_Label(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Path</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference#getPath() + * @see #getGuiTableCellReference() + * @generated + */ + EAttribute getGuiTableCellReference_Path(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram <em>Gui Diagram</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Diagram</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram + * @generated + */ + EClass getGuiDiagram(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram#getItems <em>Items</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Items</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram#getItems() + * @see #getGuiDiagram() + * @generated + */ + EReference getGuiDiagram_Items(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem <em>Gui Diagram Item</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Diagram Item</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem + * @generated + */ + EClass getGuiDiagramItem(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem#getTooltip <em>Tooltip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tooltip</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem#getTooltip() + * @see #getGuiDiagramItem() + * @generated + */ + EAttribute getGuiDiagramItem_Tooltip(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle <em>Gui Diagram Rectangle</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Diagram Rectangle</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle + * @generated + */ + EClass getGuiDiagramRectangle(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getX <em>X</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>X</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getX() + * @see #getGuiDiagramRectangle() + * @generated + */ + EAttribute getGuiDiagramRectangle_X(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getY <em>Y</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Y</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getY() + * @see #getGuiDiagramRectangle() + * @generated + */ + EAttribute getGuiDiagramRectangle_Y(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getH <em>H</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>H</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getH() + * @see #getGuiDiagramRectangle() + * @generated + */ + EAttribute getGuiDiagramRectangle_H(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getW <em>W</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>W</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle#getW() + * @see #getGuiDiagramRectangle() + * @generated + */ + EAttribute getGuiDiagramRectangle_W(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml <em>Gui Html</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Html</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml + * @generated + */ + EClass getGuiHtml(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml#getHtml <em>Html</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Html</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml#getHtml() + * @see #getGuiHtml() + * @generated + */ + EAttribute getGuiHtml_Html(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiView <em>Gui View</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Gui View</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiView + * @generated + */ + EEnum getGuiView(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType <em>Gui Table Column Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Gui Table Column Type</em>'. + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType + * @generated + */ + EEnum getGuiTableColumnType(); + + /** + * Returns the meta object for data type '{@link java.util.Date <em>Date</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Date</em>'. + * @see java.util.Date + * @model instanceClass="java.util.Date" + * @generated + */ + EDataType getDate(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + ModelFactory getModelFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiClientApiImpl <em>Gui Client Api</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiClientApiImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiClientApi() + * @generated + */ + EClass GUI_CLIENT_API = eINSTANCE.getGuiClientApi(); + + /** + * The meta object literal for the '<em><b>Get Tree</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation GUI_CLIENT_API___GET_TREE = eINSTANCE.getGuiClientApi__GetTree(); + + /** + * The meta object literal for the '<em><b>Get Object</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation GUI_CLIENT_API___GET_OBJECT__STRING = eINSTANCE.getGuiClientApi__GetObject__String(); + + /** + * The meta object literal for the '<em><b>Get Time Serie</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation GUI_CLIENT_API___GET_TIME_SERIE__STRING_STRING_STRING_STRING = eINSTANCE.getGuiClientApi__GetTimeSerie__String_String_String_String(); + + /** + * The meta object literal for the '<em><b>Get Table</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation GUI_CLIENT_API___GET_TABLE__STRING_STRING_STRING = eINSTANCE.getGuiClientApi__GetTable__String_String_String(); + + /** + * The meta object literal for the '<em><b>Get Html</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation GUI_CLIENT_API___GET_HTML__STRING_STRING_STRING = eINSTANCE.getGuiClientApi__GetHtml__String_String_String(); + + /** + * The meta object literal for the '<em><b>Get Graph</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation GUI_CLIENT_API___GET_GRAPH__STRING_STRING_STRING = eINSTANCE.getGuiClientApi__GetGraph__String_String_String(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeImpl <em>Gui Tree</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTree() + * @generated + */ + EClass GUI_TREE = eINSTANCE.getGuiTree(); + + /** + * The meta object literal for the '<em><b>Sections</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TREE__SECTIONS = eINSTANCE.getGuiTree_Sections(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl <em>Gui Tree Node</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTreeNode() + * @generated + */ + EClass GUI_TREE_NODE = eINSTANCE.getGuiTreeNode(); + + /** + * The meta object literal for the '<em><b>Node Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TREE_NODE__NODE_NAME = eINSTANCE.getGuiTreeNode_NodeName(); + + /** + * The meta object literal for the '<em><b>Title</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TREE_NODE__TITLE = eINSTANCE.getGuiTreeNode_Title(); + + /** + * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TREE_NODE__TOOLTIP = eINSTANCE.getGuiTreeNode_Tooltip(); + + /** + * The meta object literal for the '<em><b>Icon</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TREE_NODE__ICON = eINSTANCE.getGuiTreeNode_Icon(); + + /** + * The meta object literal for the '<em><b>View</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TREE_NODE__VIEW = eINSTANCE.getGuiTreeNode_View(); + + /** + * The meta object literal for the '<em><b>Children</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TREE_NODE__CHILDREN = eINSTANCE.getGuiTreeNode_Children(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectImpl <em>Gui Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObject() + * @generated + */ + EClass GUI_OBJECT = eINSTANCE.getGuiObject(); + + /** + * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_OBJECT__VALUES = eINSTANCE.getGuiObject_Values(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiNamedObjectImpl <em>Gui Named Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiNamedObjectImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiNamedObject() + * @generated + */ + EClass GUI_NAMED_OBJECT = eINSTANCE.getGuiNamedObject(); + + /** + * The meta object literal for the '<em><b>Object Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_NAMED_OBJECT__OBJECT_NAME = eINSTANCE.getGuiNamedObject_ObjectName(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueImpl <em>Gui Object Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValue() + * @generated + */ + EClass GUI_OBJECT_VALUE = eINSTANCE.getGuiObjectValue(); + + /** + * The meta object literal for the '<em><b>Value Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_OBJECT_VALUE__VALUE_NAME = eINSTANCE.getGuiObjectValue_ValueName(); + + /** + * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_OBJECT_VALUE__TOOLTIP = eINSTANCE.getGuiObjectValue_Tooltip(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueIntegerImpl <em>Gui Object Value Integer</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueIntegerImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueInteger() + * @generated + */ + EClass GUI_OBJECT_VALUE_INTEGER = eINSTANCE.getGuiObjectValueInteger(); + + /** + * The meta object literal for the '<em><b>I</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_OBJECT_VALUE_INTEGER__I = eINSTANCE.getGuiObjectValueInteger_I(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueStringImpl <em>Gui Object Value String</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueStringImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueString() + * @generated + */ + EClass GUI_OBJECT_VALUE_STRING = eINSTANCE.getGuiObjectValueString(); + + /** + * The meta object literal for the '<em><b>V</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_OBJECT_VALUE_STRING__V = eINSTANCE.getGuiObjectValueString_V(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueReferenceImpl <em>Gui Object Value Reference</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueReferenceImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueReference() + * @generated + */ + EClass GUI_OBJECT_VALUE_REFERENCE = eINSTANCE.getGuiObjectValueReference(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_OBJECT_VALUE_REFERENCE__PATH = eINSTANCE.getGuiObjectValueReference_Path(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueTimeSeriesImpl <em>Gui Object Value Time Series</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueTimeSeriesImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueTimeSeries() + * @generated + */ + EClass GUI_OBJECT_VALUE_TIME_SERIES = eINSTANCE.getGuiObjectValueTimeSeries(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_OBJECT_VALUE_TIME_SERIES__PATH = eINSTANCE.getGuiObjectValueTimeSeries_Path(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueObjectImpl <em>Gui Object Value Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueObjectImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectValueObject() + * @generated + */ + EClass GUI_OBJECT_VALUE_OBJECT = eINSTANCE.getGuiObjectValueObject(); + + /** + * The meta object literal for the '<em><b>V</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_OBJECT_VALUE_OBJECT__V = eINSTANCE.getGuiObjectValueObject_V(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectUnNamedListImpl <em>Gui Object Un Named List</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectUnNamedListImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectUnNamedList() + * @generated + */ + EClass GUI_OBJECT_UN_NAMED_LIST = eINSTANCE.getGuiObjectUnNamedList(); + + /** + * The meta object literal for the '<em><b>Objects</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_OBJECT_UN_NAMED_LIST__OBJECTS = eINSTANCE.getGuiObjectUnNamedList_Objects(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectNamedListImpl <em>Gui Object Named List</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectNamedListImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiObjectNamedList() + * @generated + */ + EClass GUI_OBJECT_NAMED_LIST = eINSTANCE.getGuiObjectNamedList(); + + /** + * The meta object literal for the '<em><b>Objects</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_OBJECT_NAMED_LIST__OBJECTS = eINSTANCE.getGuiObjectNamedList_Objects(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl <em>Gui Time Serie</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTimeSerie() + * @generated + */ + EClass GUI_TIME_SERIE = eINSTANCE.getGuiTimeSerie(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__NAME = eINSTANCE.getGuiTimeSerie_Name(); + + /** + * The meta object literal for the '<em><b>XAxis Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__XAXIS_LABEL = eINSTANCE.getGuiTimeSerie_XAxisLabel(); + + /** + * The meta object literal for the '<em><b>XAxis Date Format</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__XAXIS_DATE_FORMAT = eINSTANCE.getGuiTimeSerie_XAxisDateFormat(); + + /** + * The meta object literal for the '<em><b>YAxis Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__YAXIS_LABEL = eINSTANCE.getGuiTimeSerie_YAxisLabel(); + + /** + * The meta object literal for the '<em><b>Start</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__START = eINSTANCE.getGuiTimeSerie_Start(); + + /** + * The meta object literal for the '<em><b>End</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__END = eINSTANCE.getGuiTimeSerie_End(); + + /** + * The meta object literal for the '<em><b>Is Rate</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE__IS_RATE = eINSTANCE.getGuiTimeSerie_IsRate(); + + /** + * The meta object literal for the '<em><b>Data</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TIME_SERIE__DATA = eINSTANCE.getGuiTimeSerie_Data(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl <em>Gui Time Serie Data</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTimeSerieData() + * @generated + */ + EClass GUI_TIME_SERIE_DATA = eINSTANCE.getGuiTimeSerieData(); + + /** + * The meta object literal for the '<em><b>Time</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE_DATA__TIME = eINSTANCE.getGuiTimeSerieData_Time(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE_DATA__VALUE = eINSTANCE.getGuiTimeSerieData_Value(); + + /** + * The meta object literal for the '<em><b>Max</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE_DATA__MAX = eINSTANCE.getGuiTimeSerieData_Max(); + + /** + * The meta object literal for the '<em><b>Min</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE_DATA__MIN = eINSTANCE.getGuiTimeSerieData_Min(); + + /** + * The meta object literal for the '<em><b>Num</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TIME_SERIE_DATA__NUM = eINSTANCE.getGuiTimeSerieData_Num(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableImpl <em>Gui Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTable() + * @generated + */ + EClass GUI_TABLE = eINSTANCE.getGuiTable(); + + /** + * The meta object literal for the '<em><b>Columns</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TABLE__COLUMNS = eINSTANCE.getGuiTable_Columns(); + + /** + * The meta object literal for the '<em><b>Rows</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TABLE__ROWS = eINSTANCE.getGuiTable_Rows(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl <em>Gui Table Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableColumn() + * @generated + */ + EClass GUI_TABLE_COLUMN = eINSTANCE.getGuiTableColumn(); + + /** + * The meta object literal for the '<em><b>Col Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_COLUMN__COL_NAME = eINSTANCE.getGuiTableColumn_ColName(); + + /** + * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_COLUMN__TOOLTIP = eINSTANCE.getGuiTableColumn_Tooltip(); + + /** + * The meta object literal for the '<em><b>Format</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_COLUMN__FORMAT = eINSTANCE.getGuiTableColumn_Format(); + + /** + * The meta object literal for the '<em><b>Width</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_COLUMN__WIDTH = eINSTANCE.getGuiTableColumn_Width(); + + /** + * The meta object literal for the '<em><b>Hidden</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_COLUMN__HIDDEN = eINSTANCE.getGuiTableColumn_Hidden(); + + /** + * The meta object literal for the '<em><b>Column Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_COLUMN__COLUMN_TYPE = eINSTANCE.getGuiTableColumn_ColumnType(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableRowImpl <em>Gui Table Row</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableRowImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableRow() + * @generated + */ + EClass GUI_TABLE_ROW = eINSTANCE.getGuiTableRow(); + + /** + * The meta object literal for the '<em><b>Cells</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TABLE_ROW__CELLS = eINSTANCE.getGuiTableRow_Cells(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellImpl <em>Gui Table Cell</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCell() + * @generated + */ + EClass GUI_TABLE_CELL = eINSTANCE.getGuiTableCell(); + + /** + * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL__TOOLTIP = eINSTANCE.getGuiTableCell_Tooltip(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellStringImpl <em>Gui Table Cell String</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellStringImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellString() + * @generated + */ + EClass GUI_TABLE_CELL_STRING = eINSTANCE.getGuiTableCellString(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL_STRING__VALUE = eINSTANCE.getGuiTableCellString_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDoubleImpl <em>Gui Table Cell Double</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDoubleImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellDouble() + * @generated + */ + EClass GUI_TABLE_CELL_DOUBLE = eINSTANCE.getGuiTableCellDouble(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL_DOUBLE__VALUE = eINSTANCE.getGuiTableCellDouble_Value(); + + /** + * The meta object literal for the '<em><b>Timeseries Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH = eINSTANCE.getGuiTableCellDouble_TimeseriesPath(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDateImpl <em>Gui Table Cell Date</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDateImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellDate() + * @generated + */ + EClass GUI_TABLE_CELL_DATE = eINSTANCE.getGuiTableCellDate(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL_DATE__VALUE = eINSTANCE.getGuiTableCellDate_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferencesImpl <em>Gui Table Cell References</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferencesImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellReferences() + * @generated + */ + EClass GUI_TABLE_CELL_REFERENCES = eINSTANCE.getGuiTableCellReferences(); + + /** + * The meta object literal for the '<em><b>Refs</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_TABLE_CELL_REFERENCES__REFS = eINSTANCE.getGuiTableCellReferences_Refs(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferenceImpl <em>Gui Table Cell Reference</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferenceImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableCellReference() + * @generated + */ + EClass GUI_TABLE_CELL_REFERENCE = eINSTANCE.getGuiTableCellReference(); + + /** + * The meta object literal for the '<em><b>Label</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL_REFERENCE__LABEL = eINSTANCE.getGuiTableCellReference_Label(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_TABLE_CELL_REFERENCE__PATH = eINSTANCE.getGuiTableCellReference_Path(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramImpl <em>Gui Diagram</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiDiagram() + * @generated + */ + EClass GUI_DIAGRAM = eINSTANCE.getGuiDiagram(); + + /** + * The meta object literal for the '<em><b>Items</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_DIAGRAM__ITEMS = eINSTANCE.getGuiDiagram_Items(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramItemImpl <em>Gui Diagram Item</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramItemImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiDiagramItem() + * @generated + */ + EClass GUI_DIAGRAM_ITEM = eINSTANCE.getGuiDiagramItem(); + + /** + * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_DIAGRAM_ITEM__TOOLTIP = eINSTANCE.getGuiDiagramItem_Tooltip(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl <em>Gui Diagram Rectangle</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiDiagramRectangle() + * @generated + */ + EClass GUI_DIAGRAM_RECTANGLE = eINSTANCE.getGuiDiagramRectangle(); + + /** + * The meta object literal for the '<em><b>X</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_DIAGRAM_RECTANGLE__X = eINSTANCE.getGuiDiagramRectangle_X(); + + /** + * The meta object literal for the '<em><b>Y</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_DIAGRAM_RECTANGLE__Y = eINSTANCE.getGuiDiagramRectangle_Y(); + + /** + * The meta object literal for the '<em><b>H</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_DIAGRAM_RECTANGLE__H = eINSTANCE.getGuiDiagramRectangle_H(); + + /** + * The meta object literal for the '<em><b>W</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_DIAGRAM_RECTANGLE__W = eINSTANCE.getGuiDiagramRectangle_W(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiHtmlImpl <em>Gui Html</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiHtmlImpl + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiHtml() + * @generated + */ + EClass GUI_HTML = eINSTANCE.getGuiHtml(); + + /** + * The meta object literal for the '<em><b>Html</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_HTML__HTML = eINSTANCE.getGuiHtml_Html(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiView <em>Gui View</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiView + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiView() + * @generated + */ + EEnum GUI_VIEW = eINSTANCE.getGuiView(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType <em>Gui Table Column Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getGuiTableColumnType() + * @generated + */ + EEnum GUI_TABLE_COLUMN_TYPE = eINSTANCE.getGuiTableColumnType(); + + /** + * The meta object literal for the '<em>Date</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.util.Date + * @see org.openecomp.ncomp.gwt.siriusportal.model.impl.ModelPackageImpl#getDate() + * @generated + */ + EDataType DATE = eINSTANCE.getDate(); + + } + +} //ModelPackage diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiClientApiImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiClientApiImpl.java new file mode 100644 index 0000000..d732717 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiClientApiImpl.java @@ -0,0 +1,163 @@ + +/*- + * ============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.GuiClientApi; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTable; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTree; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.openecomp.ncomp.sirius.manager.graph.GuiGraph; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Client Api</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class GuiClientApiImpl extends MinimalEObjectImpl.Container implements GuiClientApi { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiClientApiImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_CLIENT_API; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTree getTree() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObject getObject(String path) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Diagram</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramImpl#getItems <em>Items</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiDiagramImpl extends MinimalEObjectImpl.Container implements GuiDiagram { + /** + * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getItems() + * @generated + * @ordered + */ + protected EList<GuiDiagramItem> items; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiDiagramImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_DIAGRAM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiDiagramItem> getItems() { + if (items == null) { + items = new EObjectContainmentEList<GuiDiagramItem>(GuiDiagramItem.class, this, ModelPackage.GUI_DIAGRAM__ITEMS); + } + return items; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM__ITEMS: + return ((InternalEList<?>)getItems()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM__ITEMS: + return getItems(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM__ITEMS: + getItems().clear(); + getItems().addAll((Collection<? extends GuiDiagramItem>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM__ITEMS: + getItems().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM__ITEMS: + return items != null && !items.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiDiagramImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramItemImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramItemImpl.java new file mode 100644 index 0000000..9671459 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramItemImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Diagram Item</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramItemImpl#getTooltip <em>Tooltip</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiDiagramItemImpl extends MinimalEObjectImpl.Container implements GuiDiagramItem { + /** + * The default value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected static final String TOOLTIP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected String tooltip = TOOLTIP_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiDiagramItemImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_DIAGRAM_ITEM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTooltip() { + return tooltip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTooltip(String newTooltip) { + String oldTooltip = tooltip; + tooltip = newTooltip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP, oldTooltip, tooltip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: + return getTooltip(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: + setTooltip((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: + setTooltip(TOOLTIP_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: + return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (tooltip: "); + result.append(tooltip); + result.append(')'); + return result.toString(); + } + +} //GuiDiagramItemImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramRectangleImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramRectangleImpl.java new file mode 100644 index 0000000..c260ed5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiDiagramRectangleImpl.java @@ -0,0 +1,345 @@ + +/*- + * ============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.GuiDiagramRectangle; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Diagram Rectangle</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl#getX <em>X</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl#getY <em>Y</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl#getH <em>H</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiDiagramRectangleImpl#getW <em>W</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiDiagramRectangleImpl extends GuiDiagramItemImpl implements GuiDiagramRectangle { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final int X_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected int x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final int Y_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected int y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getH() <em>H</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getH() + * @generated + * @ordered + */ + protected static final int H_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getH() <em>H</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getH() + * @generated + * @ordered + */ + protected int h = H_EDEFAULT; + + /** + * The default value of the '{@link #getW() <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getW() + * @generated + * @ordered + */ + protected static final int W_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getW() <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getW() + * @generated + * @ordered + */ + protected int w = W_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiDiagramRectangleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_DIAGRAM_RECTANGLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(int newX) { + int oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_DIAGRAM_RECTANGLE__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(int newY) { + int oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_DIAGRAM_RECTANGLE__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getH() { + return h; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setH(int newH) { + int oldH = h; + h = newH; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_DIAGRAM_RECTANGLE__H, oldH, h)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getW() { + return w; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setW(int newW) { + int oldW = w; + w = newW; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_DIAGRAM_RECTANGLE__W, oldW, w)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_RECTANGLE__X: + return getX(); + case ModelPackage.GUI_DIAGRAM_RECTANGLE__Y: + return getY(); + case ModelPackage.GUI_DIAGRAM_RECTANGLE__H: + return getH(); + case ModelPackage.GUI_DIAGRAM_RECTANGLE__W: + return getW(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_RECTANGLE__X: + setX((Integer)newValue); + return; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__Y: + setY((Integer)newValue); + return; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__H: + setH((Integer)newValue); + return; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__W: + setW((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_RECTANGLE__X: + setX(X_EDEFAULT); + return; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__Y: + setY(Y_EDEFAULT); + return; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__H: + setH(H_EDEFAULT); + return; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__W: + setW(W_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_DIAGRAM_RECTANGLE__X: + return x != X_EDEFAULT; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__Y: + return y != Y_EDEFAULT; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__H: + return h != H_EDEFAULT; + case ModelPackage.GUI_DIAGRAM_RECTANGLE__W: + return w != W_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", h: "); + result.append(h); + result.append(", w: "); + result.append(w); + result.append(')'); + return result.toString(); + } + +} //GuiDiagramRectangleImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiHtmlImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiHtmlImpl.java new file mode 100644 index 0000000..10430c7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiHtmlImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Html</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiHtmlImpl#getHtml <em>Html</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiHtmlImpl extends MinimalEObjectImpl.Container implements GuiHtml { + /** + * The default value of the '{@link #getHtml() <em>Html</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHtml() + * @generated + * @ordered + */ + protected static final String HTML_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHtml() <em>Html</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHtml() + * @generated + * @ordered + */ + protected String html = HTML_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiHtmlImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_HTML; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getHtml() { + return html; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHtml(String newHtml) { + String oldHtml = html; + html = newHtml; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_HTML__HTML, oldHtml, html)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_HTML__HTML: + return getHtml(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_HTML__HTML: + setHtml((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_HTML__HTML: + setHtml(HTML_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_HTML__HTML: + return HTML_EDEFAULT == null ? html != null : !HTML_EDEFAULT.equals(html); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (html: "); + result.append(html); + result.append(')'); + return result.toString(); + } + +} //GuiHtmlImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiNamedObjectImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiNamedObjectImpl.java new file mode 100644 index 0000000..13b1ffd --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiNamedObjectImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Named Object</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiNamedObjectImpl#getObjectName <em>Object Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiNamedObjectImpl extends GuiObjectImpl implements GuiNamedObject { + /** + * The default value of the '{@link #getObjectName() <em>Object Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getObjectName() + * @generated + * @ordered + */ + protected static final String OBJECT_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getObjectName() <em>Object Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getObjectName() + * @generated + * @ordered + */ + protected String objectName = OBJECT_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiNamedObjectImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_NAMED_OBJECT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getObjectName() { + return objectName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setObjectName(String newObjectName) { + String oldObjectName = objectName; + objectName = newObjectName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_NAMED_OBJECT__OBJECT_NAME, oldObjectName, objectName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_NAMED_OBJECT__OBJECT_NAME: + return getObjectName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_NAMED_OBJECT__OBJECT_NAME: + setObjectName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_NAMED_OBJECT__OBJECT_NAME: + setObjectName(OBJECT_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_NAMED_OBJECT__OBJECT_NAME: + return OBJECT_NAME_EDEFAULT == null ? objectName != null : !OBJECT_NAME_EDEFAULT.equals(objectName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (objectName: "); + result.append(objectName); + result.append(')'); + return result.toString(); + } + +} //GuiNamedObjectImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectImpl.java new file mode 100644 index 0000000..2aabc3b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectImpl.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.GuiObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectImpl#getValues <em>Values</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectImpl extends MinimalEObjectImpl.Container implements GuiObject { + /** + * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValues() + * @generated + * @ordered + */ + protected EList<GuiObjectValue> values; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiObjectValue> getValues() { + if (values == null) { + values = new EObjectContainmentEList<GuiObjectValue>(GuiObjectValue.class, this, ModelPackage.GUI_OBJECT__VALUES); + } + return values; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_OBJECT__VALUES: + return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT__VALUES: + return getValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT__VALUES: + getValues().clear(); + getValues().addAll((Collection<? extends GuiObjectValue>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT__VALUES: + getValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT__VALUES: + return values != null && !values.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiObjectImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectNamedListImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectNamedListImpl.java new file mode 100644 index 0000000..95b3aa8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectNamedListImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList; +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Named List</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectNamedListImpl#getObjects <em>Objects</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectNamedListImpl extends GuiObjectValueImpl implements GuiObjectNamedList { + /** + * The cached value of the '{@link #getObjects() <em>Objects</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getObjects() + * @generated + * @ordered + */ + protected EList<GuiNamedObject> objects; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectNamedListImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_NAMED_LIST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiNamedObject> getObjects() { + if (objects == null) { + objects = new EObjectContainmentEList<GuiNamedObject>(GuiNamedObject.class, this, ModelPackage.GUI_OBJECT_NAMED_LIST__OBJECTS); + } + return objects; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_NAMED_LIST__OBJECTS: + return ((InternalEList<?>)getObjects()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_NAMED_LIST__OBJECTS: + return getObjects(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_NAMED_LIST__OBJECTS: + getObjects().clear(); + getObjects().addAll((Collection<? extends GuiNamedObject>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_NAMED_LIST__OBJECTS: + getObjects().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_NAMED_LIST__OBJECTS: + return objects != null && !objects.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiObjectNamedListImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectUnNamedListImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectUnNamedListImpl.java new file mode 100644 index 0000000..b10ad2a --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectUnNamedListImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList; +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Un Named List</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectUnNamedListImpl#getObjects <em>Objects</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectUnNamedListImpl extends GuiObjectValueImpl implements GuiObjectUnNamedList { + /** + * The cached value of the '{@link #getObjects() <em>Objects</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getObjects() + * @generated + * @ordered + */ + protected EList<GuiObject> objects; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectUnNamedListImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_UN_NAMED_LIST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiObject> getObjects() { + if (objects == null) { + objects = new EObjectContainmentEList<GuiObject>(GuiObject.class, this, ModelPackage.GUI_OBJECT_UN_NAMED_LIST__OBJECTS); + } + return objects; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_UN_NAMED_LIST__OBJECTS: + return ((InternalEList<?>)getObjects()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_UN_NAMED_LIST__OBJECTS: + return getObjects(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_UN_NAMED_LIST__OBJECTS: + getObjects().clear(); + getObjects().addAll((Collection<? extends GuiObject>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_UN_NAMED_LIST__OBJECTS: + getObjects().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_UN_NAMED_LIST__OBJECTS: + return objects != null && !objects.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiObjectUnNamedListImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueImpl.java new file mode 100644 index 0000000..3b0878d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Value</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueImpl#getValueName <em>Value Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueImpl#getTooltip <em>Tooltip</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class GuiObjectValueImpl extends MinimalEObjectImpl.Container implements GuiObjectValue { + /** + * The default value of the '{@link #getValueName() <em>Value Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValueName() + * @generated + * @ordered + */ + protected static final String VALUE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValueName() <em>Value Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValueName() + * @generated + * @ordered + */ + protected String valueName = VALUE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected static final String TOOLTIP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected String tooltip = TOOLTIP_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_VALUE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValueName() { + return valueName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValueName(String newValueName) { + String oldValueName = valueName; + valueName = newValueName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE__VALUE_NAME, oldValueName, valueName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTooltip() { + return tooltip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTooltip(String newTooltip) { + String oldTooltip = tooltip; + tooltip = newTooltip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE__TOOLTIP, oldTooltip, tooltip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE__VALUE_NAME: + return getValueName(); + case ModelPackage.GUI_OBJECT_VALUE__TOOLTIP: + return getTooltip(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE__VALUE_NAME: + setValueName((String)newValue); + return; + case ModelPackage.GUI_OBJECT_VALUE__TOOLTIP: + setTooltip((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE__VALUE_NAME: + setValueName(VALUE_NAME_EDEFAULT); + return; + case ModelPackage.GUI_OBJECT_VALUE__TOOLTIP: + setTooltip(TOOLTIP_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE__VALUE_NAME: + return VALUE_NAME_EDEFAULT == null ? valueName != null : !VALUE_NAME_EDEFAULT.equals(valueName); + case ModelPackage.GUI_OBJECT_VALUE__TOOLTIP: + return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (valueName: "); + result.append(valueName); + result.append(", tooltip: "); + result.append(tooltip); + result.append(')'); + return result.toString(); + } + +} //GuiObjectValueImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueIntegerImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueIntegerImpl.java new file mode 100644 index 0000000..357cd4c --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueIntegerImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Value Integer</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueIntegerImpl#getI <em>I</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectValueIntegerImpl extends GuiObjectValueImpl implements GuiObjectValueInteger { + /** + * The default value of the '{@link #getI() <em>I</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getI() + * @generated + * @ordered + */ + protected static final int I_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getI() <em>I</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getI() + * @generated + * @ordered + */ + protected int i = I_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectValueIntegerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_VALUE_INTEGER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getI() { + return i; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setI(int newI) { + int oldI = i; + i = newI; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE_INTEGER__I, oldI, i)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_INTEGER__I: + return getI(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_INTEGER__I: + setI((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_INTEGER__I: + setI(I_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_INTEGER__I: + return i != I_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (i: "); + result.append(i); + result.append(')'); + return result.toString(); + } + +} //GuiObjectValueIntegerImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueObjectImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueObjectImpl.java new file mode 100644 index 0000000..6f3606d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueObjectImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Value Object</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueObjectImpl#getV <em>V</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectValueObjectImpl extends GuiObjectValueImpl implements GuiObjectValueObject { + /** + * The cached value of the '{@link #getV() <em>V</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getV() + * @generated + * @ordered + */ + protected GuiObject v; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectValueObjectImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_VALUE_OBJECT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObject getV() { + return v; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetV(GuiObject newV, NotificationChain msgs) { + GuiObject oldV = v; + v = newV; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE_OBJECT__V, oldV, newV); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setV(GuiObject newV) { + if (newV != v) { + NotificationChain msgs = null; + if (v != null) + msgs = ((InternalEObject)v).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.GUI_OBJECT_VALUE_OBJECT__V, null, msgs); + if (newV != null) + msgs = ((InternalEObject)newV).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ModelPackage.GUI_OBJECT_VALUE_OBJECT__V, null, msgs); + msgs = basicSetV(newV, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE_OBJECT__V, newV, newV)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_OBJECT__V: + return basicSetV(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_OBJECT__V: + return getV(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_OBJECT__V: + setV((GuiObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_OBJECT__V: + setV((GuiObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_OBJECT__V: + return v != null; + } + return super.eIsSet(featureID); + } + +} //GuiObjectValueObjectImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueReferenceImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueReferenceImpl.java new file mode 100644 index 0000000..71e7c05 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueReferenceImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Value Reference</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueReferenceImpl#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectValueReferenceImpl extends GuiObjectValueStringImpl implements GuiObjectValueReference { + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectValueReferenceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_VALUE_REFERENCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE_REFERENCE__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_REFERENCE__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_REFERENCE__PATH: + setPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_REFERENCE__PATH: + setPath(PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_REFERENCE__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //GuiObjectValueReferenceImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueStringImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueStringImpl.java new file mode 100644 index 0000000..9c8db1c --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueStringImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Value String</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueStringImpl#getV <em>V</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectValueStringImpl extends GuiObjectValueImpl implements GuiObjectValueString { + /** + * The default value of the '{@link #getV() <em>V</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getV() + * @generated + * @ordered + */ + protected static final String V_EDEFAULT = null; + + /** + * The cached value of the '{@link #getV() <em>V</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getV() + * @generated + * @ordered + */ + protected String v = V_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectValueStringImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_VALUE_STRING; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getV() { + return v; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setV(String newV) { + String oldV = v; + v = newV; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE_STRING__V, oldV, v)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_STRING__V: + return getV(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_STRING__V: + setV((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_STRING__V: + setV(V_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_STRING__V: + return V_EDEFAULT == null ? v != null : !V_EDEFAULT.equals(v); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (v: "); + result.append(v); + result.append(')'); + return result.toString(); + } + +} //GuiObjectValueStringImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueTimeSeriesImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueTimeSeriesImpl.java new file mode 100644 index 0000000..897f299 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiObjectValueTimeSeriesImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Object Value Time Series</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiObjectValueTimeSeriesImpl#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiObjectValueTimeSeriesImpl extends GuiObjectValueStringImpl implements GuiObjectValueTimeSeries { + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiObjectValueTimeSeriesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_OBJECT_VALUE_TIME_SERIES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES__PATH: + setPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES__PATH: + setPath(PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //GuiObjectValueTimeSeriesImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellDateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellDateImpl.java new file mode 100644 index 0000000..8620380 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellDateImpl.java @@ -0,0 +1,185 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import java.util.Date; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Cell Date</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDateImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableCellDateImpl extends GuiTableCellImpl implements GuiTableCellDate { + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final Date VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected Date value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableCellDateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_CELL_DATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(Date newValue) { + Date oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL_DATE__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DATE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DATE__VALUE: + setValue((Date)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DATE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DATE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //GuiTableCellDateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellDoubleImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellDoubleImpl.java new file mode 100644 index 0000000..86092e6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellDoubleImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Cell Double</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDoubleImpl#getValue <em>Value</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellDoubleImpl#getTimeseriesPath <em>Timeseries Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableCellDoubleImpl extends GuiTableCellImpl implements GuiTableCellDouble { + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final double VALUE_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected double value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getTimeseriesPath() <em>Timeseries Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTimeseriesPath() + * @generated + * @ordered + */ + protected static final String TIMESERIES_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTimeseriesPath() <em>Timeseries Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTimeseriesPath() + * @generated + * @ordered + */ + protected String timeseriesPath = TIMESERIES_PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableCellDoubleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_CELL_DOUBLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(double newValue) { + double oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL_DOUBLE__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTimeseriesPath() { + return timeseriesPath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTimeseriesPath(String newTimeseriesPath) { + String oldTimeseriesPath = timeseriesPath; + timeseriesPath = newTimeseriesPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH, oldTimeseriesPath, timeseriesPath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DOUBLE__VALUE: + return getValue(); + case ModelPackage.GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH: + return getTimeseriesPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DOUBLE__VALUE: + setValue((Double)newValue); + return; + case ModelPackage.GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH: + setTimeseriesPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DOUBLE__VALUE: + setValue(VALUE_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH: + setTimeseriesPath(TIMESERIES_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_DOUBLE__VALUE: + return value != VALUE_EDEFAULT; + case ModelPackage.GUI_TABLE_CELL_DOUBLE__TIMESERIES_PATH: + return TIMESERIES_PATH_EDEFAULT == null ? timeseriesPath != null : !TIMESERIES_PATH_EDEFAULT.equals(timeseriesPath); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(", timeseriesPath: "); + result.append(timeseriesPath); + result.append(')'); + return result.toString(); + } + +} //GuiTableCellDoubleImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellImpl.java new file mode 100644 index 0000000..1fcc803 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Cell</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellImpl#getTooltip <em>Tooltip</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class GuiTableCellImpl extends MinimalEObjectImpl.Container implements GuiTableCell { + /** + * The default value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected static final String TOOLTIP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected String tooltip = TOOLTIP_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableCellImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_CELL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTooltip() { + return tooltip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTooltip(String newTooltip) { + String oldTooltip = tooltip; + tooltip = newTooltip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL__TOOLTIP, oldTooltip, tooltip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL__TOOLTIP: + return getTooltip(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL__TOOLTIP: + setTooltip((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL__TOOLTIP: + setTooltip(TOOLTIP_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL__TOOLTIP: + return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (tooltip: "); + result.append(tooltip); + result.append(')'); + return result.toString(); + } + +} //GuiTableCellImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellReferenceImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellReferenceImpl.java new file mode 100644 index 0000000..539de91 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellReferenceImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Cell Reference</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferenceImpl#getLabel <em>Label</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferenceImpl#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableCellReferenceImpl extends MinimalEObjectImpl.Container implements GuiTableCellReference { + /** + * The default value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableCellReferenceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_CELL_REFERENCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLabel() { + return label; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLabel(String newLabel) { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL_REFERENCE__LABEL, oldLabel, label)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL_REFERENCE__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCE__LABEL: + return getLabel(); + case ModelPackage.GUI_TABLE_CELL_REFERENCE__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCE__LABEL: + setLabel((String)newValue); + return; + case ModelPackage.GUI_TABLE_CELL_REFERENCE__PATH: + setPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCE__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_CELL_REFERENCE__PATH: + setPath(PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCE__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case ModelPackage.GUI_TABLE_CELL_REFERENCE__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(", path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //GuiTableCellReferenceImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellReferencesImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellReferencesImpl.java new file mode 100644 index 0000000..26a1374 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellReferencesImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences; +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Cell References</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellReferencesImpl#getRefs <em>Refs</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableCellReferencesImpl extends GuiTableCellImpl implements GuiTableCellReferences { + /** + * The cached value of the '{@link #getRefs() <em>Refs</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRefs() + * @generated + * @ordered + */ + protected EList<GuiTableCellReference> refs; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableCellReferencesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_CELL_REFERENCES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTableCellReference> getRefs() { + if (refs == null) { + refs = new EObjectContainmentEList<GuiTableCellReference>(GuiTableCellReference.class, this, ModelPackage.GUI_TABLE_CELL_REFERENCES__REFS); + } + return refs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCES__REFS: + return ((InternalEList<?>)getRefs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCES__REFS: + return getRefs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCES__REFS: + getRefs().clear(); + getRefs().addAll((Collection<? extends GuiTableCellReference>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCES__REFS: + getRefs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_REFERENCES__REFS: + return refs != null && !refs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiTableCellReferencesImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellStringImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellStringImpl.java new file mode 100644 index 0000000..8f399e4 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableCellStringImpl.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.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Cell String</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableCellStringImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableCellStringImpl extends GuiTableCellImpl implements GuiTableCellString { + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableCellStringImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_CELL_STRING; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_CELL_STRING__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_STRING__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_STRING__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_STRING__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_CELL_STRING__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //GuiTableCellStringImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableColumnImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableColumnImpl.java new file mode 100644 index 0000000..a8c2c4a --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableColumnImpl.java @@ -0,0 +1,455 @@ + +/*- + * ============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.GuiTableColumn; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl#getColName <em>Col Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl#getTooltip <em>Tooltip</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl#getFormat <em>Format</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl#getWidth <em>Width</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl#isHidden <em>Hidden</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableColumnImpl#getColumnType <em>Column Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableColumnImpl extends MinimalEObjectImpl.Container implements GuiTableColumn { + /** + * The default value of the '{@link #getColName() <em>Col Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColName() + * @generated + * @ordered + */ + protected static final String COL_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getColName() <em>Col Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColName() + * @generated + * @ordered + */ + protected String colName = COL_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected static final String TOOLTIP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected String tooltip = TOOLTIP_EDEFAULT; + + /** + * The default value of the '{@link #getFormat() <em>Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFormat() + * @generated + * @ordered + */ + protected static final String FORMAT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFormat() <em>Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFormat() + * @generated + * @ordered + */ + protected String format = FORMAT_EDEFAULT; + + /** + * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWidth() + * @generated + * @ordered + */ + protected static final int WIDTH_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWidth() + * @generated + * @ordered + */ + protected int width = WIDTH_EDEFAULT; + + /** + * The default value of the '{@link #isHidden() <em>Hidden</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isHidden() + * @generated + * @ordered + */ + protected static final boolean HIDDEN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isHidden() <em>Hidden</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isHidden() + * @generated + * @ordered + */ + protected boolean hidden = HIDDEN_EDEFAULT; + + /** + * The default value of the '{@link #getColumnType() <em>Column Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnType() + * @generated + * @ordered + */ + protected static final GuiTableColumnType COLUMN_TYPE_EDEFAULT = GuiTableColumnType.STRING; + + /** + * The cached value of the '{@link #getColumnType() <em>Column Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnType() + * @generated + * @ordered + */ + protected GuiTableColumnType columnType = COLUMN_TYPE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getColName() { + return colName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColName(String newColName) { + String oldColName = colName; + colName = newColName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_COLUMN__COL_NAME, oldColName, colName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTooltip() { + return tooltip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTooltip(String newTooltip) { + String oldTooltip = tooltip; + tooltip = newTooltip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_COLUMN__TOOLTIP, oldTooltip, tooltip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFormat() { + return format; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFormat(String newFormat) { + String oldFormat = format; + format = newFormat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_COLUMN__FORMAT, oldFormat, format)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getWidth() { + return width; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWidth(int newWidth) { + int oldWidth = width; + width = newWidth; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_COLUMN__WIDTH, oldWidth, width)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isHidden() { + return hidden; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHidden(boolean newHidden) { + boolean oldHidden = hidden; + hidden = newHidden; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_COLUMN__HIDDEN, oldHidden, hidden)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableColumnType getColumnType() { + return columnType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumnType(GuiTableColumnType newColumnType) { + GuiTableColumnType oldColumnType = columnType; + columnType = newColumnType == null ? COLUMN_TYPE_EDEFAULT : newColumnType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TABLE_COLUMN__COLUMN_TYPE, oldColumnType, columnType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_COLUMN__COL_NAME: + return getColName(); + case ModelPackage.GUI_TABLE_COLUMN__TOOLTIP: + return getTooltip(); + case ModelPackage.GUI_TABLE_COLUMN__FORMAT: + return getFormat(); + case ModelPackage.GUI_TABLE_COLUMN__WIDTH: + return getWidth(); + case ModelPackage.GUI_TABLE_COLUMN__HIDDEN: + return isHidden(); + case ModelPackage.GUI_TABLE_COLUMN__COLUMN_TYPE: + return getColumnType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_COLUMN__COL_NAME: + setColName((String)newValue); + return; + case ModelPackage.GUI_TABLE_COLUMN__TOOLTIP: + setTooltip((String)newValue); + return; + case ModelPackage.GUI_TABLE_COLUMN__FORMAT: + setFormat((String)newValue); + return; + case ModelPackage.GUI_TABLE_COLUMN__WIDTH: + setWidth((Integer)newValue); + return; + case ModelPackage.GUI_TABLE_COLUMN__HIDDEN: + setHidden((Boolean)newValue); + return; + case ModelPackage.GUI_TABLE_COLUMN__COLUMN_TYPE: + setColumnType((GuiTableColumnType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_COLUMN__COL_NAME: + setColName(COL_NAME_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_COLUMN__TOOLTIP: + setTooltip(TOOLTIP_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_COLUMN__FORMAT: + setFormat(FORMAT_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_COLUMN__WIDTH: + setWidth(WIDTH_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_COLUMN__HIDDEN: + setHidden(HIDDEN_EDEFAULT); + return; + case ModelPackage.GUI_TABLE_COLUMN__COLUMN_TYPE: + setColumnType(COLUMN_TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_COLUMN__COL_NAME: + return COL_NAME_EDEFAULT == null ? colName != null : !COL_NAME_EDEFAULT.equals(colName); + case ModelPackage.GUI_TABLE_COLUMN__TOOLTIP: + return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); + case ModelPackage.GUI_TABLE_COLUMN__FORMAT: + return FORMAT_EDEFAULT == null ? format != null : !FORMAT_EDEFAULT.equals(format); + case ModelPackage.GUI_TABLE_COLUMN__WIDTH: + return width != WIDTH_EDEFAULT; + case ModelPackage.GUI_TABLE_COLUMN__HIDDEN: + return hidden != HIDDEN_EDEFAULT; + case ModelPackage.GUI_TABLE_COLUMN__COLUMN_TYPE: + return columnType != COLUMN_TYPE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (colName: "); + result.append(colName); + result.append(", tooltip: "); + result.append(tooltip); + result.append(", format: "); + result.append(format); + result.append(", width: "); + result.append(width); + result.append(", hidden: "); + result.append(hidden); + result.append(", columnType: "); + result.append(columnType); + result.append(')'); + return result.toString(); + } + +} //GuiTableColumnImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableImpl.java new file mode 100644 index 0000000..fcabac8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableImpl.java @@ -0,0 +1,210 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.gwt.siriusportal.model.impl; + +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTable; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableImpl#getColumns <em>Columns</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableImpl#getRows <em>Rows</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableImpl extends MinimalEObjectImpl.Container implements GuiTable { + /** + * The cached value of the '{@link #getColumns() <em>Columns</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumns() + * @generated + * @ordered + */ + protected EList<GuiTableColumn> columns; + + /** + * The cached value of the '{@link #getRows() <em>Rows</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRows() + * @generated + * @ordered + */ + protected EList<GuiTableRow> rows; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTableColumn> getColumns() { + if (columns == null) { + columns = new EObjectContainmentEList<GuiTableColumn>(GuiTableColumn.class, this, ModelPackage.GUI_TABLE__COLUMNS); + } + return columns; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTableRow> getRows() { + if (rows == null) { + rows = new EObjectContainmentEList<GuiTableRow>(GuiTableRow.class, this, ModelPackage.GUI_TABLE__ROWS); + } + return rows; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_TABLE__COLUMNS: + return ((InternalEList<?>)getColumns()).basicRemove(otherEnd, msgs); + case ModelPackage.GUI_TABLE__ROWS: + return ((InternalEList<?>)getRows()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE__COLUMNS: + return getColumns(); + case ModelPackage.GUI_TABLE__ROWS: + return getRows(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE__COLUMNS: + getColumns().clear(); + getColumns().addAll((Collection<? extends GuiTableColumn>)newValue); + return; + case ModelPackage.GUI_TABLE__ROWS: + getRows().clear(); + getRows().addAll((Collection<? extends GuiTableRow>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE__COLUMNS: + getColumns().clear(); + return; + case ModelPackage.GUI_TABLE__ROWS: + getRows().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE__COLUMNS: + return columns != null && !columns.isEmpty(); + case ModelPackage.GUI_TABLE__ROWS: + return rows != null && !rows.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiTableImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableRowImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableRowImpl.java new file mode 100644 index 0000000..74757a8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTableRowImpl.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.GuiTableCell; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Table Row</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTableRowImpl#getCells <em>Cells</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTableRowImpl extends MinimalEObjectImpl.Container implements GuiTableRow { + /** + * The cached value of the '{@link #getCells() <em>Cells</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCells() + * @generated + * @ordered + */ + protected EList<GuiTableCell> cells; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTableRowImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TABLE_ROW; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTableCell> getCells() { + if (cells == null) { + cells = new EObjectContainmentEList<GuiTableCell>(GuiTableCell.class, this, ModelPackage.GUI_TABLE_ROW__CELLS); + } + return cells; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_TABLE_ROW__CELLS: + return ((InternalEList<?>)getCells()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TABLE_ROW__CELLS: + return getCells(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TABLE_ROW__CELLS: + getCells().clear(); + getCells().addAll((Collection<? extends GuiTableCell>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_ROW__CELLS: + getCells().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TABLE_ROW__CELLS: + return cells != null && !cells.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiTableRowImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java new file mode 100644 index 0000000..bedbee7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java @@ -0,0 +1,402 @@ + +/*- + * ============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.GuiTimeSerieData; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import java.util.Date; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Time Serie Data</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getTime <em>Time</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getValue <em>Value</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getMax <em>Max</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getMin <em>Min</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getNum <em>Num</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTimeSerieDataImpl extends MinimalEObjectImpl.Container implements GuiTimeSerieData { + /** + * The default value of the '{@link #getTime() <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTime() + * @generated + * @ordered + */ + protected static final Date TIME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTime() <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTime() + * @generated + * @ordered + */ + protected Date time = TIME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final double VALUE_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected double value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getMax() <em>Max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMax() + * @generated + * @ordered + */ + protected static final Double MAX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMax() <em>Max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMax() + * @generated + * @ordered + */ + protected Double max = MAX_EDEFAULT; + + /** + * The default value of the '{@link #getMin() <em>Min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMin() + * @generated + * @ordered + */ + protected static final Double MIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMin() <em>Min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMin() + * @generated + * @ordered + */ + protected Double min = MIN_EDEFAULT; + + /** + * The default value of the '{@link #getNum() <em>Num</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNum() + * @generated + * @ordered + */ + protected static final int NUM_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNum() <em>Num</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNum() + * @generated + * @ordered + */ + protected int num = NUM_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTimeSerieDataImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TIME_SERIE_DATA; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getTime() { + return time; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTime(Date newTime) { + Date oldTime = time; + time = newTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__TIME, oldTime, time)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(double newValue) { + double oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Double getMax() { + return max; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMax(Double newMax) { + Double oldMax = max; + max = newMax; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__MAX, oldMax, max)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Double getMin() { + return min; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMin(Double newMin) { + Double oldMin = min; + min = newMin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__MIN, oldMin, min)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getNum() { + return num; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNum(int newNum) { + int oldNum = num; + num = newNum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__NUM, oldNum, num)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + return getTime(); + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + return getValue(); + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + return getMax(); + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + return getMin(); + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + return getNum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + setTime((Date)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + setValue((Double)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + setMax((Double)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + setMin((Double)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + setNum((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + setTime(TIME_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + setValue(VALUE_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + setMax(MAX_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + setMin(MIN_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + setNum(NUM_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time); + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + return value != VALUE_EDEFAULT; + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + return MAX_EDEFAULT == null ? max != null : !MAX_EDEFAULT.equals(max); + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + return MIN_EDEFAULT == null ? min != null : !MIN_EDEFAULT.equals(min); + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + return num != NUM_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (time: "); + result.append(time); + result.append(", value: "); + result.append(value); + result.append(", max: "); + result.append(max); + result.append(", min: "); + result.append(min); + result.append(", num: "); + result.append(num); + result.append(')'); + return result.toString(); + } + +} //GuiTimeSerieDataImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieImpl.java new file mode 100644 index 0000000..b4fb472 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieImpl.java @@ -0,0 +1,568 @@ + +/*- + * ============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.GuiTimeSerie; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import java.util.Collection; +import java.util.Date; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Time Serie</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getXAxisLabel <em>XAxis Label</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getXAxisDateFormat <em>XAxis Date Format</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getYAxisLabel <em>YAxis Label</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getStart <em>Start</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getEnd <em>End</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#isIsRate <em>Is Rate</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieImpl#getData <em>Data</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTimeSerieImpl extends MinimalEObjectImpl.Container implements GuiTimeSerie { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getXAxisLabel() <em>XAxis Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXAxisLabel() + * @generated + * @ordered + */ + protected static final String XAXIS_LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getXAxisLabel() <em>XAxis Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXAxisLabel() + * @generated + * @ordered + */ + protected String xAxisLabel = XAXIS_LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getXAxisDateFormat() <em>XAxis Date Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXAxisDateFormat() + * @generated + * @ordered + */ + protected static final String XAXIS_DATE_FORMAT_EDEFAULT = "MM-dd HH:mm"; + + /** + * The cached value of the '{@link #getXAxisDateFormat() <em>XAxis Date Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXAxisDateFormat() + * @generated + * @ordered + */ + protected String xAxisDateFormat = XAXIS_DATE_FORMAT_EDEFAULT; + + /** + * The default value of the '{@link #getYAxisLabel() <em>YAxis Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getYAxisLabel() + * @generated + * @ordered + */ + protected static final String YAXIS_LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getYAxisLabel() <em>YAxis Label</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getYAxisLabel() + * @generated + * @ordered + */ + protected String yAxisLabel = YAXIS_LABEL_EDEFAULT; + + /** + * The default value of the '{@link #getStart() <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStart() + * @generated + * @ordered + */ + protected static final Date START_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStart() <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStart() + * @generated + * @ordered + */ + protected Date start = START_EDEFAULT; + + /** + * The default value of the '{@link #getEnd() <em>End</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnd() + * @generated + * @ordered + */ + protected static final Date END_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnd() <em>End</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnd() + * @generated + * @ordered + */ + protected Date end = END_EDEFAULT; + + /** + * The default value of the '{@link #isIsRate() <em>Is Rate</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isIsRate() + * @generated + * @ordered + */ + protected static final boolean IS_RATE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isIsRate() <em>Is Rate</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isIsRate() + * @generated + * @ordered + */ + protected boolean isRate = IS_RATE_EDEFAULT; + + /** + * The cached value of the '{@link #getData() <em>Data</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getData() + * @generated + * @ordered + */ + protected EList<GuiTimeSerieData> data; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTimeSerieImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TIME_SERIE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getXAxisLabel() { + return xAxisLabel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setXAxisLabel(String newXAxisLabel) { + String oldXAxisLabel = xAxisLabel; + xAxisLabel = newXAxisLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__XAXIS_LABEL, oldXAxisLabel, xAxisLabel)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getXAxisDateFormat() { + return xAxisDateFormat; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setXAxisDateFormat(String newXAxisDateFormat) { + String oldXAxisDateFormat = xAxisDateFormat; + xAxisDateFormat = newXAxisDateFormat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__XAXIS_DATE_FORMAT, oldXAxisDateFormat, xAxisDateFormat)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getYAxisLabel() { + return yAxisLabel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setYAxisLabel(String newYAxisLabel) { + String oldYAxisLabel = yAxisLabel; + yAxisLabel = newYAxisLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__YAXIS_LABEL, oldYAxisLabel, yAxisLabel)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getStart() { + return start; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStart(Date newStart) { + Date oldStart = start; + start = newStart; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__START, oldStart, start)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getEnd() { + return end; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEnd(Date newEnd) { + Date oldEnd = end; + end = newEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__END, oldEnd, end)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isIsRate() { + return isRate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIsRate(boolean newIsRate) { + boolean oldIsRate = isRate; + isRate = newIsRate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE__IS_RATE, oldIsRate, isRate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTimeSerieData> getData() { + if (data == null) { + data = new EObjectContainmentEList<GuiTimeSerieData>(GuiTimeSerieData.class, this, ModelPackage.GUI_TIME_SERIE__DATA); + } + return data; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE__DATA: + return ((InternalEList<?>)getData()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE__NAME: + return getName(); + case ModelPackage.GUI_TIME_SERIE__XAXIS_LABEL: + return getXAxisLabel(); + case ModelPackage.GUI_TIME_SERIE__XAXIS_DATE_FORMAT: + return getXAxisDateFormat(); + case ModelPackage.GUI_TIME_SERIE__YAXIS_LABEL: + return getYAxisLabel(); + case ModelPackage.GUI_TIME_SERIE__START: + return getStart(); + case ModelPackage.GUI_TIME_SERIE__END: + return getEnd(); + case ModelPackage.GUI_TIME_SERIE__IS_RATE: + return isIsRate(); + case ModelPackage.GUI_TIME_SERIE__DATA: + return getData(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE__NAME: + setName((String)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__XAXIS_LABEL: + setXAxisLabel((String)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__XAXIS_DATE_FORMAT: + setXAxisDateFormat((String)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__YAXIS_LABEL: + setYAxisLabel((String)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__START: + setStart((Date)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__END: + setEnd((Date)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__IS_RATE: + setIsRate((Boolean)newValue); + return; + case ModelPackage.GUI_TIME_SERIE__DATA: + getData().clear(); + getData().addAll((Collection<? extends GuiTimeSerieData>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE__NAME: + setName(NAME_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__XAXIS_LABEL: + setXAxisLabel(XAXIS_LABEL_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__XAXIS_DATE_FORMAT: + setXAxisDateFormat(XAXIS_DATE_FORMAT_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__YAXIS_LABEL: + setYAxisLabel(YAXIS_LABEL_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__START: + setStart(START_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__END: + setEnd(END_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__IS_RATE: + setIsRate(IS_RATE_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE__DATA: + getData().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ModelPackage.GUI_TIME_SERIE__XAXIS_LABEL: + return XAXIS_LABEL_EDEFAULT == null ? xAxisLabel != null : !XAXIS_LABEL_EDEFAULT.equals(xAxisLabel); + case ModelPackage.GUI_TIME_SERIE__XAXIS_DATE_FORMAT: + return XAXIS_DATE_FORMAT_EDEFAULT == null ? xAxisDateFormat != null : !XAXIS_DATE_FORMAT_EDEFAULT.equals(xAxisDateFormat); + case ModelPackage.GUI_TIME_SERIE__YAXIS_LABEL: + return YAXIS_LABEL_EDEFAULT == null ? yAxisLabel != null : !YAXIS_LABEL_EDEFAULT.equals(yAxisLabel); + case ModelPackage.GUI_TIME_SERIE__START: + return START_EDEFAULT == null ? start != null : !START_EDEFAULT.equals(start); + case ModelPackage.GUI_TIME_SERIE__END: + return END_EDEFAULT == null ? end != null : !END_EDEFAULT.equals(end); + case ModelPackage.GUI_TIME_SERIE__IS_RATE: + return isRate != IS_RATE_EDEFAULT; + case ModelPackage.GUI_TIME_SERIE__DATA: + return data != null && !data.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", xAxisLabel: "); + result.append(xAxisLabel); + result.append(", xAxisDateFormat: "); + result.append(xAxisDateFormat); + result.append(", yAxisLabel: "); + result.append(yAxisLabel); + result.append(", start: "); + result.append(start); + result.append(", end: "); + result.append(end); + result.append(", isRate: "); + result.append(isRate); + result.append(')'); + return result.toString(); + } + +} //GuiTimeSerieImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTreeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTreeImpl.java new file mode 100644 index 0000000..89b8b27 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTreeImpl.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.GuiTree; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Tree</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeImpl#getSections <em>Sections</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTreeImpl extends MinimalEObjectImpl.Container implements GuiTree { + /** + * The cached value of the '{@link #getSections() <em>Sections</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSections() + * @generated + * @ordered + */ + protected EList<GuiTreeNode> sections; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTreeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TREE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTreeNode> getSections() { + if (sections == null) { + sections = new EObjectContainmentEList<GuiTreeNode>(GuiTreeNode.class, this, ModelPackage.GUI_TREE__SECTIONS); + } + return sections; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_TREE__SECTIONS: + return ((InternalEList<?>)getSections()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TREE__SECTIONS: + return getSections(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TREE__SECTIONS: + getSections().clear(); + getSections().addAll((Collection<? extends GuiTreeNode>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TREE__SECTIONS: + getSections().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TREE__SECTIONS: + return sections != null && !sections.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiTreeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTreeNodeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTreeNodeImpl.java new file mode 100644 index 0000000..2cb1786 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTreeNodeImpl.java @@ -0,0 +1,459 @@ + +/*- + * ============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.GuiTreeNode; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiView; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Tree Node</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl#getNodeName <em>Node Name</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl#getTooltip <em>Tooltip</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl#getIcon <em>Icon</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl#getView <em>View</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTreeNodeImpl#getChildren <em>Children</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTreeNodeImpl extends MinimalEObjectImpl.Container implements GuiTreeNode { + /** + * The default value of the '{@link #getNodeName() <em>Node Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNodeName() + * @generated + * @ordered + */ + protected static final String NODE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNodeName() <em>Node Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNodeName() + * @generated + * @ordered + */ + protected String nodeName = NODE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected static final String TITLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected String title = TITLE_EDEFAULT; + + /** + * The default value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected static final String TOOLTIP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected String tooltip = TOOLTIP_EDEFAULT; + + /** + * The default value of the '{@link #getIcon() <em>Icon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIcon() + * @generated + * @ordered + */ + protected static final String ICON_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIcon() <em>Icon</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIcon() + * @generated + * @ordered + */ + protected String icon = ICON_EDEFAULT; + + /** + * The default value of the '{@link #getView() <em>View</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getView() + * @generated + * @ordered + */ + protected static final GuiView VIEW_EDEFAULT = GuiView.NONE; + + /** + * The cached value of the '{@link #getView() <em>View</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getView() + * @generated + * @ordered + */ + protected GuiView view = VIEW_EDEFAULT; + + /** + * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getChildren() + * @generated + * @ordered + */ + protected EList<GuiTreeNode> children; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTreeNodeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TREE_NODE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNodeName() { + return nodeName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNodeName(String newNodeName) { + String oldNodeName = nodeName; + nodeName = newNodeName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TREE_NODE__NODE_NAME, oldNodeName, nodeName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTitle() { + return title; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTitle(String newTitle) { + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TREE_NODE__TITLE, oldTitle, title)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTooltip() { + return tooltip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTooltip(String newTooltip) { + String oldTooltip = tooltip; + tooltip = newTooltip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TREE_NODE__TOOLTIP, oldTooltip, tooltip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIcon() { + return icon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIcon(String newIcon) { + String oldIcon = icon; + icon = newIcon; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TREE_NODE__ICON, oldIcon, icon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiView getView() { + return view; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setView(GuiView newView) { + GuiView oldView = view; + view = newView == null ? VIEW_EDEFAULT : newView; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TREE_NODE__VIEW, oldView, view)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiTreeNode> getChildren() { + if (children == null) { + children = new EObjectContainmentEList<GuiTreeNode>(GuiTreeNode.class, this, ModelPackage.GUI_TREE_NODE__CHILDREN); + } + return children; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ModelPackage.GUI_TREE_NODE__CHILDREN: + return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TREE_NODE__NODE_NAME: + return getNodeName(); + case ModelPackage.GUI_TREE_NODE__TITLE: + return getTitle(); + case ModelPackage.GUI_TREE_NODE__TOOLTIP: + return getTooltip(); + case ModelPackage.GUI_TREE_NODE__ICON: + return getIcon(); + case ModelPackage.GUI_TREE_NODE__VIEW: + return getView(); + case ModelPackage.GUI_TREE_NODE__CHILDREN: + return getChildren(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TREE_NODE__NODE_NAME: + setNodeName((String)newValue); + return; + case ModelPackage.GUI_TREE_NODE__TITLE: + setTitle((String)newValue); + return; + case ModelPackage.GUI_TREE_NODE__TOOLTIP: + setTooltip((String)newValue); + return; + case ModelPackage.GUI_TREE_NODE__ICON: + setIcon((String)newValue); + return; + case ModelPackage.GUI_TREE_NODE__VIEW: + setView((GuiView)newValue); + return; + case ModelPackage.GUI_TREE_NODE__CHILDREN: + getChildren().clear(); + getChildren().addAll((Collection<? extends GuiTreeNode>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TREE_NODE__NODE_NAME: + setNodeName(NODE_NAME_EDEFAULT); + return; + case ModelPackage.GUI_TREE_NODE__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case ModelPackage.GUI_TREE_NODE__TOOLTIP: + setTooltip(TOOLTIP_EDEFAULT); + return; + case ModelPackage.GUI_TREE_NODE__ICON: + setIcon(ICON_EDEFAULT); + return; + case ModelPackage.GUI_TREE_NODE__VIEW: + setView(VIEW_EDEFAULT); + return; + case ModelPackage.GUI_TREE_NODE__CHILDREN: + getChildren().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TREE_NODE__NODE_NAME: + return NODE_NAME_EDEFAULT == null ? nodeName != null : !NODE_NAME_EDEFAULT.equals(nodeName); + case ModelPackage.GUI_TREE_NODE__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case ModelPackage.GUI_TREE_NODE__TOOLTIP: + return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); + case ModelPackage.GUI_TREE_NODE__ICON: + return ICON_EDEFAULT == null ? icon != null : !ICON_EDEFAULT.equals(icon); + case ModelPackage.GUI_TREE_NODE__VIEW: + return view != VIEW_EDEFAULT; + case ModelPackage.GUI_TREE_NODE__CHILDREN: + return children != null && !children.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nodeName: "); + result.append(nodeName); + result.append(", title: "); + result.append(title); + result.append(", tooltip: "); + result.append(tooltip); + result.append(", icon: "); + result.append(icon); + result.append(", view: "); + result.append(view); + result.append(')'); + return result.toString(); + } + +} //GuiTreeNodeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/ModelFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/ModelFactoryImpl.java new file mode 100644 index 0000000..7f05b3e --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/ModelFactoryImpl.java @@ -0,0 +1,490 @@ + +/*- + * ============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.*; + +import java.util.Date; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ModelFactoryImpl extends EFactoryImpl implements ModelFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ModelFactory init() { + try { + ModelFactory theModelFactory = (ModelFactory)EPackage.Registry.INSTANCE.getEFactory(ModelPackage.eNS_URI); + if (theModelFactory != null) { + return theModelFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ModelFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModelFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ModelPackage.GUI_CLIENT_API: return createGuiClientApi(); + case ModelPackage.GUI_TREE: return createGuiTree(); + case ModelPackage.GUI_TREE_NODE: return createGuiTreeNode(); + case ModelPackage.GUI_OBJECT: return createGuiObject(); + case ModelPackage.GUI_NAMED_OBJECT: return createGuiNamedObject(); + case ModelPackage.GUI_OBJECT_VALUE_INTEGER: return createGuiObjectValueInteger(); + case ModelPackage.GUI_OBJECT_VALUE_STRING: return createGuiObjectValueString(); + case ModelPackage.GUI_OBJECT_VALUE_REFERENCE: return createGuiObjectValueReference(); + case ModelPackage.GUI_OBJECT_VALUE_TIME_SERIES: return createGuiObjectValueTimeSeries(); + case ModelPackage.GUI_OBJECT_VALUE_OBJECT: return createGuiObjectValueObject(); + case ModelPackage.GUI_OBJECT_UN_NAMED_LIST: return createGuiObjectUnNamedList(); + case ModelPackage.GUI_OBJECT_NAMED_LIST: return createGuiObjectNamedList(); + case ModelPackage.GUI_TIME_SERIE: return createGuiTimeSerie(); + case ModelPackage.GUI_TIME_SERIE_DATA: return createGuiTimeSerieData(); + case ModelPackage.GUI_TABLE: return createGuiTable(); + case ModelPackage.GUI_TABLE_COLUMN: return createGuiTableColumn(); + case ModelPackage.GUI_TABLE_ROW: return createGuiTableRow(); + case ModelPackage.GUI_TABLE_CELL_STRING: return createGuiTableCellString(); + case ModelPackage.GUI_TABLE_CELL_DOUBLE: return createGuiTableCellDouble(); + case ModelPackage.GUI_TABLE_CELL_DATE: return createGuiTableCellDate(); + case ModelPackage.GUI_TABLE_CELL_REFERENCES: return createGuiTableCellReferences(); + case ModelPackage.GUI_TABLE_CELL_REFERENCE: return createGuiTableCellReference(); + case ModelPackage.GUI_DIAGRAM: return createGuiDiagram(); + case ModelPackage.GUI_DIAGRAM_ITEM: return createGuiDiagramItem(); + case ModelPackage.GUI_DIAGRAM_RECTANGLE: return createGuiDiagramRectangle(); + case ModelPackage.GUI_HTML: return createGuiHtml(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case ModelPackage.GUI_VIEW: + return createGuiViewFromString(eDataType, initialValue); + case ModelPackage.GUI_TABLE_COLUMN_TYPE: + return createGuiTableColumnTypeFromString(eDataType, initialValue); + case ModelPackage.DATE: + return createDateFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case ModelPackage.GUI_VIEW: + return convertGuiViewToString(eDataType, instanceValue); + case ModelPackage.GUI_TABLE_COLUMN_TYPE: + return convertGuiTableColumnTypeToString(eDataType, instanceValue); + case ModelPackage.DATE: + return convertDateToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiClientApi createGuiClientApi() { + GuiClientApiImpl guiClientApi = new GuiClientApiImpl(); + return guiClientApi; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTree createGuiTree() { + GuiTreeImpl guiTree = new GuiTreeImpl(); + return guiTree; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTreeNode createGuiTreeNode() { + GuiTreeNodeImpl guiTreeNode = new GuiTreeNodeImpl(); + return guiTreeNode; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObject createGuiObject() { + GuiObjectImpl guiObject = new GuiObjectImpl(); + return guiObject; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiNamedObject createGuiNamedObject() { + GuiNamedObjectImpl guiNamedObject = new GuiNamedObjectImpl(); + return guiNamedObject; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectValueInteger createGuiObjectValueInteger() { + GuiObjectValueIntegerImpl guiObjectValueInteger = new GuiObjectValueIntegerImpl(); + return guiObjectValueInteger; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectValueString createGuiObjectValueString() { + GuiObjectValueStringImpl guiObjectValueString = new GuiObjectValueStringImpl(); + return guiObjectValueString; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectValueReference createGuiObjectValueReference() { + GuiObjectValueReferenceImpl guiObjectValueReference = new GuiObjectValueReferenceImpl(); + return guiObjectValueReference; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectValueTimeSeries createGuiObjectValueTimeSeries() { + GuiObjectValueTimeSeriesImpl guiObjectValueTimeSeries = new GuiObjectValueTimeSeriesImpl(); + return guiObjectValueTimeSeries; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectValueObject createGuiObjectValueObject() { + GuiObjectValueObjectImpl guiObjectValueObject = new GuiObjectValueObjectImpl(); + return guiObjectValueObject; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectUnNamedList createGuiObjectUnNamedList() { + GuiObjectUnNamedListImpl guiObjectUnNamedList = new GuiObjectUnNamedListImpl(); + return guiObjectUnNamedList; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiObjectNamedList createGuiObjectNamedList() { + GuiObjectNamedListImpl guiObjectNamedList = new GuiObjectNamedListImpl(); + return guiObjectNamedList; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTimeSerie createGuiTimeSerie() { + GuiTimeSerieImpl guiTimeSerie = new GuiTimeSerieImpl(); + return guiTimeSerie; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTimeSerieData createGuiTimeSerieData() { + GuiTimeSerieDataImpl guiTimeSerieData = new GuiTimeSerieDataImpl(); + return guiTimeSerieData; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTable createGuiTable() { + GuiTableImpl guiTable = new GuiTableImpl(); + return guiTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableColumn createGuiTableColumn() { + GuiTableColumnImpl guiTableColumn = new GuiTableColumnImpl(); + return guiTableColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableRow createGuiTableRow() { + GuiTableRowImpl guiTableRow = new GuiTableRowImpl(); + return guiTableRow; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableCellString createGuiTableCellString() { + GuiTableCellStringImpl guiTableCellString = new GuiTableCellStringImpl(); + return guiTableCellString; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableCellDouble createGuiTableCellDouble() { + GuiTableCellDoubleImpl guiTableCellDouble = new GuiTableCellDoubleImpl(); + return guiTableCellDouble; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableCellDate createGuiTableCellDate() { + GuiTableCellDateImpl guiTableCellDate = new GuiTableCellDateImpl(); + return guiTableCellDate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableCellReferences createGuiTableCellReferences() { + GuiTableCellReferencesImpl guiTableCellReferences = new GuiTableCellReferencesImpl(); + return guiTableCellReferences; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableCellReference createGuiTableCellReference() { + GuiTableCellReferenceImpl guiTableCellReference = new GuiTableCellReferenceImpl(); + return guiTableCellReference; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiDiagram createGuiDiagram() { + GuiDiagramImpl guiDiagram = new GuiDiagramImpl(); + return guiDiagram; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiDiagramItem createGuiDiagramItem() { + GuiDiagramItemImpl guiDiagramItem = new GuiDiagramItemImpl(); + return guiDiagramItem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiDiagramRectangle createGuiDiagramRectangle() { + GuiDiagramRectangleImpl guiDiagramRectangle = new GuiDiagramRectangleImpl(); + return guiDiagramRectangle; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiHtml createGuiHtml() { + GuiHtmlImpl guiHtml = new GuiHtmlImpl(); + return guiHtml; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiView createGuiViewFromString(EDataType eDataType, String initialValue) { + GuiView result = GuiView.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertGuiViewToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiTableColumnType createGuiTableColumnTypeFromString(EDataType eDataType, String initialValue) { + GuiTableColumnType result = GuiTableColumnType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertGuiTableColumnTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date createDateFromString(EDataType eDataType, String initialValue) { + return (Date)super.createFromString(eDataType, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertDateToString(EDataType eDataType, Object instanceValue) { + return super.convertToString(eDataType, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModelPackage getModelPackage() { + return (ModelPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static ModelPackage getPackage() { + return ModelPackage.eINSTANCE; + } + +} //ModelFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/ModelPackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/ModelPackageImpl.java new file mode 100644 index 0000000..c2a2363 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/ModelPackageImpl.java @@ -0,0 +1,1569 @@ + +/*- + * ============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.GuiClientApi; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagram; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramRectangle; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiHtml; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiNamedObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectNamedList; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectUnNamedList; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValue; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueInteger; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueObject; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueReference; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueString; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiObjectValueTimeSeries; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTable; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCell; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDate; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellDouble; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReference; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellReferences; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableCellString; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumn; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableColumnType; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTableRow; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerie; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTimeSerieData; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTree; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiTreeNode; +import org.openecomp.ncomp.gwt.siriusportal.model.GuiView; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelFactory; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import org.openecomp.ncomp.sirius.manager.graph.GraphPackage; + +import java.util.Date; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ModelPackageImpl extends EPackageImpl implements ModelPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiClientApiEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTreeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTreeNodeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiNamedObjectEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectValueIntegerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectValueStringEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectValueReferenceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectValueTimeSeriesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectValueObjectEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectUnNamedListEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiObjectNamedListEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTimeSerieEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTimeSerieDataEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableColumnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableRowEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableCellEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableCellStringEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableCellDoubleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableCellDateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableCellReferencesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiTableCellReferenceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiDiagramEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiDiagramItemEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiDiagramRectangleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiHtmlEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum guiViewEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum guiTableColumnTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType dateEDataType = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiClientApi() { + return guiClientApiEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getGuiClientApi__GetTree() { + return guiClientApiEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getGuiClientApi__GetObject__String() { + return guiClientApiEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getGuiClientApi__GetTimeSerie__String_String_String_String() { + return guiClientApiEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getGuiClientApi__GetTable__String_String_String() { + return guiClientApiEClass.getEOperations().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getGuiClientApi__GetHtml__String_String_String() { + return guiClientApiEClass.getEOperations().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getGuiClientApi__GetGraph__String_String_String() { + return guiClientApiEClass.getEOperations().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTree() { + return guiTreeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTree_Sections() { + return (EReference)guiTreeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTreeNode() { + return guiTreeNodeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTreeNode_NodeName() { + return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTreeNode_Title() { + return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTreeNode_Tooltip() { + return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTreeNode_Icon() { + return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTreeNode_View() { + return (EAttribute)guiTreeNodeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTreeNode_Children() { + return (EReference)guiTreeNodeEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObject() { + return guiObjectEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiObject_Values() { + return (EReference)guiObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiNamedObject() { + return guiNamedObjectEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiNamedObject_ObjectName() { + return (EAttribute)guiNamedObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectValue() { + return guiObjectValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiObjectValue_ValueName() { + return (EAttribute)guiObjectValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiObjectValue_Tooltip() { + return (EAttribute)guiObjectValueEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectValueInteger() { + return guiObjectValueIntegerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiObjectValueInteger_I() { + return (EAttribute)guiObjectValueIntegerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectValueString() { + return guiObjectValueStringEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiObjectValueString_V() { + return (EAttribute)guiObjectValueStringEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectValueReference() { + return guiObjectValueReferenceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiObjectValueReference_Path() { + return (EAttribute)guiObjectValueReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectValueTimeSeries() { + return guiObjectValueTimeSeriesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiObjectValueTimeSeries_Path() { + return (EAttribute)guiObjectValueTimeSeriesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectValueObject() { + return guiObjectValueObjectEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiObjectValueObject_V() { + return (EReference)guiObjectValueObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectUnNamedList() { + return guiObjectUnNamedListEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiObjectUnNamedList_Objects() { + return (EReference)guiObjectUnNamedListEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiObjectNamedList() { + return guiObjectNamedListEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiObjectNamedList_Objects() { + return (EReference)guiObjectNamedListEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTimeSerie() { + return guiTimeSerieEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_Name() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_XAxisLabel() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_XAxisDateFormat() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_YAxisLabel() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_Start() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_End() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerie_IsRate() { + return (EAttribute)guiTimeSerieEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTimeSerie_Data() { + return (EReference)guiTimeSerieEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTimeSerieData() { + return guiTimeSerieDataEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerieData_Time() { + return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerieData_Value() { + return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerieData_Max() { + return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerieData_Min() { + return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTimeSerieData_Num() { + return (EAttribute)guiTimeSerieDataEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTable() { + return guiTableEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTable_Columns() { + return (EReference)guiTableEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTable_Rows() { + return (EReference)guiTableEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableColumn() { + return guiTableColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableColumn_ColName() { + return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableColumn_Tooltip() { + return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableColumn_Format() { + return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableColumn_Width() { + return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableColumn_Hidden() { + return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableColumn_ColumnType() { + return (EAttribute)guiTableColumnEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableRow() { + return guiTableRowEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTableRow_Cells() { + return (EReference)guiTableRowEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableCell() { + return guiTableCellEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCell_Tooltip() { + return (EAttribute)guiTableCellEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableCellString() { + return guiTableCellStringEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCellString_Value() { + return (EAttribute)guiTableCellStringEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableCellDouble() { + return guiTableCellDoubleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCellDouble_Value() { + return (EAttribute)guiTableCellDoubleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCellDouble_TimeseriesPath() { + return (EAttribute)guiTableCellDoubleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableCellDate() { + return guiTableCellDateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCellDate_Value() { + return (EAttribute)guiTableCellDateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableCellReferences() { + return guiTableCellReferencesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiTableCellReferences_Refs() { + return (EReference)guiTableCellReferencesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiTableCellReference() { + return guiTableCellReferenceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCellReference_Label() { + return (EAttribute)guiTableCellReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiTableCellReference_Path() { + return (EAttribute)guiTableCellReferenceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiDiagram() { + return guiDiagramEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiDiagram_Items() { + return (EReference)guiDiagramEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiDiagramItem() { + return guiDiagramItemEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiDiagramItem_Tooltip() { + return (EAttribute)guiDiagramItemEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiDiagramRectangle() { + return guiDiagramRectangleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiDiagramRectangle_X() { + return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiDiagramRectangle_Y() { + return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiDiagramRectangle_H() { + return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiDiagramRectangle_W() { + return (EAttribute)guiDiagramRectangleEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiHtml() { + return guiHtmlEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiHtml_Html() { + return (EAttribute)guiHtmlEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getGuiView() { + return guiViewEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getGuiTableColumnType() { + return guiTableColumnTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getDate() { + return dateEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModelFactory getModelFactory() { + return (ModelFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage + * @generated + */ +public class ModelAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static ModelPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModelAdapterFactory() { + if (modelPackage == null) { + modelPackage = ModelPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ModelSwitch<Adapter> modelSwitch = + new ModelSwitch<Adapter>() { + @Override + public Adapter caseGuiClientApi(GuiClientApi object) { + return createGuiClientApiAdapter(); + } + @Override + public Adapter caseGuiTree(GuiTree object) { + return createGuiTreeAdapter(); + } + @Override + public Adapter caseGuiTreeNode(GuiTreeNode object) { + return createGuiTreeNodeAdapter(); + } + @Override + public Adapter caseGuiObject(GuiObject object) { + return createGuiObjectAdapter(); + } + @Override + public Adapter caseGuiNamedObject(GuiNamedObject object) { + return createGuiNamedObjectAdapter(); + } + @Override + public Adapter caseGuiObjectValue(GuiObjectValue object) { + return createGuiObjectValueAdapter(); + } + @Override + public Adapter caseGuiObjectValueInteger(GuiObjectValueInteger object) { + return createGuiObjectValueIntegerAdapter(); + } + @Override + public Adapter caseGuiObjectValueString(GuiObjectValueString object) { + return createGuiObjectValueStringAdapter(); + } + @Override + public Adapter caseGuiObjectValueReference(GuiObjectValueReference object) { + return createGuiObjectValueReferenceAdapter(); + } + @Override + public Adapter caseGuiObjectValueTimeSeries(GuiObjectValueTimeSeries object) { + return createGuiObjectValueTimeSeriesAdapter(); + } + @Override + public Adapter caseGuiObjectValueObject(GuiObjectValueObject object) { + return createGuiObjectValueObjectAdapter(); + } + @Override + public Adapter caseGuiObjectUnNamedList(GuiObjectUnNamedList object) { + return createGuiObjectUnNamedListAdapter(); + } + @Override + public Adapter caseGuiObjectNamedList(GuiObjectNamedList object) { + return createGuiObjectNamedListAdapter(); + } + @Override + public Adapter caseGuiTimeSerie(GuiTimeSerie object) { + return createGuiTimeSerieAdapter(); + } + @Override + public Adapter caseGuiTimeSerieData(GuiTimeSerieData object) { + return createGuiTimeSerieDataAdapter(); + } + @Override + public Adapter caseGuiTable(GuiTable object) { + return createGuiTableAdapter(); + } + @Override + public Adapter caseGuiTableColumn(GuiTableColumn object) { + return createGuiTableColumnAdapter(); + } + @Override + public Adapter caseGuiTableRow(GuiTableRow object) { + return createGuiTableRowAdapter(); + } + @Override + public Adapter caseGuiTableCell(GuiTableCell object) { + return createGuiTableCellAdapter(); + } + @Override + public Adapter caseGuiTableCellString(GuiTableCellString object) { + return createGuiTableCellStringAdapter(); + } + @Override + public Adapter caseGuiTableCellDouble(GuiTableCellDouble object) { + return createGuiTableCellDoubleAdapter(); + } + @Override + public Adapter caseGuiTableCellDate(GuiTableCellDate object) { + return createGuiTableCellDateAdapter(); + } + @Override + public Adapter caseGuiTableCellReferences(GuiTableCellReferences object) { + return createGuiTableCellReferencesAdapter(); + } + @Override + public Adapter caseGuiTableCellReference(GuiTableCellReference object) { + return createGuiTableCellReferenceAdapter(); + } + @Override + public Adapter caseGuiDiagram(GuiDiagram object) { + return createGuiDiagramAdapter(); + } + @Override + public Adapter caseGuiDiagramItem(GuiDiagramItem object) { + return createGuiDiagramItemAdapter(); + } + @Override + public Adapter caseGuiDiagramRectangle(GuiDiagramRectangle object) { + return createGuiDiagramRectangleAdapter(); + } + @Override + public Adapter caseGuiHtml(GuiHtml object) { + return createGuiHtmlAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Gui Client Api</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Tree</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Tree Node</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Named Object</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Value</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Value Integer</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Value String</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Value Reference</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Value Time Series</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Value Object</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Un Named List</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Object Named List</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Time Serie</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Time Serie Data</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Column</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Row</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Cell</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Cell String</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Cell Double</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Cell Date</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Cell References</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Table Cell Reference</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Diagram</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Diagram Item</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Diagram Rectangle</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Html</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage + * @generated + */ +public class ModelSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static ModelPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModelSwitch() { + if (modelPackage == null) { + modelPackage = ModelPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Gui Client Api</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Client Api</em>'. + * @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 '<em>Gui Tree</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Tree</em>'. + * @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 '<em>Gui Tree Node</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Tree Node</em>'. + * @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 '<em>Gui Object</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object</em>'. + * @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 '<em>Gui Named Object</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Named Object</em>'. + * @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 '<em>Gui Object Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Value</em>'. + * @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 '<em>Gui Object Value Integer</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Value Integer</em>'. + * @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 '<em>Gui Object Value String</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Value String</em>'. + * @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 '<em>Gui Object Value Reference</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Value Reference</em>'. + * @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 '<em>Gui Object Value Time Series</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Value Time Series</em>'. + * @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 '<em>Gui Object Value Object</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Value Object</em>'. + * @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 '<em>Gui Object Un Named List</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Un Named List</em>'. + * @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 '<em>Gui Object Named List</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Object Named List</em>'. + * @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 '<em>Gui Time Serie</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Time Serie</em>'. + * @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 '<em>Gui Time Serie Data</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Time Serie Data</em>'. + * @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 '<em>Gui Table</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table</em>'. + * @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 '<em>Gui Table Column</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Column</em>'. + * @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 '<em>Gui Table Row</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Row</em>'. + * @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 '<em>Gui Table Cell</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Cell</em>'. + * @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 '<em>Gui Table Cell String</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Cell String</em>'. + * @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 '<em>Gui Table Cell Double</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Cell Double</em>'. + * @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 '<em>Gui Table Cell Date</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Cell Date</em>'. + * @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 '<em>Gui Table Cell References</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Cell References</em>'. + * @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 '<em>Gui Table Cell Reference</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Table Cell Reference</em>'. + * @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 '<em>Gui Diagram</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Diagram</em>'. + * @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 '<em>Gui Diagram Item</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Diagram Item</em>'. + * @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 '<em>Gui Diagram Rectangle</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Diagram Rectangle</em>'. + * @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 '<em>Gui Html</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Html</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Controller Model</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTemplateDirectory <em>Template Directory</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPluginName <em>Plugin Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPrefix <em>Prefix</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage#getControllerModel() + * @model + * @generated + */ +public interface ControllerModel extends EObject { + /** + * Returns the value of the '<em><b>Template Directory</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Template Directory</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Template Directory</em>' 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 <em>Template Directory</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Template Directory</em>' attribute. + * @see #getTemplateDirectory() + * @generated + */ + void setTemplateDirectory(String value); + + /** + * Returns the value of the '<em><b>Plugin Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Plugin Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Plugin Name</em>' 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 <em>Plugin Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Plugin Name</em>' attribute. + * @see #getPluginName() + * @generated + */ + void setPluginName(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Title</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Title</em>' 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 <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Title</em>' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the '<em><b>Prefix</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Prefix</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Prefix</em>' 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 <em>Prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Prefix</em>' 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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage + * @generated + */ +public interface ControllermodelFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + ControllermodelFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllermodelFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Controller Model</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Controller Model</em>'. + * @generated + */ + ControllerModel createControllerModel(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager'" + * @generated + */ +public interface ControllermodelPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "controllermodel"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.controllermodel"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "controllermodel"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + ControllermodelPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllermodelPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl <em>Controller Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl + * @see org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllermodelPackageImpl#getControllerModel() + * @generated + */ + int CONTROLLER_MODEL = 0; + + /** + * The feature id for the '<em><b>Template Directory</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL__TEMPLATE_DIRECTORY = 0; + + /** + * The feature id for the '<em><b>Plugin Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL__PLUGIN_NAME = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL__NAME = 2; + + /** + * The feature id for the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL__TITLE = 3; + + /** + * The feature id for the '<em><b>Prefix</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL__PREFIX = 4; + + /** + * The number of structural features of the '<em>Controller Model</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL_FEATURE_COUNT = 5; + + /** + * The number of operations of the '<em>Controller Model</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONTROLLER_MODEL_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel <em>Controller Model</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Controller Model</em>'. + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel + * @generated + */ + EClass getControllerModel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTemplateDirectory <em>Template Directory</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Template Directory</em>'. + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTemplateDirectory() + * @see #getControllerModel() + * @generated + */ + EAttribute getControllerModel_TemplateDirectory(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPluginName <em>Plugin Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Plugin Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPluginName() + * @see #getControllerModel() + * @generated + */ + EAttribute getControllerModel_PluginName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getName() + * @see #getControllerModel() + * @generated + */ + EAttribute getControllerModel_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTitle <em>Title</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Title</em>'. + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getTitle() + * @see #getControllerModel() + * @generated + */ + EAttribute getControllerModel_Title(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPrefix <em>Prefix</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Prefix</em>'. + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel#getPrefix() + * @see #getControllerModel() + * @generated + */ + EAttribute getControllerModel_Prefix(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + ControllermodelFactory getControllermodelFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl <em>Controller Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl + * @see org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllermodelPackageImpl#getControllerModel() + * @generated + */ + EClass CONTROLLER_MODEL = eINSTANCE.getControllerModel(); + + /** + * The meta object literal for the '<em><b>Template Directory</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTROLLER_MODEL__TEMPLATE_DIRECTORY = eINSTANCE.getControllerModel_TemplateDirectory(); + + /** + * The meta object literal for the '<em><b>Plugin Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTROLLER_MODEL__PLUGIN_NAME = eINSTANCE.getControllerModel_PluginName(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTROLLER_MODEL__NAME = eINSTANCE.getControllerModel_Name(); + + /** + * The meta object literal for the '<em><b>Title</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTROLLER_MODEL__TITLE = eINSTANCE.getControllerModel_Title(); + + /** + * The meta object literal for the '<em><b>Prefix</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONTROLLER_MODEL__PREFIX = eINSTANCE.getControllerModel_Prefix(); + + } + +} //ControllermodelPackage diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllerModelImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllerModelImpl.java new file mode 100644 index 0000000..f948d13 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllerModelImpl.java @@ -0,0 +1,400 @@ + +/*- + * ============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.impl; + +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Controller Model</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl#getTemplateDirectory <em>Template Directory</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl#getPluginName <em>Plugin Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.controllermodel.impl.ControllerModelImpl#getPrefix <em>Prefix</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ControllerModelImpl extends MinimalEObjectImpl.Container implements ControllerModel { + /** + * The default value of the '{@link #getTemplateDirectory() <em>Template Directory</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemplateDirectory() + * @generated + * @ordered + */ + protected static final String TEMPLATE_DIRECTORY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTemplateDirectory() <em>Template Directory</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemplateDirectory() + * @generated + * @ordered + */ + protected String templateDirectory = TEMPLATE_DIRECTORY_EDEFAULT; + + /** + * The default value of the '{@link #getPluginName() <em>Plugin Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPluginName() + * @generated + * @ordered + */ + protected static final String PLUGIN_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPluginName() <em>Plugin Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPluginName() + * @generated + * @ordered + */ + protected String pluginName = PLUGIN_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected static final String TITLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected String title = TITLE_EDEFAULT; + + /** + * The default value of the '{@link #getPrefix() <em>Prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrefix() + * @generated + * @ordered + */ + protected static final String PREFIX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPrefix() <em>Prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrefix() + * @generated + * @ordered + */ + protected String prefix = PREFIX_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ControllerModelImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ControllermodelPackage.Literals.CONTROLLER_MODEL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTemplateDirectory() { + return templateDirectory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTemplateDirectory(String newTemplateDirectory) { + String oldTemplateDirectory = templateDirectory; + templateDirectory = newTemplateDirectory; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ControllermodelPackage.CONTROLLER_MODEL__TEMPLATE_DIRECTORY, oldTemplateDirectory, templateDirectory)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPluginName() { + return pluginName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPluginName(String newPluginName) { + String oldPluginName = pluginName; + pluginName = newPluginName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ControllermodelPackage.CONTROLLER_MODEL__PLUGIN_NAME, oldPluginName, pluginName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ControllermodelPackage.CONTROLLER_MODEL__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTitle() { + return title; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTitle(String newTitle) { + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ControllermodelPackage.CONTROLLER_MODEL__TITLE, oldTitle, title)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPrefix() { + return prefix; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrefix(String newPrefix) { + String oldPrefix = prefix; + prefix = newPrefix; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ControllermodelPackage.CONTROLLER_MODEL__PREFIX, oldPrefix, prefix)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ControllermodelPackage.CONTROLLER_MODEL__TEMPLATE_DIRECTORY: + return getTemplateDirectory(); + case ControllermodelPackage.CONTROLLER_MODEL__PLUGIN_NAME: + return getPluginName(); + case ControllermodelPackage.CONTROLLER_MODEL__NAME: + return getName(); + case ControllermodelPackage.CONTROLLER_MODEL__TITLE: + return getTitle(); + case ControllermodelPackage.CONTROLLER_MODEL__PREFIX: + return getPrefix(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ControllermodelPackage.CONTROLLER_MODEL__TEMPLATE_DIRECTORY: + setTemplateDirectory((String)newValue); + return; + case ControllermodelPackage.CONTROLLER_MODEL__PLUGIN_NAME: + setPluginName((String)newValue); + return; + case ControllermodelPackage.CONTROLLER_MODEL__NAME: + setName((String)newValue); + return; + case ControllermodelPackage.CONTROLLER_MODEL__TITLE: + setTitle((String)newValue); + return; + case ControllermodelPackage.CONTROLLER_MODEL__PREFIX: + setPrefix((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ControllermodelPackage.CONTROLLER_MODEL__TEMPLATE_DIRECTORY: + setTemplateDirectory(TEMPLATE_DIRECTORY_EDEFAULT); + return; + case ControllermodelPackage.CONTROLLER_MODEL__PLUGIN_NAME: + setPluginName(PLUGIN_NAME_EDEFAULT); + return; + case ControllermodelPackage.CONTROLLER_MODEL__NAME: + setName(NAME_EDEFAULT); + return; + case ControllermodelPackage.CONTROLLER_MODEL__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case ControllermodelPackage.CONTROLLER_MODEL__PREFIX: + setPrefix(PREFIX_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ControllermodelPackage.CONTROLLER_MODEL__TEMPLATE_DIRECTORY: + return TEMPLATE_DIRECTORY_EDEFAULT == null ? templateDirectory != null : !TEMPLATE_DIRECTORY_EDEFAULT.equals(templateDirectory); + case ControllermodelPackage.CONTROLLER_MODEL__PLUGIN_NAME: + return PLUGIN_NAME_EDEFAULT == null ? pluginName != null : !PLUGIN_NAME_EDEFAULT.equals(pluginName); + case ControllermodelPackage.CONTROLLER_MODEL__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ControllermodelPackage.CONTROLLER_MODEL__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case ControllermodelPackage.CONTROLLER_MODEL__PREFIX: + return PREFIX_EDEFAULT == null ? prefix != null : !PREFIX_EDEFAULT.equals(prefix); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (templateDirectory: "); + result.append(templateDirectory); + result.append(", pluginName: "); + result.append(pluginName); + result.append(", name: "); + result.append(name); + result.append(", title: "); + result.append(title); + result.append(", prefix: "); + result.append(prefix); + result.append(')'); + return result.toString(); + } + +} //ControllerModelImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllermodelFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllermodelFactoryImpl.java new file mode 100644 index 0000000..cbf3aac --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllermodelFactoryImpl.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.controllermodel.impl; + +import org.openecomp.ncomp.sirius.manager.controllermodel.*; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ControllermodelFactoryImpl extends EFactoryImpl implements ControllermodelFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ControllermodelFactory init() { + try { + ControllermodelFactory theControllermodelFactory = (ControllermodelFactory)EPackage.Registry.INSTANCE.getEFactory(ControllermodelPackage.eNS_URI); + if (theControllermodelFactory != null) { + return theControllermodelFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ControllermodelFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ControllermodelFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ControllermodelPackage.CONTROLLER_MODEL: return createControllerModel(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ControllerModel createControllerModel() { + ControllerModelImpl controllerModel = new ControllerModelImpl(); + return controllerModel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ControllermodelPackage getControllermodelPackage() { + return (ControllermodelPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static ControllermodelPackage getPackage() { + return ControllermodelPackage.eINSTANCE; + } + +} //ControllermodelFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllermodelPackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllermodelPackageImpl.java new file mode 100644 index 0000000..13d3460 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/controllermodel/impl/ControllermodelPackageImpl.java @@ -0,0 +1,249 @@ + +/*- + * ============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.impl; + +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory; +import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ControllermodelPackageImpl extends EPackageImpl implements ControllermodelPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass controllerModelEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getControllerModel() { + return controllerModelEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getControllerModel_TemplateDirectory() { + return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getControllerModel_PluginName() { + return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getControllerModel_Name() { + return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getControllerModel_Title() { + return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getControllerModel_Prefix() { + return (EAttribute)controllerModelEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ControllermodelFactory getControllermodelFactory() { + return (ControllermodelFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage + * @generated + */ +public class ControllermodelAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static ControllermodelPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ControllermodelAdapterFactory() { + if (modelPackage == null) { + modelPackage = ControllermodelPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ControllermodelSwitch<Adapter> modelSwitch = + new ControllermodelSwitch<Adapter>() { + @Override + public Adapter caseControllerModel(ControllerModel object) { + return createControllerModelAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Controller Model</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelPackage + * @generated + */ +public class ControllermodelSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static ControllermodelPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ControllermodelSwitch() { + if (modelPackage == null) { + modelPackage = ControllermodelPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Controller Model</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Controller Model</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage + * @generated + */ +public interface GraphFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + GraphFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.graph.impl.GraphFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Gui Graph</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Graph</em>'. + * @generated + */ + GuiGraph createGuiGraph(); + + /** + * Returns a new object of class '<em>Gui Graph Item</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Graph Item</em>'. + * @generated + */ + GuiGraphItem createGuiGraphItem(); + + /** + * Returns a new object of class '<em>Gui Graph Node</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Graph Node</em>'. + * @generated + */ + GuiGraphNode createGuiGraphNode(); + + /** + * Returns a new object of class '<em>Gui Graph Edge</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Gui Graph Edge</em>'. + * @generated + */ + GuiGraphEdge createGuiGraphEdge(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "graph"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.graph"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "graph"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Gui Graph</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Nodes</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH__NODES = 0; + + /** + * The feature id for the '<em><b>Edges</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH__EDGES = 1; + + /** + * The number of structural features of the '<em>Gui Graph</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Gui Graph</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl <em>Gui Graph Item</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_ITEM__NAME = 0; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_ITEM__TOOLTIP = 1; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_ITEM__URL = 2; + + /** + * The number of structural features of the '<em>Gui Graph Item</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_ITEM_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Gui Graph Item</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_ITEM_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl <em>Gui Graph Node</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__NAME = GUI_GRAPH_ITEM__NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__URL = GUI_GRAPH_ITEM__URL; + + /** + * The feature id for the '<em><b>X</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Y</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>H</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__H = GUI_GRAPH_ITEM_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>W</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE__W = GUI_GRAPH_ITEM_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Gui Graph Node</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_NODE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>Gui Graph Node</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Gui Graph Edge</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_EDGE__NAME = GUI_GRAPH_ITEM__NAME; + + /** + * The feature id for the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_EDGE__TOOLTIP = GUI_GRAPH_ITEM__TOOLTIP; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_EDGE__URL = GUI_GRAPH_ITEM__URL; + + /** + * The feature id for the '<em><b>X</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_EDGE__X = GUI_GRAPH_ITEM_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Y</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_EDGE__Y = GUI_GRAPH_ITEM_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Gui Graph Edge</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GUI_GRAPH_EDGE_FEATURE_COUNT = GUI_GRAPH_ITEM_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Gui Graph Edge</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Gui Graph</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Graph</em>'. + * @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 <em>Nodes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Nodes</em>'. + * @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 <em>Edges</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Edges</em>'. + * @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 <em>Gui Graph Item</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Graph Item</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Tooltip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tooltip</em>'. + * @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 <em>Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Url</em>'. + * @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 <em>Gui Graph Node</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Graph Node</em>'. + * @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 <em>X</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>X</em>'. + * @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 <em>Y</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Y</em>'. + * @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 <em>H</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>H</em>'. + * @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 <em>W</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>W</em>'. + * @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 <em>Gui Graph Edge</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Gui Graph Edge</em>'. + * @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 <em>X</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>X</em>'. + * @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 <em>Y</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Y</em>'. + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + GraphFactory getGraphFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl <em>Gui Graph</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Nodes</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_GRAPH__NODES = eINSTANCE.getGuiGraph_Nodes(); + + /** + * The meta object literal for the '<em><b>Edges</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_GRAPH__EDGES = eINSTANCE.getGuiGraph_Edges(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl <em>Gui Graph Item</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_ITEM__NAME = eINSTANCE.getGuiGraphItem_Name(); + + /** + * The meta object literal for the '<em><b>Tooltip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_ITEM__TOOLTIP = eINSTANCE.getGuiGraphItem_Tooltip(); + + /** + * The meta object literal for the '<em><b>Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_ITEM__URL = eINSTANCE.getGuiGraphItem_Url(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl <em>Gui Graph Node</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>X</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_NODE__X = eINSTANCE.getGuiGraphNode_X(); + + /** + * The meta object literal for the '<em><b>Y</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_NODE__Y = eINSTANCE.getGuiGraphNode_Y(); + + /** + * The meta object literal for the '<em><b>H</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_NODE__H = eINSTANCE.getGuiGraphNode_H(); + + /** + * The meta object literal for the '<em><b>W</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GUI_GRAPH_NODE__W = eINSTANCE.getGuiGraphNode_W(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl <em>Gui Graph Edge</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>X</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference GUI_GRAPH_EDGE__X = eINSTANCE.getGuiGraphEdge_X(); + + /** + * The meta object literal for the '<em><b>Y</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Graph</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getNodes <em>Nodes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraph#getEdges <em>Edges</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraph() + * @model + * @generated + */ +public interface GuiGraph extends EObject { + /** + * Returns the value of the '<em><b>Nodes</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Nodes</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Nodes</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraph_Nodes() + * @model containment="true" + * @generated + */ + EList<GuiGraphNode> getNodes(); + + /** + * Returns the value of the '<em><b>Edges</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Edges</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Edges</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraph_Edges() + * @model containment="true" + * @generated + */ + EList<GuiGraphEdge> getEdges(); + +} // GuiGraph diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphEdge.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphEdge.java new file mode 100644 index 0000000..3de2df3 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/GuiGraphEdge.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.sirius.manager.graph; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Graph Edge</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getX <em>X</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphEdge#getY <em>Y</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphEdge() + * @model + * @generated + */ +public interface GuiGraphEdge extends GuiGraphItem { + /** + * Returns the value of the '<em><b>X</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>X</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>X</em>' 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 <em>X</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>X</em>' reference. + * @see #getX() + * @generated + */ + void setX(GuiGraphNode value); + + /** + * Returns the value of the '<em><b>Y</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Y</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Y</em>' 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 <em>Y</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Y</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Graph Item</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getTooltip <em>Tooltip</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphItem#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphItem() + * @model + * @generated + */ +public interface GuiGraphItem extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Tooltip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tooltip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tooltip</em>' 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 <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tooltip</em>' attribute. + * @see #getTooltip() + * @generated + */ + void setTooltip(String value); + + /** + * Returns the value of the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Url</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Url</em>' 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 <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Url</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Gui Graph Node</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getX <em>X</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getY <em>Y</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getH <em>H</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.GuiGraphNode#getW <em>W</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage#getGuiGraphNode() + * @model + * @generated + */ +public interface GuiGraphNode extends GuiGraphItem { + /** + * Returns the value of the '<em><b>X</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>X</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>X</em>' 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 <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>X</em>' attribute. + * @see #getX() + * @generated + */ + void setX(Integer value); + + /** + * Returns the value of the '<em><b>Y</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Y</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Y</em>' 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 <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Y</em>' attribute. + * @see #getY() + * @generated + */ + void setY(Integer value); + + /** + * Returns the value of the '<em><b>H</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>H</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>H</em>' 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 <em>H</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>H</em>' attribute. + * @see #getH() + * @generated + */ + void setH(Integer value); + + /** + * Returns the value of the '<em><b>W</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>W</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>W</em>' 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 <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>W</em>' 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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class GraphFactoryImpl extends EFactoryImpl implements GraphFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GraphFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraph createGuiGraph() { + GuiGraphImpl guiGraph = new GuiGraphImpl(); + return guiGraph; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphItem createGuiGraphItem() { + GuiGraphItemImpl guiGraphItem = new GuiGraphItemImpl(); + return guiGraphItem; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphNode createGuiGraphNode() { + GuiGraphNodeImpl guiGraphNode = new GuiGraphNodeImpl(); + return guiGraphNode; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphEdge createGuiGraphEdge() { + GuiGraphEdgeImpl guiGraphEdge = new GuiGraphEdgeImpl(); + return guiGraphEdge; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GraphPackage getGraphPackage() { + return (GraphPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class GraphPackageImpl extends EPackageImpl implements GraphPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiGraphEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiGraphItemEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiGraphNodeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass guiGraphEdgeEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiGraph() { + return guiGraphEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiGraph_Nodes() { + return (EReference)guiGraphEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiGraph_Edges() { + return (EReference)guiGraphEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiGraphItem() { + return guiGraphItemEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphItem_Name() { + return (EAttribute)guiGraphItemEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphItem_Tooltip() { + return (EAttribute)guiGraphItemEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphItem_Url() { + return (EAttribute)guiGraphItemEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiGraphNode() { + return guiGraphNodeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphNode_X() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphNode_Y() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphNode_H() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGuiGraphNode_W() { + return (EAttribute)guiGraphNodeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGuiGraphEdge() { + return guiGraphEdgeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiGraphEdge_X() { + return (EReference)guiGraphEdgeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getGuiGraphEdge_Y() { + return (EReference)guiGraphEdgeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GraphFactory getGraphFactory() { + return (GraphFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Graph Edge</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl#getX <em>X</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphEdgeImpl#getY <em>Y</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiGraphEdgeImpl extends GuiGraphItemImpl implements GuiGraphEdge { + /** + * The cached value of the '{@link #getX() <em>X</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected GuiGraphNode x; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected GuiGraphNode y; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiGraphEdgeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return GraphPackage.Literals.GUI_GRAPH_EDGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphNode getX() { + if (x != null && x.eIsProxy()) { + InternalEObject oldX = (InternalEObject)x; + x = (GuiGraphNode)eResolveProxy(oldX); + if (x != oldX) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.GUI_GRAPH_EDGE__X, oldX, x)); + } + } + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphNode basicGetX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(GuiGraphNode newX) { + GuiGraphNode oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_EDGE__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphNode getY() { + if (y != null && y.eIsProxy()) { + InternalEObject oldY = (InternalEObject)y; + y = (GuiGraphNode)eResolveProxy(oldY); + if (y != oldY) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, GraphPackage.GUI_GRAPH_EDGE__Y, oldY, y)); + } + } + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GuiGraphNode basicGetY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(GuiGraphNode newY) { + GuiGraphNode oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_EDGE__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_EDGE__X: + if (resolve) return getX(); + return basicGetX(); + case GraphPackage.GUI_GRAPH_EDGE__Y: + if (resolve) return getY(); + return basicGetY(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_EDGE__X: + setX((GuiGraphNode)newValue); + return; + case GraphPackage.GUI_GRAPH_EDGE__Y: + setY((GuiGraphNode)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_EDGE__X: + setX((GuiGraphNode)null); + return; + case GraphPackage.GUI_GRAPH_EDGE__Y: + setY((GuiGraphNode)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_EDGE__X: + return x != null; + case GraphPackage.GUI_GRAPH_EDGE__Y: + return y != null; + } + return super.eIsSet(featureID); + } + +} //GuiGraphEdgeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphImpl.java new file mode 100644 index 0000000..7f52720 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphImpl.java @@ -0,0 +1,210 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.graph.impl; + +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.GuiGraphNode; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Graph</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl#getNodes <em>Nodes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphImpl#getEdges <em>Edges</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiGraphImpl extends MinimalEObjectImpl.Container implements GuiGraph { + /** + * The cached value of the '{@link #getNodes() <em>Nodes</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNodes() + * @generated + * @ordered + */ + protected EList<GuiGraphNode> nodes; + + /** + * The cached value of the '{@link #getEdges() <em>Edges</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEdges() + * @generated + * @ordered + */ + protected EList<GuiGraphEdge> edges; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiGraphImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return GraphPackage.Literals.GUI_GRAPH; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiGraphNode> getNodes() { + if (nodes == null) { + nodes = new EObjectContainmentEList<GuiGraphNode>(GuiGraphNode.class, this, GraphPackage.GUI_GRAPH__NODES); + } + return nodes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<GuiGraphEdge> getEdges() { + if (edges == null) { + edges = new EObjectContainmentEList<GuiGraphEdge>(GuiGraphEdge.class, this, GraphPackage.GUI_GRAPH__EDGES); + } + return edges; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case GraphPackage.GUI_GRAPH__NODES: + return ((InternalEList<?>)getNodes()).basicRemove(otherEnd, msgs); + case GraphPackage.GUI_GRAPH__EDGES: + return ((InternalEList<?>)getEdges()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GraphPackage.GUI_GRAPH__NODES: + return getNodes(); + case GraphPackage.GUI_GRAPH__EDGES: + return getEdges(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GraphPackage.GUI_GRAPH__NODES: + getNodes().clear(); + getNodes().addAll((Collection<? extends GuiGraphNode>)newValue); + return; + case GraphPackage.GUI_GRAPH__EDGES: + getEdges().clear(); + getEdges().addAll((Collection<? extends GuiGraphEdge>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH__NODES: + getNodes().clear(); + return; + case GraphPackage.GUI_GRAPH__EDGES: + getEdges().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH__NODES: + return nodes != null && !nodes.isEmpty(); + case GraphPackage.GUI_GRAPH__EDGES: + return edges != null && !edges.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //GuiGraphImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphItemImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphItemImpl.java new file mode 100644 index 0000000..e6c1fb3 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphItemImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============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.GuiGraphItem; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Graph Item</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl#getTooltip <em>Tooltip</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphItemImpl#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiGraphItemImpl extends MinimalEObjectImpl.Container implements GuiGraphItem { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected static final String TOOLTIP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTooltip() <em>Tooltip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTooltip() + * @generated + * @ordered + */ + protected String tooltip = TOOLTIP_EDEFAULT; + + /** + * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected static final String URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected String url = URL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiGraphItemImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return GraphPackage.Literals.GUI_GRAPH_ITEM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_ITEM__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTooltip() { + return tooltip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTooltip(String newTooltip) { + String oldTooltip = tooltip; + tooltip = newTooltip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_ITEM__TOOLTIP, oldTooltip, tooltip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUrl() { + return url; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUrl(String newUrl) { + String oldUrl = url; + url = newUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_ITEM__URL, oldUrl, url)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_ITEM__NAME: + return getName(); + case GraphPackage.GUI_GRAPH_ITEM__TOOLTIP: + return getTooltip(); + case GraphPackage.GUI_GRAPH_ITEM__URL: + return getUrl(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_ITEM__NAME: + setName((String)newValue); + return; + case GraphPackage.GUI_GRAPH_ITEM__TOOLTIP: + setTooltip((String)newValue); + return; + case GraphPackage.GUI_GRAPH_ITEM__URL: + setUrl((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_ITEM__NAME: + setName(NAME_EDEFAULT); + return; + case GraphPackage.GUI_GRAPH_ITEM__TOOLTIP: + setTooltip(TOOLTIP_EDEFAULT); + return; + case GraphPackage.GUI_GRAPH_ITEM__URL: + setUrl(URL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_ITEM__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case GraphPackage.GUI_GRAPH_ITEM__TOOLTIP: + return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); + case GraphPackage.GUI_GRAPH_ITEM__URL: + return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", tooltip: "); + result.append(tooltip); + result.append(", Url: "); + result.append(url); + result.append(')'); + return result.toString(); + } + +} //GuiGraphItemImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphNodeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphNodeImpl.java new file mode 100644 index 0000000..431c294 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/impl/GuiGraphNodeImpl.java @@ -0,0 +1,345 @@ + +/*- + * ============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.GuiGraphNode; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Graph Node</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl#getX <em>X</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl#getY <em>Y</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl#getH <em>H</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.graph.impl.GuiGraphNodeImpl#getW <em>W</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiGraphNodeImpl extends GuiGraphItemImpl implements GuiGraphNode { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final Integer X_EDEFAULT = null; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected Integer x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final Integer Y_EDEFAULT = null; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected Integer y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getH() <em>H</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getH() + * @generated + * @ordered + */ + protected static final Integer H_EDEFAULT = null; + + /** + * The cached value of the '{@link #getH() <em>H</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getH() + * @generated + * @ordered + */ + protected Integer h = H_EDEFAULT; + + /** + * The default value of the '{@link #getW() <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getW() + * @generated + * @ordered + */ + protected static final Integer W_EDEFAULT = null; + + /** + * The cached value of the '{@link #getW() <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getW() + * @generated + * @ordered + */ + protected Integer w = W_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiGraphNodeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return GraphPackage.Literals.GUI_GRAPH_NODE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(Integer newX) { + Integer oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_NODE__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(Integer newY) { + Integer oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_NODE__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getH() { + return h; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setH(Integer newH) { + Integer oldH = h; + h = newH; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_NODE__H, oldH, h)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getW() { + return w; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setW(Integer newW) { + Integer oldW = w; + w = newW; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, GraphPackage.GUI_GRAPH_NODE__W, oldW, w)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_NODE__X: + return getX(); + case GraphPackage.GUI_GRAPH_NODE__Y: + return getY(); + case GraphPackage.GUI_GRAPH_NODE__H: + return getH(); + case GraphPackage.GUI_GRAPH_NODE__W: + return getW(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_NODE__X: + setX((Integer)newValue); + return; + case GraphPackage.GUI_GRAPH_NODE__Y: + setY((Integer)newValue); + return; + case GraphPackage.GUI_GRAPH_NODE__H: + setH((Integer)newValue); + return; + case GraphPackage.GUI_GRAPH_NODE__W: + setW((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_NODE__X: + setX(X_EDEFAULT); + return; + case GraphPackage.GUI_GRAPH_NODE__Y: + setY(Y_EDEFAULT); + return; + case GraphPackage.GUI_GRAPH_NODE__H: + setH(H_EDEFAULT); + return; + case GraphPackage.GUI_GRAPH_NODE__W: + setW(W_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case GraphPackage.GUI_GRAPH_NODE__X: + return X_EDEFAULT == null ? x != null : !X_EDEFAULT.equals(x); + case GraphPackage.GUI_GRAPH_NODE__Y: + return Y_EDEFAULT == null ? y != null : !Y_EDEFAULT.equals(y); + case GraphPackage.GUI_GRAPH_NODE__H: + return H_EDEFAULT == null ? h != null : !H_EDEFAULT.equals(h); + case GraphPackage.GUI_GRAPH_NODE__W: + return W_EDEFAULT == null ? w != null : !W_EDEFAULT.equals(w); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", h: "); + result.append(h); + result.append(", w: "); + result.append(w); + result.append(')'); + return result.toString(); + } + +} //GuiGraphNodeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/util/GraphAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/util/GraphAdapterFactory.java new file mode 100644 index 0000000..2458088 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/graph/util/GraphAdapterFactory.java @@ -0,0 +1,195 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.graph.util; + +import org.openecomp.ncomp.sirius.manager.graph.*; + +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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage + * @generated + */ +public class GraphAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static GraphPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GraphAdapterFactory() { + if (modelPackage == null) { + modelPackage = GraphPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GraphSwitch<Adapter> modelSwitch = + new GraphSwitch<Adapter>() { + @Override + public Adapter caseGuiGraph(GuiGraph object) { + return createGuiGraphAdapter(); + } + @Override + public Adapter caseGuiGraphItem(GuiGraphItem object) { + return createGuiGraphItemAdapter(); + } + @Override + public Adapter caseGuiGraphNode(GuiGraphNode object) { + return createGuiGraphNodeAdapter(); + } + @Override + public Adapter caseGuiGraphEdge(GuiGraphEdge object) { + return createGuiGraphEdgeAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Gui Graph</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Graph Item</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Graph Node</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Gui Graph Edge</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.graph.GraphPackage + * @generated + */ +public class GraphSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static GraphPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GraphSwitch() { + if (modelPackage == null) { + modelPackage = GraphPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Gui Graph</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Graph</em>'. + * @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 '<em>Gui Graph Item</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Graph Item</em>'. + * @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 '<em>Gui Graph Node</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Graph Node</em>'. + * @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 '<em>Gui Graph Edge</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Gui Graph Edge</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Abstract Property</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Module</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.Module#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.Module#getSubModules <em>Sub Modules</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModule() + * @model + * @generated + */ +public interface Module extends NamedEntity { + /** + * Returns the value of the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' 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 <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the '<em><b>Sub Modules</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.properties.Module}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sub Modules</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sub Modules</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModule_SubModules() + * @model containment="true" + * @generated + */ + EList<Module> getSubModules(); + +} // Module diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/ModuleContainer.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/ModuleContainer.java new file mode 100644 index 0000000..ec990db --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/ModuleContainer.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.properties; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Module Container</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.ModuleContainer#getModules <em>Modules</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModuleContainer() + * @model abstract="true" + * @generated + */ +public interface ModuleContainer extends EObject { + /** + * Returns the value of the '<em><b>Modules</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.properties.Module}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Modules</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Modules</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModuleContainer_Modules() + * @model containment="true" + * @generated + */ + EList<Module> getModules(); + +} // ModuleContainer diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/ModuleProperty.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/ModuleProperty.java new file mode 100644 index 0000000..3495d87 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/ModuleProperty.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.properties; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Module Property</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getModuleProperty() + * @model + * @generated + */ +public interface ModuleProperty extends AbstractProperty, Module { +} // ModuleProperty diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/PropertiesFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/PropertiesFactory.java new file mode 100644 index 0000000..80cd5a5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/PropertiesFactory.java @@ -0,0 +1,81 @@ + +/*- + * ============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.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage + * @generated + */ +public interface PropertiesFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + PropertiesFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Property</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Property</em>'. + * @generated + */ + Property createProperty(); + + /** + * Returns a new object of class '<em>Module Property</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Module Property</em>'. + * @generated + */ + ModuleProperty createModuleProperty(); + + /** + * Returns a new object of class '<em>Module</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Module</em>'. + * @generated + */ + Module createModule(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + PropertiesPackage getPropertiesPackage(); + +} //PropertiesFactory diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/PropertiesPackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/PropertiesPackage.java new file mode 100644 index 0000000..5f1bef1 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/PropertiesPackage.java @@ -0,0 +1,581 @@ + +/*- + * ============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.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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager'" + * annotation="http://www.eclipse.org/emf/2011/Xcore GenModel='http://www.eclipse.org/emf/2002/GenModel' doc='http://openecomp.org/sirius/doc'" + * @generated + */ +public interface PropertiesPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "properties"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.properties"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "properties"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + PropertiesPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.AbstractPropertyImpl <em>Abstract Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.AbstractPropertyImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getAbstractProperty() + * @generated + */ + int ABSTRACT_PROPERTY = 0; + + /** + * The number of structural features of the '<em>Abstract Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_PROPERTY_FEATURE_COUNT = 0; + + /** + * The number of operations of the '<em>Abstract Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_PROPERTY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.PropertyImpl <em>Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertyImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getProperty() + * @generated + */ + int PROPERTY = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROPERTY__NAME = ABSTRACT_PROPERTY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROPERTY__VALUE = ABSTRACT_PROPERTY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROPERTY_FEATURE_COUNT = ABSTRACT_PROPERTY_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROPERTY_OPERATION_COUNT = ABSTRACT_PROPERTY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl <em>Module Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getModuleProperty() + * @generated + */ + int MODULE_PROPERTY = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY__NAME = ABSTRACT_PROPERTY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY__LAST_POLLED = ABSTRACT_PROPERTY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY__LAST_CHANGED = ABSTRACT_PROPERTY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY__CREATED = ABSTRACT_PROPERTY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY__VERSION = ABSTRACT_PROPERTY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Sub Modules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY__SUB_MODULES = ABSTRACT_PROPERTY_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Module Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY_FEATURE_COUNT = ABSTRACT_PROPERTY_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Module Property</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_PROPERTY_OPERATION_COUNT = ABSTRACT_PROPERTY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleImpl <em>Module</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.ModuleImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getModule() + * @generated + */ + int MODULE = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE__VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Sub Modules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE__SUB_MODULES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Module</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Module</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleContainerImpl <em>Module Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.ModuleContainerImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getModuleContainer() + * @generated + */ + int MODULE_CONTAINER = 4; + + /** + * The feature id for the '<em><b>Modules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_CONTAINER__MODULES = 0; + + /** + * The number of structural features of the '<em>Module Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_CONTAINER_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Module Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MODULE_CONTAINER_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.properties.AbstractProperty <em>Abstract Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Abstract Property</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.AbstractProperty + * @generated + */ + EClass getAbstractProperty(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.properties.Property <em>Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Property</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.Property + * @generated + */ + EClass getProperty(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.properties.Property#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.Property#getName() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.properties.Property#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.Property#getValue() + * @see #getProperty() + * @generated + */ + EAttribute getProperty_Value(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.properties.ModuleProperty <em>Module Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Module Property</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.ModuleProperty + * @generated + */ + EClass getModuleProperty(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.properties.Module <em>Module</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Module</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.Module + * @generated + */ + EClass getModule(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.properties.Module#getVersion <em>Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Version</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.Module#getVersion() + * @see #getModule() + * @generated + */ + EAttribute getModule_Version(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.properties.Module#getSubModules <em>Sub Modules</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Sub Modules</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.Module#getSubModules() + * @see #getModule() + * @generated + */ + EReference getModule_SubModules(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.properties.ModuleContainer <em>Module Container</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Module Container</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.ModuleContainer + * @generated + */ + EClass getModuleContainer(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.properties.ModuleContainer#getModules <em>Modules</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Modules</em>'. + * @see org.openecomp.ncomp.sirius.manager.properties.ModuleContainer#getModules() + * @see #getModuleContainer() + * @generated + */ + EReference getModuleContainer_Modules(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + PropertiesFactory getPropertiesFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.AbstractPropertyImpl <em>Abstract Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.AbstractPropertyImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getAbstractProperty() + * @generated + */ + EClass ABSTRACT_PROPERTY = eINSTANCE.getAbstractProperty(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.PropertyImpl <em>Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertyImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getProperty() + * @generated + */ + EClass PROPERTY = eINSTANCE.getProperty(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROPERTY__NAME = eINSTANCE.getProperty_Name(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PROPERTY__VALUE = eINSTANCE.getProperty_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl <em>Module Property</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getModuleProperty() + * @generated + */ + EClass MODULE_PROPERTY = eINSTANCE.getModuleProperty(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleImpl <em>Module</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.ModuleImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getModule() + * @generated + */ + EClass MODULE = eINSTANCE.getModule(); + + /** + * The meta object literal for the '<em><b>Version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MODULE__VERSION = eINSTANCE.getModule_Version(); + + /** + * The meta object literal for the '<em><b>Sub Modules</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MODULE__SUB_MODULES = eINSTANCE.getModule_SubModules(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleContainerImpl <em>Module Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.impl.ModuleContainerImpl + * @see org.openecomp.ncomp.sirius.manager.properties.impl.PropertiesPackageImpl#getModuleContainer() + * @generated + */ + EClass MODULE_CONTAINER = eINSTANCE.getModuleContainer(); + + /** + * The meta object literal for the '<em><b>Modules</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MODULE_CONTAINER__MODULES = eINSTANCE.getModuleContainer_Modules(); + + } + +} //PropertiesPackage diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/Property.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/Property.java new file mode 100644 index 0000000..e716bec --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/Property.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.sirius.manager.properties; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Property</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.Property#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.Property#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage#getProperty() + * @model + * @generated + */ +public interface Property extends AbstractProperty { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' 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 <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' 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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Abstract Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class AbstractPropertyImpl extends MinimalEObjectImpl.Container implements AbstractProperty { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AbstractPropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Module Container</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleContainerImpl#getModules <em>Modules</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class ModuleContainerImpl extends MinimalEObjectImpl.Container implements ModuleContainer { + /** + * The cached value of the '{@link #getModules() <em>Modules</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModules() + * @generated + * @ordered + */ + protected EList<Module> modules; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ModuleContainerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.MODULE_CONTAINER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Module> getModules() { + if (modules == null) { + modules = new EObjectContainmentEList<Module>(Module.class, this, PropertiesPackage.MODULE_CONTAINER__MODULES); + } + return modules; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case PropertiesPackage.MODULE_CONTAINER__MODULES: + return ((InternalEList<?>)getModules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PropertiesPackage.MODULE_CONTAINER__MODULES: + return getModules(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PropertiesPackage.MODULE_CONTAINER__MODULES: + getModules().clear(); + getModules().addAll((Collection<? extends Module>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PropertiesPackage.MODULE_CONTAINER__MODULES: + getModules().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PropertiesPackage.MODULE_CONTAINER__MODULES: + return modules != null && !modules.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ModuleContainerImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModuleImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModuleImpl.java new file mode 100644 index 0000000..e5d7536 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModuleImpl.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.properties.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.sirius.manager.properties.Module; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Module</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModuleImpl#getSubModules <em>Sub Modules</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ModuleImpl extends NamedEntityImpl implements Module { + /** + * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * The cached value of the '{@link #getSubModules() <em>Sub Modules</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubModules() + * @generated + * @ordered + */ + protected EList<Module> subModules; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ModuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.MODULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVersion() { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.MODULE__VERSION, oldVersion, version)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Module> getSubModules() { + if (subModules == null) { + subModules = new EObjectContainmentEList<Module>(Module.class, this, PropertiesPackage.MODULE__SUB_MODULES); + } + return subModules; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case PropertiesPackage.MODULE__SUB_MODULES: + return ((InternalEList<?>)getSubModules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PropertiesPackage.MODULE__VERSION: + return getVersion(); + case PropertiesPackage.MODULE__SUB_MODULES: + return getSubModules(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PropertiesPackage.MODULE__VERSION: + setVersion((String)newValue); + return; + case PropertiesPackage.MODULE__SUB_MODULES: + getSubModules().clear(); + getSubModules().addAll((Collection<? extends Module>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PropertiesPackage.MODULE__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case PropertiesPackage.MODULE__SUB_MODULES: + getSubModules().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PropertiesPackage.MODULE__VERSION: + return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); + case PropertiesPackage.MODULE__SUB_MODULES: + return subModules != null && !subModules.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (version: "); + result.append(version); + result.append(')'); + return result.toString(); + } + +} //ModuleImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModulePropertyImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModulePropertyImpl.java new file mode 100644 index 0000000..82e3a9f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/ModulePropertyImpl.java @@ -0,0 +1,514 @@ + +/*- + * ============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.core.CorePackage; +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.sirius.manager.properties.Module; +import org.openecomp.ncomp.sirius.manager.properties.ModuleProperty; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; + +import java.util.Collection; +import java.util.Date; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Module Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl#getLastPolled <em>Last Polled</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl#getLastChanged <em>Last Changed</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl#getCreated <em>Created</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.ModulePropertyImpl#getSubModules <em>Sub Modules</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ModulePropertyImpl extends AbstractPropertyImpl implements ModuleProperty { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getLastPolled() <em>Last Polled</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLastPolled() + * @generated + * @ordered + */ + protected static final Date LAST_POLLED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLastPolled() <em>Last Polled</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLastPolled() + * @generated + * @ordered + */ + protected Date lastPolled = LAST_POLLED_EDEFAULT; + + /** + * The default value of the '{@link #getLastChanged() <em>Last Changed</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLastChanged() + * @generated + * @ordered + */ + protected static final Date LAST_CHANGED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLastChanged() <em>Last Changed</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLastChanged() + * @generated + * @ordered + */ + protected Date lastChanged = LAST_CHANGED_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected static final Date CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected Date created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * The cached value of the '{@link #getSubModules() <em>Sub Modules</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubModules() + * @generated + * @ordered + */ + protected EList<Module> subModules; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ModulePropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.MODULE_PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.MODULE_PROPERTY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getLastPolled() { + return lastPolled; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLastPolled(Date newLastPolled) { + Date oldLastPolled = lastPolled; + lastPolled = newLastPolled; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.MODULE_PROPERTY__LAST_POLLED, oldLastPolled, lastPolled)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getLastChanged() { + return lastChanged; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLastChanged(Date newLastChanged) { + Date oldLastChanged = lastChanged; + lastChanged = newLastChanged; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED, oldLastChanged, lastChanged)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getCreated() { + return created; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated(Date newCreated) { + Date oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.MODULE_PROPERTY__CREATED, oldCreated, created)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVersion() { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.MODULE_PROPERTY__VERSION, oldVersion, version)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Module> getSubModules() { + if (subModules == null) { + subModules = new EObjectContainmentEList<Module>(Module.class, this, PropertiesPackage.MODULE_PROPERTY__SUB_MODULES); + } + return subModules; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case PropertiesPackage.MODULE_PROPERTY__SUB_MODULES: + return ((InternalEList<?>)getSubModules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PropertiesPackage.MODULE_PROPERTY__NAME: + return getName(); + case PropertiesPackage.MODULE_PROPERTY__LAST_POLLED: + return getLastPolled(); + case PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED: + return getLastChanged(); + case PropertiesPackage.MODULE_PROPERTY__CREATED: + return getCreated(); + case PropertiesPackage.MODULE_PROPERTY__VERSION: + return getVersion(); + case PropertiesPackage.MODULE_PROPERTY__SUB_MODULES: + return getSubModules(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PropertiesPackage.MODULE_PROPERTY__NAME: + setName((String)newValue); + return; + case PropertiesPackage.MODULE_PROPERTY__LAST_POLLED: + setLastPolled((Date)newValue); + return; + case PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED: + setLastChanged((Date)newValue); + return; + case PropertiesPackage.MODULE_PROPERTY__CREATED: + setCreated((Date)newValue); + return; + case PropertiesPackage.MODULE_PROPERTY__VERSION: + setVersion((String)newValue); + return; + case PropertiesPackage.MODULE_PROPERTY__SUB_MODULES: + getSubModules().clear(); + getSubModules().addAll((Collection<? extends Module>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PropertiesPackage.MODULE_PROPERTY__NAME: + setName(NAME_EDEFAULT); + return; + case PropertiesPackage.MODULE_PROPERTY__LAST_POLLED: + setLastPolled(LAST_POLLED_EDEFAULT); + return; + case PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED: + setLastChanged(LAST_CHANGED_EDEFAULT); + return; + case PropertiesPackage.MODULE_PROPERTY__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case PropertiesPackage.MODULE_PROPERTY__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case PropertiesPackage.MODULE_PROPERTY__SUB_MODULES: + getSubModules().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PropertiesPackage.MODULE_PROPERTY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case PropertiesPackage.MODULE_PROPERTY__LAST_POLLED: + return LAST_POLLED_EDEFAULT == null ? lastPolled != null : !LAST_POLLED_EDEFAULT.equals(lastPolled); + case PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED: + return LAST_CHANGED_EDEFAULT == null ? lastChanged != null : !LAST_CHANGED_EDEFAULT.equals(lastChanged); + case PropertiesPackage.MODULE_PROPERTY__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case PropertiesPackage.MODULE_PROPERTY__VERSION: + return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); + case PropertiesPackage.MODULE_PROPERTY__SUB_MODULES: + return subModules != null && !subModules.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == NamedEntity.class) { + switch (derivedFeatureID) { + case PropertiesPackage.MODULE_PROPERTY__NAME: return CorePackage.NAMED_ENTITY__NAME; + case PropertiesPackage.MODULE_PROPERTY__LAST_POLLED: return CorePackage.NAMED_ENTITY__LAST_POLLED; + case PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED: return CorePackage.NAMED_ENTITY__LAST_CHANGED; + case PropertiesPackage.MODULE_PROPERTY__CREATED: return CorePackage.NAMED_ENTITY__CREATED; + default: return -1; + } + } + if (baseClass == Module.class) { + switch (derivedFeatureID) { + case PropertiesPackage.MODULE_PROPERTY__VERSION: return PropertiesPackage.MODULE__VERSION; + case PropertiesPackage.MODULE_PROPERTY__SUB_MODULES: return PropertiesPackage.MODULE__SUB_MODULES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == NamedEntity.class) { + switch (baseFeatureID) { + case CorePackage.NAMED_ENTITY__NAME: return PropertiesPackage.MODULE_PROPERTY__NAME; + case CorePackage.NAMED_ENTITY__LAST_POLLED: return PropertiesPackage.MODULE_PROPERTY__LAST_POLLED; + case CorePackage.NAMED_ENTITY__LAST_CHANGED: return PropertiesPackage.MODULE_PROPERTY__LAST_CHANGED; + case CorePackage.NAMED_ENTITY__CREATED: return PropertiesPackage.MODULE_PROPERTY__CREATED; + default: return -1; + } + } + if (baseClass == Module.class) { + switch (baseFeatureID) { + case PropertiesPackage.MODULE__VERSION: return PropertiesPackage.MODULE_PROPERTY__VERSION; + case PropertiesPackage.MODULE__SUB_MODULES: return PropertiesPackage.MODULE_PROPERTY__SUB_MODULES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", lastPolled: "); + result.append(lastPolled); + result.append(", lastChanged: "); + result.append(lastChanged); + result.append(", created: "); + result.append(created); + result.append(", version: "); + result.append(version); + result.append(')'); + return result.toString(); + } + +} //ModulePropertyImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertiesFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertiesFactoryImpl.java new file mode 100644 index 0000000..6ce17fb --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertiesFactoryImpl.java @@ -0,0 +1,138 @@ + +/*- + * ============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.*; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static PropertiesFactory init() { + try { + PropertiesFactory thePropertiesFactory = (PropertiesFactory)EPackage.Registry.INSTANCE.getEFactory(PropertiesPackage.eNS_URI); + if (thePropertiesFactory != null) { + return thePropertiesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new PropertiesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertiesFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case PropertiesPackage.PROPERTY: return createProperty(); + case PropertiesPackage.MODULE_PROPERTY: return createModuleProperty(); + case PropertiesPackage.MODULE: return createModule(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Property createProperty() { + PropertyImpl property = new PropertyImpl(); + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ModuleProperty createModuleProperty() { + ModulePropertyImpl moduleProperty = new ModulePropertyImpl(); + return moduleProperty; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Module createModule() { + ModuleImpl module = new ModuleImpl(); + return module; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertiesPackage getPropertiesPackage() { + return (PropertiesPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static PropertiesPackage getPackage() { + return PropertiesPackage.eINSTANCE; + } + +} //PropertiesFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertiesPackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertiesPackageImpl.java new file mode 100644 index 0000000..311d8c3 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/impl/PropertiesPackageImpl.java @@ -0,0 +1,362 @@ + +/*- + * ============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.core.CorePackage; + +import org.openecomp.ncomp.sirius.manager.properties.AbstractProperty; +import org.openecomp.ncomp.sirius.manager.properties.Module; +import org.openecomp.ncomp.sirius.manager.properties.ModuleContainer; +import org.openecomp.ncomp.sirius.manager.properties.ModuleProperty; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesFactory; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; +import org.openecomp.ncomp.sirius.manager.properties.Property; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass abstractPropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass propertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass modulePropertyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass moduleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass moduleContainerEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAbstractProperty() { + return abstractPropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getProperty() { + return propertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProperty_Name() { + return (EAttribute)propertyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getProperty_Value() { + return (EAttribute)propertyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getModuleProperty() { + return modulePropertyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getModule() { + return moduleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getModule_Version() { + return (EAttribute)moduleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getModule_SubModules() { + return (EReference)moduleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getModuleContainer() { + return moduleContainerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getModuleContainer_Modules() { + return (EReference)moduleContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertiesFactory getPropertiesFactory() { + return (PropertiesFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Property</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.PropertyImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.properties.impl.PropertyImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PropertyImpl extends AbstractPropertyImpl implements Property { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PropertyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.PROPERTY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.PROPERTY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.PROPERTY__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case PropertiesPackage.PROPERTY__NAME: + return getName(); + case PropertiesPackage.PROPERTY__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PropertiesPackage.PROPERTY__NAME: + setName((String)newValue); + return; + case PropertiesPackage.PROPERTY__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PropertiesPackage.PROPERTY__NAME: + setName(NAME_EDEFAULT); + return; + case PropertiesPackage.PROPERTY__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PropertiesPackage.PROPERTY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case PropertiesPackage.PROPERTY__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //PropertyImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/util/PropertiesAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/util/PropertiesAdapterFactory.java new file mode 100644 index 0000000..3a15e72 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/properties/util/PropertiesAdapterFactory.java @@ -0,0 +1,233 @@ + +/*- + * ============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.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage + * @generated + */ +public class PropertiesAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static PropertiesPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertiesAdapterFactory() { + if (modelPackage == null) { + modelPackage = PropertiesPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PropertiesSwitch<Adapter> modelSwitch = + new PropertiesSwitch<Adapter>() { + @Override + public Adapter caseAbstractProperty(AbstractProperty object) { + return createAbstractPropertyAdapter(); + } + @Override + public Adapter caseProperty(Property object) { + return createPropertyAdapter(); + } + @Override + public Adapter caseModuleProperty(ModuleProperty object) { + return createModulePropertyAdapter(); + } + @Override + public Adapter caseModule(Module object) { + return createModuleAdapter(); + } + @Override + public Adapter caseModuleContainer(ModuleContainer object) { + return createModuleContainerAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Abstract Property</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Property</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Module Property</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Module</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Module Container</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Named Entity</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage + * @generated + */ +public class PropertiesSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static PropertiesPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertiesSwitch() { + if (modelPackage == null) { + modelPackage = PropertiesPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Abstract Property</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Abstract Property</em>'. + * @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 '<em>Property</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Property</em>'. + * @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 '<em>Module Property</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Module Property</em>'. + * @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 '<em>Module</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Module</em>'. + * @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 '<em>Module Container</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Module Container</em>'. + * @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 '<em>Named Entity</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Named Entity</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Abstract Management Server</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getConfiguration <em>Configuration</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getComponent <em>Component</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServer() + * @model + * @generated + */ +public interface AbstractManagementServer extends SouthBoundApiWithProxy { + /** + * Returns the value of the '<em><b>Configuration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Configuration</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Configuration</em>' 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 <em>Configuration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Configuration</em>' containment reference. + * @see #getConfiguration() + * @generated + */ + void setConfiguration(AbstractManagementServerConfiguration value); + + /** + * Returns the value of the '<em><b>Component</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Component</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Component</em>' 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 <em>Component</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component</em>' containment reference. + * @see #getComponent() + * @generated + */ + void setComponent(Component value); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" pathUnique="false" startUnique="false" endUnique="false" optionUnique="false" relativeIntervalUnique="false" + * @generated + */ + EList<DoubleMetric> getValues(JSONObject cx, String path, Long start, Long end, MetricValueOption option, boolean relativeInterval); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" pathUnique="false" metricsUnique="false" metricsMany="true" startUnique="false" endUnique="false" optionUnique="false" relativeIntervalUnique="false" + * @generated + */ + EList<DoubleMetric> getValuesAll(JSONObject cx, String path, EList<String> metrics, Long start, Long end, MetricValueOption option, boolean relativeInterval); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" pathUnique="false" startUnique="false" endUnique="false" + * @generated + */ + EList<LogMessage> getMessages(JSONObject cx, String path, Long start, Long end); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" userNameUnique="false" actionUnique="false" resourcePathUnique="false" contextDataType="org.openecomp.ncomp.core.JsonObject" contextUnique="false" + * @generated + */ + LoggerInfo getRequestLogger(String userName, String action, String resourcePath, JSONObject context); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" pathUnique="false" functionUnique="false" + * @generated + */ + EList<ValuePair> evaluate(String path, Function function); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model pathUnique="false" functionUnique="false" + * @generated + */ + void update(String path, Function function); + +} // AbstractManagementServer diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/AbstractManagementServerConfiguration.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/AbstractManagementServerConfiguration.java new file mode 100644 index 0000000..347dacf --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/AbstractManagementServerConfiguration.java @@ -0,0 +1,135 @@ + +/*- + * ============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.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.function.Function; +import org.openecomp.ncomp.core.logs.LogMessageRule; +import org.openecomp.ncomp.core.metrics.MetricValueOption; +import org.openecomp.ncomp.sirius.manager.properties.ModuleContainer; +import org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate; +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Abstract Management Server Configuration</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getRules <em>Rules</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getMetricOptions <em>Metric Options</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getTableTemplates <em>Table Templates</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getAlertTemplates <em>Alert Templates</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getFunctions <em>Functions</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration() + * @model + * @generated + */ +public interface AbstractManagementServerConfiguration extends ModuleContainer { + /** + * Returns the value of the '<em><b>Rules</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.logs.LogMessageRule}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rules</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rules</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_Rules() + * @model containment="true" + * @generated + */ + EList<LogMessageRule> getRules(); + + /** + * Returns the value of the '<em><b>Metric Options</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.metrics.MetricValueOption}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Metric Options</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Metric Options</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_MetricOptions() + * @model containment="true" ordered="false" + * @generated + */ + EList<MetricValueOption> getMetricOptions(); + + /** + * Returns the value of the '<em><b>Table Templates</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table Templates</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table Templates</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_TableTemplates() + * @model containment="true" + * @generated + */ + EList<AbstractTableTemplate> getTableTemplates(); + + /** + * Returns the value of the '<em><b>Alert Templates</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.alerts.AlertingTemplate}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Alert Templates</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Alert Templates</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_AlertTemplates() + * @model containment="true" ordered="false" + * @generated + */ + EList<AlertingTemplate> getAlertTemplates(); + + /** + * Returns the value of the '<em><b>Functions</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.function.Function}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Functions</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Functions</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getAbstractManagementServerConfiguration_Functions() + * @model containment="true" ordered="false" + * @generated + */ + EList<Function> getFunctions(); + +} // AbstractManagementServerConfiguration diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/LoggerInfo.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/LoggerInfo.java new file mode 100644 index 0000000..20db441 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/LoggerInfo.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.server; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Logger Info</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.LoggerInfo#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getLoggerInfo() + * @model + * @generated + */ +public interface LoggerInfo extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Management Info</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getIp <em>Ip</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getMetrics <em>Metrics</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getLogs <em>Logs</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getProps <em>Props</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo() + * @model + * @generated + */ +public interface ManagementInfo extends EObject { + /** + * Returns the value of the '<em><b>Ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ip</em>' 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 <em>Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ip</em>' attribute. + * @see #getIp() + * @generated + */ + void setIp(String value); + + /** + * Returns the value of the '<em><b>Metrics</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.metrics.Metric}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Metrics</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Metrics</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo_Metrics() + * @model containment="true" + * @generated + */ + EList<Metric> getMetrics(); + + /** + * Returns the value of the '<em><b>Logs</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.logs.LogMessage}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Logs</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Logs</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo_Logs() + * @model containment="true" + * @generated + */ + EList<LogMessage> getLogs(); + + /** + * Returns the value of the '<em><b>Props</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.properties.AbstractProperty}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Props</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Props</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getManagementInfo_Props() + * @model containment="true" + * @generated + */ + EList<AbstractProperty> getProps(); + +} // ManagementInfo diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/Module.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/Module.java new file mode 100644 index 0000000..7b9a990 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/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.server; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Module</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.Module#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.Module#getSubModules <em>Sub Modules</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModule() + * @model + * @generated + */ +public interface Module extends NamedEntity { + /** + * Returns the value of the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' 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 <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the '<em><b>Sub Modules</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.server.Module}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sub Modules</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sub Modules</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModule_SubModules() + * @model containment="true" + * @generated + */ + EList<Module> getSubModules(); + +} // Module diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ModuleContainer.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ModuleContainer.java new file mode 100644 index 0000000..32c7f09 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ModuleContainer.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.server; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Module Container</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.ModuleContainer#getModules <em>Modules</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModuleContainer() + * @model abstract="true" + * @generated + */ +public interface ModuleContainer extends EObject { + /** + * Returns the value of the '<em><b>Modules</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.server.Module}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Modules</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Modules</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getModuleContainer_Modules() + * @model containment="true" + * @generated + */ + EList<Module> getModules(); + +} // ModuleContainer diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/Response.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/Response.java new file mode 100644 index 0000000..51e58b6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/Response.java @@ -0,0 +1,101 @@ + +/*- + * ============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.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Response</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.Response#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.Response#getMessage <em>Message</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getResponse() + * @model + * @generated + */ +public interface Response extends EObject { + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.sirius.manager.server.ResponseStatus}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see org.openecomp.ncomp.sirius.manager.server.ResponseStatus + * @see #getStatus() + * @generated + */ + void setStatus(ResponseStatus value); + + /** + * Returns the value of the '<em><b>Message</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Message</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Message</em>' 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 <em>Message</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Message</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Response Status</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getResponseStatus() + * @model + * @generated + */ +public enum ResponseStatus implements Enumerator { + /** + * The '<em><b>OK</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #OK_VALUE + * @generated + * @ordered + */ + OK(0, "OK", "OK"), + + /** + * The '<em><b>WARN</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #WARN_VALUE + * @generated + * @ordered + */ + WARN(0, "WARN", "WARN"), + + /** + * The '<em><b>ERROR</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #ERROR_VALUE + * @generated + * @ordered + */ + ERROR(0, "ERROR", "ERROR"); + + /** + * The '<em><b>OK</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>OK</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #OK + * @model + * @generated + * @ordered + */ + public static final int OK_VALUE = 0; + + /** + * The '<em><b>WARN</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>WARN</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #WARN + * @model + * @generated + * @ordered + */ + public static final int WARN_VALUE = 0; + + /** + * The '<em><b>ERROR</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>ERROR</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #ERROR + * @model + * @generated + * @ordered + */ + public static final int ERROR_VALUE = 0; + + /** + * An array of all the '<em><b>Response Status</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final ResponseStatus[] VALUES_ARRAY = + new ResponseStatus[] { + OK, + WARN, + ERROR, + }; + + /** + * A public read-only list of all the '<em><b>Response Status</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<ResponseStatus> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Response Status</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ResponseStatus get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ResponseStatus result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Response Status</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ResponseStatus getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ResponseStatus result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Response Status</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ResponseStatus get(int value) { + switch (value) { + case OK_VALUE: return OK; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private ResponseStatus(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //ResponseStatus diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ServerFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ServerFactory.java new file mode 100644 index 0000000..cffc535 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ServerFactory.java @@ -0,0 +1,117 @@ + +/*- + * ============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.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage + * @generated + */ +public interface ServerFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + ServerFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.server.impl.ServerFactoryImpl.init(); + + /** + * Returns a new object of class '<em>South Bound Api With Proxy</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>South Bound Api With Proxy</em>'. + * @generated + */ + SouthBoundApiWithProxy createSouthBoundApiWithProxy(); + + /** + * Returns a new object of class '<em>South Bound Api</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>South Bound Api</em>'. + * @generated + */ + SouthBoundApi createSouthBoundApi(); + + /** + * Returns a new object of class '<em>Management Info</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Management Info</em>'. + * @generated + */ + ManagementInfo createManagementInfo(); + + /** + * Returns a new object of class '<em>Response</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Response</em>'. + * @generated + */ + Response createResponse(); + + /** + * Returns a new object of class '<em>Logger Info</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Logger Info</em>'. + * @generated + */ + LoggerInfo createLoggerInfo(); + + /** + * Returns a new object of class '<em>Abstract Management Server</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Abstract Management Server</em>'. + * @generated + */ + AbstractManagementServer createAbstractManagementServer(); + + /** + * Returns a new object of class '<em>Abstract Management Server Configuration</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Abstract Management Server Configuration</em>'. + * @generated + */ + AbstractManagementServerConfiguration createAbstractManagementServerConfiguration(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + ServerPackage getServerPackage(); + +} //ServerFactory diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ServerPackage.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ServerPackage.java new file mode 100644 index 0000000..8781f5b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/ServerPackage.java @@ -0,0 +1,1210 @@ + +/*- + * ============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.sirius.manager.properties.PropertiesPackage; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ServerFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager'" + * annotation="http://www.eclipse.org/emf/2011/Xcore GenModel='http://www.eclipse.org/emf/2002/GenModel' doc='http://openecomp.org/sirius/doc'" + * @generated + */ +public interface ServerPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "server"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.server"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "server"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + ServerPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiImpl <em>South Bound Api</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getSouthBoundApi() + * @generated + */ + int SOUTH_BOUND_API = 1; + + /** + * The number of structural features of the '<em>South Bound Api</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_FEATURE_COUNT = 0; + + /** + * The operation id for the '<em>Logs</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API___LOGS__JSONOBJECT_ELIST = 0; + + /** + * The operation id for the '<em>Metrics</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API___METRICS__JSONOBJECT_ELIST = 1; + + /** + * The operation id for the '<em>Properties</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API___PROPERTIES__JSONOBJECT_ELIST = 2; + + /** + * The number of operations of the '<em>South Bound Api</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_OPERATION_COUNT = 3; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiWithProxyImpl <em>South Bound Api With Proxy</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiWithProxyImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getSouthBoundApiWithProxy() + * @generated + */ + int SOUTH_BOUND_API_WITH_PROXY = 0; + + /** + * The number of structural features of the '<em>South Bound Api With Proxy</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT = SOUTH_BOUND_API_FEATURE_COUNT + 0; + + /** + * The operation id for the '<em>Logs</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_WITH_PROXY___LOGS__JSONOBJECT_ELIST = SOUTH_BOUND_API___LOGS__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Metrics</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_WITH_PROXY___METRICS__JSONOBJECT_ELIST = SOUTH_BOUND_API___METRICS__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Properties</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_WITH_PROXY___PROPERTIES__JSONOBJECT_ELIST = SOUTH_BOUND_API___PROPERTIES__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Upload Info</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST = SOUTH_BOUND_API_OPERATION_COUNT + 0; + + /** + * The number of operations of the '<em>South Bound Api With Proxy</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT = SOUTH_BOUND_API_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl <em>Management Info</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getManagementInfo() + * @generated + */ + int MANAGEMENT_INFO = 2; + + /** + * The feature id for the '<em><b>Ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANAGEMENT_INFO__IP = 0; + + /** + * The feature id for the '<em><b>Metrics</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANAGEMENT_INFO__METRICS = 1; + + /** + * The feature id for the '<em><b>Logs</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANAGEMENT_INFO__LOGS = 2; + + /** + * The feature id for the '<em><b>Props</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANAGEMENT_INFO__PROPS = 3; + + /** + * The number of structural features of the '<em>Management Info</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANAGEMENT_INFO_FEATURE_COUNT = 4; + + /** + * The number of operations of the '<em>Management Info</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANAGEMENT_INFO_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.ResponseImpl <em>Response</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.ResponseImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getResponse() + * @generated + */ + int RESPONSE = 3; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RESPONSE__STATUS = 0; + + /** + * The feature id for the '<em><b>Message</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RESPONSE__MESSAGE = 1; + + /** + * The number of structural features of the '<em>Response</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RESPONSE_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Response</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RESPONSE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.LoggerInfoImpl <em>Logger Info</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.LoggerInfoImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getLoggerInfo() + * @generated + */ + int LOGGER_INFO = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOGGER_INFO__NAME = 0; + + /** + * The number of structural features of the '<em>Logger Info</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOGGER_INFO_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Logger Info</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOGGER_INFO_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerImpl <em>Abstract Management Server</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getAbstractManagementServer() + * @generated + */ + int ABSTRACT_MANAGEMENT_SERVER = 5; + + /** + * The feature id for the '<em><b>Configuration</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION = SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Component</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER__COMPONENT = SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Abstract Management Server</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_FEATURE_COUNT = SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 2; + + /** + * The operation id for the '<em>Logs</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___LOGS__JSONOBJECT_ELIST = SOUTH_BOUND_API_WITH_PROXY___LOGS__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Metrics</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___METRICS__JSONOBJECT_ELIST = SOUTH_BOUND_API_WITH_PROXY___METRICS__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Properties</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___PROPERTIES__JSONOBJECT_ELIST = SOUTH_BOUND_API_WITH_PROXY___PROPERTIES__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Upload Info</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___UPLOAD_INFO__JSONOBJECT_ELIST = SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST; + + /** + * The operation id for the '<em>Get Values</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 0; + + /** + * The operation id for the '<em>Get Values All</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 1; + + /** + * The operation id for the '<em>Get Messages</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 2; + + /** + * The operation id for the '<em>Get Request Logger</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 3; + + /** + * The operation id for the '<em>Evaluate</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___EVALUATE__STRING_FUNCTION = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 4; + + /** + * The operation id for the '<em>Update</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER___UPDATE__STRING_FUNCTION = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 5; + + /** + * The number of operations of the '<em>Abstract Management Server</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_OPERATION_COUNT = SOUTH_BOUND_API_WITH_PROXY_OPERATION_COUNT + 6; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl <em>Abstract Management Server Configuration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getAbstractManagementServerConfiguration() + * @generated + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION = 6; + + /** + * The feature id for the '<em><b>Modules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__MODULES = PropertiesPackage.MODULE_CONTAINER__MODULES; + + /** + * The feature id for the '<em><b>Rules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES = PropertiesPackage.MODULE_CONTAINER_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Metric Options</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS = PropertiesPackage.MODULE_CONTAINER_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Table Templates</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES = PropertiesPackage.MODULE_CONTAINER_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Alert Templates</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES = PropertiesPackage.MODULE_CONTAINER_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Functions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS = PropertiesPackage.MODULE_CONTAINER_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Abstract Management Server Configuration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION_FEATURE_COUNT = PropertiesPackage.MODULE_CONTAINER_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Abstract Management Server Configuration</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION_OPERATION_COUNT = PropertiesPackage.MODULE_CONTAINER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.server.ResponseStatus <em>Response Status</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ResponseStatus + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getResponseStatus() + * @generated + */ + int RESPONSE_STATUS = 7; + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy <em>South Bound Api With Proxy</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>South Bound Api With Proxy</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy + * @generated + */ + EClass getSouthBoundApiWithProxy(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy#uploadInfo(org.json.JSONObject, org.eclipse.emf.common.util.EList) <em>Upload Info</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Upload Info</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy#uploadInfo(org.json.JSONObject, org.eclipse.emf.common.util.EList) + * @generated + */ + EOperation getSouthBoundApiWithProxy__UploadInfo__JSONObject_EList(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi <em>South Bound Api</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>South Bound Api</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApi + * @generated + */ + EClass getSouthBoundApi(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi#logs(org.json.JSONObject, org.eclipse.emf.common.util.EList) <em>Logs</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Logs</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApi#logs(org.json.JSONObject, org.eclipse.emf.common.util.EList) + * @generated + */ + EOperation getSouthBoundApi__Logs__JSONObject_EList(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi#metrics(org.json.JSONObject, org.eclipse.emf.common.util.EList) <em>Metrics</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Metrics</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApi#metrics(org.json.JSONObject, org.eclipse.emf.common.util.EList) + * @generated + */ + EOperation getSouthBoundApi__Metrics__JSONObject_EList(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.SouthBoundApi#properties(org.json.JSONObject, org.eclipse.emf.common.util.EList) <em>Properties</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Properties</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.SouthBoundApi#properties(org.json.JSONObject, org.eclipse.emf.common.util.EList) + * @generated + */ + EOperation getSouthBoundApi__Properties__JSONObject_EList(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo <em>Management Info</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Management Info</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.ManagementInfo + * @generated + */ + EClass getManagementInfo(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getIp <em>Ip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ip</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getIp() + * @see #getManagementInfo() + * @generated + */ + EAttribute getManagementInfo_Ip(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getMetrics <em>Metrics</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Metrics</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getMetrics() + * @see #getManagementInfo() + * @generated + */ + EReference getManagementInfo_Metrics(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getLogs <em>Logs</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Logs</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getLogs() + * @see #getManagementInfo() + * @generated + */ + EReference getManagementInfo_Logs(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getProps <em>Props</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Props</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.ManagementInfo#getProps() + * @see #getManagementInfo() + * @generated + */ + EReference getManagementInfo_Props(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.Response <em>Response</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Response</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.Response + * @generated + */ + EClass getResponse(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.server.Response#getStatus <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.Response#getStatus() + * @see #getResponse() + * @generated + */ + EAttribute getResponse_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.server.Response#getMessage <em>Message</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Message</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.Response#getMessage() + * @see #getResponse() + * @generated + */ + EAttribute getResponse_Message(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.LoggerInfo <em>Logger Info</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Logger Info</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.LoggerInfo + * @generated + */ + EClass getLoggerInfo(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.server.LoggerInfo#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.LoggerInfo#getName() + * @see #getLoggerInfo() + * @generated + */ + EAttribute getLoggerInfo_Name(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer <em>Abstract Management Server</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Abstract Management Server</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer + * @generated + */ + EClass getAbstractManagementServer(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getConfiguration <em>Configuration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Configuration</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getConfiguration() + * @see #getAbstractManagementServer() + * @generated + */ + EReference getAbstractManagementServer_Configuration(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getComponent <em>Component</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Component</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getComponent() + * @see #getAbstractManagementServer() + * @generated + */ + EReference getAbstractManagementServer_Component(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getValues(org.json.JSONObject, java.lang.String, java.lang.Long, java.lang.Long, org.openecomp.ncomp.core.metrics.MetricValueOption, boolean) <em>Get Values</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Values</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getValues(org.json.JSONObject, java.lang.String, java.lang.Long, java.lang.Long, org.openecomp.ncomp.core.metrics.MetricValueOption, boolean) + * @generated + */ + EOperation getAbstractManagementServer__GetValues__JSONObject_String_Long_Long_MetricValueOption_boolean(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getValuesAll(org.json.JSONObject, java.lang.String, org.eclipse.emf.common.util.EList, java.lang.Long, java.lang.Long, org.openecomp.ncomp.core.metrics.MetricValueOption, boolean) <em>Get Values All</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Values All</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getValuesAll(org.json.JSONObject, java.lang.String, org.eclipse.emf.common.util.EList, java.lang.Long, java.lang.Long, org.openecomp.ncomp.core.metrics.MetricValueOption, boolean) + * @generated + */ + EOperation getAbstractManagementServer__GetValuesAll__JSONObject_String_EList_Long_Long_MetricValueOption_boolean(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getMessages(org.json.JSONObject, java.lang.String, java.lang.Long, java.lang.Long) <em>Get Messages</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Messages</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getMessages(org.json.JSONObject, java.lang.String, java.lang.Long, java.lang.Long) + * @generated + */ + EOperation getAbstractManagementServer__GetMessages__JSONObject_String_Long_Long(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getRequestLogger(java.lang.String, java.lang.String, java.lang.String, org.json.JSONObject) <em>Get Request Logger</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Request Logger</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#getRequestLogger(java.lang.String, java.lang.String, java.lang.String, org.json.JSONObject) + * @generated + */ + EOperation getAbstractManagementServer__GetRequestLogger__String_String_String_JSONObject(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#evaluate(java.lang.String, org.openecomp.ncomp.core.function.Function) <em>Evaluate</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Evaluate</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#evaluate(java.lang.String, org.openecomp.ncomp.core.function.Function) + * @generated + */ + EOperation getAbstractManagementServer__Evaluate__String_Function(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#update(java.lang.String, org.openecomp.ncomp.core.function.Function) <em>Update</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Update</em>' operation. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer#update(java.lang.String, org.openecomp.ncomp.core.function.Function) + * @generated + */ + EOperation getAbstractManagementServer__Update__String_Function(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration <em>Abstract Management Server Configuration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Abstract Management Server Configuration</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration + * @generated + */ + EClass getAbstractManagementServerConfiguration(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getRules <em>Rules</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Rules</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getRules() + * @see #getAbstractManagementServerConfiguration() + * @generated + */ + EReference getAbstractManagementServerConfiguration_Rules(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getMetricOptions <em>Metric Options</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Metric Options</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getMetricOptions() + * @see #getAbstractManagementServerConfiguration() + * @generated + */ + EReference getAbstractManagementServerConfiguration_MetricOptions(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getTableTemplates <em>Table Templates</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Table Templates</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getTableTemplates() + * @see #getAbstractManagementServerConfiguration() + * @generated + */ + EReference getAbstractManagementServerConfiguration_TableTemplates(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getAlertTemplates <em>Alert Templates</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Alert Templates</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getAlertTemplates() + * @see #getAbstractManagementServerConfiguration() + * @generated + */ + EReference getAbstractManagementServerConfiguration_AlertTemplates(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getFunctions <em>Functions</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Functions</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration#getFunctions() + * @see #getAbstractManagementServerConfiguration() + * @generated + */ + EReference getAbstractManagementServerConfiguration_Functions(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.sirius.manager.server.ResponseStatus <em>Response Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Response Status</em>'. + * @see org.openecomp.ncomp.sirius.manager.server.ResponseStatus + * @generated + */ + EEnum getResponseStatus(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + ServerFactory getServerFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiWithProxyImpl <em>South Bound Api With Proxy</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiWithProxyImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getSouthBoundApiWithProxy() + * @generated + */ + EClass SOUTH_BOUND_API_WITH_PROXY = eINSTANCE.getSouthBoundApiWithProxy(); + + /** + * The meta object literal for the '<em><b>Upload Info</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST = eINSTANCE.getSouthBoundApiWithProxy__UploadInfo__JSONObject_EList(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiImpl <em>South Bound Api</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.SouthBoundApiImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getSouthBoundApi() + * @generated + */ + EClass SOUTH_BOUND_API = eINSTANCE.getSouthBoundApi(); + + /** + * The meta object literal for the '<em><b>Logs</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation SOUTH_BOUND_API___LOGS__JSONOBJECT_ELIST = eINSTANCE.getSouthBoundApi__Logs__JSONObject_EList(); + + /** + * The meta object literal for the '<em><b>Metrics</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation SOUTH_BOUND_API___METRICS__JSONOBJECT_ELIST = eINSTANCE.getSouthBoundApi__Metrics__JSONObject_EList(); + + /** + * The meta object literal for the '<em><b>Properties</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation SOUTH_BOUND_API___PROPERTIES__JSONOBJECT_ELIST = eINSTANCE.getSouthBoundApi__Properties__JSONObject_EList(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl <em>Management Info</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getManagementInfo() + * @generated + */ + EClass MANAGEMENT_INFO = eINSTANCE.getManagementInfo(); + + /** + * The meta object literal for the '<em><b>Ip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANAGEMENT_INFO__IP = eINSTANCE.getManagementInfo_Ip(); + + /** + * The meta object literal for the '<em><b>Metrics</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANAGEMENT_INFO__METRICS = eINSTANCE.getManagementInfo_Metrics(); + + /** + * The meta object literal for the '<em><b>Logs</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANAGEMENT_INFO__LOGS = eINSTANCE.getManagementInfo_Logs(); + + /** + * The meta object literal for the '<em><b>Props</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANAGEMENT_INFO__PROPS = eINSTANCE.getManagementInfo_Props(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.ResponseImpl <em>Response</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.ResponseImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getResponse() + * @generated + */ + EClass RESPONSE = eINSTANCE.getResponse(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute RESPONSE__STATUS = eINSTANCE.getResponse_Status(); + + /** + * The meta object literal for the '<em><b>Message</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute RESPONSE__MESSAGE = eINSTANCE.getResponse_Message(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.LoggerInfoImpl <em>Logger Info</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.LoggerInfoImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getLoggerInfo() + * @generated + */ + EClass LOGGER_INFO = eINSTANCE.getLoggerInfo(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOGGER_INFO__NAME = eINSTANCE.getLoggerInfo_Name(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerImpl <em>Abstract Management Server</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getAbstractManagementServer() + * @generated + */ + EClass ABSTRACT_MANAGEMENT_SERVER = eINSTANCE.getAbstractManagementServer(); + + /** + * The meta object literal for the '<em><b>Configuration</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION = eINSTANCE.getAbstractManagementServer_Configuration(); + + /** + * The meta object literal for the '<em><b>Component</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER__COMPONENT = eINSTANCE.getAbstractManagementServer_Component(); + + /** + * The meta object literal for the '<em><b>Get Values</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation ABSTRACT_MANAGEMENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN = eINSTANCE.getAbstractManagementServer__GetValues__JSONObject_String_Long_Long_MetricValueOption_boolean(); + + /** + * The meta object literal for the '<em><b>Get Values All</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation ABSTRACT_MANAGEMENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN = eINSTANCE.getAbstractManagementServer__GetValuesAll__JSONObject_String_EList_Long_Long_MetricValueOption_boolean(); + + /** + * The meta object literal for the '<em><b>Get Messages</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation ABSTRACT_MANAGEMENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG = eINSTANCE.getAbstractManagementServer__GetMessages__JSONObject_String_Long_Long(); + + /** + * The meta object literal for the '<em><b>Get Request Logger</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation ABSTRACT_MANAGEMENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT = eINSTANCE.getAbstractManagementServer__GetRequestLogger__String_String_String_JSONObject(); + + /** + * The meta object literal for the '<em><b>Evaluate</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation ABSTRACT_MANAGEMENT_SERVER___EVALUATE__STRING_FUNCTION = eINSTANCE.getAbstractManagementServer__Evaluate__String_Function(); + + /** + * The meta object literal for the '<em><b>Update</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation ABSTRACT_MANAGEMENT_SERVER___UPDATE__STRING_FUNCTION = eINSTANCE.getAbstractManagementServer__Update__String_Function(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl <em>Abstract Management Server Configuration</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getAbstractManagementServerConfiguration() + * @generated + */ + EClass ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION = eINSTANCE.getAbstractManagementServerConfiguration(); + + /** + * The meta object literal for the '<em><b>Rules</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES = eINSTANCE.getAbstractManagementServerConfiguration_Rules(); + + /** + * The meta object literal for the '<em><b>Metric Options</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS = eINSTANCE.getAbstractManagementServerConfiguration_MetricOptions(); + + /** + * The meta object literal for the '<em><b>Table Templates</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES = eINSTANCE.getAbstractManagementServerConfiguration_TableTemplates(); + + /** + * The meta object literal for the '<em><b>Alert Templates</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES = eINSTANCE.getAbstractManagementServerConfiguration_AlertTemplates(); + + /** + * The meta object literal for the '<em><b>Functions</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS = eINSTANCE.getAbstractManagementServerConfiguration_Functions(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.server.ResponseStatus <em>Response Status</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ResponseStatus + * @see org.openecomp.ncomp.sirius.manager.server.impl.ServerPackageImpl#getResponseStatus() + * @generated + */ + EEnum RESPONSE_STATUS = eINSTANCE.getResponseStatus(); + + } + +} //ServerPackage diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/SouthBoundApi.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/SouthBoundApi.java new file mode 100644 index 0000000..79b39d6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/SouthBoundApi.java @@ -0,0 +1,75 @@ + +/*- + * ============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; +import org.json.JSONObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>South Bound Api</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getSouthBoundApi() + * @model + * @generated + */ +public interface SouthBoundApi extends EObject { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" + * cxAnnotation="http://openecomp.org/sirius/doc description='This parameter is for internal use and is ignored if set by client.'" logsUnique="false" logsMany="true" + * logsAnnotation="http://openecomp.org/sirius/doc description='List of log message to inform the management system about.'" + * annotation="http://openecomp.org/sirius/doc description='This operation allows the clients to report log messages \r\n\tand overall state of the client'" + * @generated + */ + void logs(JSONObject cx, EList<LogMessage> logs); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" + * cxAnnotation="http://openecomp.org/sirius/doc description='This parameter is for internal use and is ignored if set by client.'" metricsUnique="false" metricsMany="true" + * annotation="http://openecomp.org/sirius/doc description='This operation allows the client VMs to report metrics \r\n\t\tand overall state of the VM'" + * @generated + */ + void metrics(JSONObject cx, EList<Metric> metrics); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" + * cxAnnotation="http://openecomp.org/sirius/doc description='This parameter is for internal use and is ignored if set by client.'" lUnique="false" lMany="true" + * annotation="http://openecomp.org/sirius/doc description='Used by the BSA Management Agent to report \r\n\tproperty key value pairs to the BSA Controller.'" + * @generated + */ + void properties(JSONObject cx, EList<AbstractProperty> l); + +} // SouthBoundApi diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/SouthBoundApiWithProxy.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/SouthBoundApiWithProxy.java new file mode 100644 index 0000000..faa56b6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/SouthBoundApiWithProxy.java @@ -0,0 +1,48 @@ + +/*- + * ============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.eclipse.emf.common.util.EList; +import org.json.JSONObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>South Bound Api With Proxy</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage#getSouthBoundApiWithProxy() + * @model + * @generated + */ +public interface SouthBoundApiWithProxy extends SouthBoundApi { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" infoUnique="false" infoMany="true" + * @generated + */ + void uploadInfo(JSONObject cx, EList<ManagementInfo> info); + +} // SouthBoundApiWithProxy diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AbstractManagementServerConfigurationImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AbstractManagementServerConfigurationImpl.java new file mode 100644 index 0000000..894064c --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AbstractManagementServerConfigurationImpl.java @@ -0,0 +1,315 @@ + +/*- + * ============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.alerts.AlertingTemplate; +import org.openecomp.ncomp.core.function.Function; +import org.openecomp.ncomp.core.logs.LogMessageRule; +import org.openecomp.ncomp.core.metrics.MetricValueOption; +import org.openecomp.ncomp.sirius.manager.properties.impl.ModuleContainerImpl; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate; +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Abstract Management Server Configuration</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl#getRules <em>Rules</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl#getMetricOptions <em>Metric Options</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl#getTableTemplates <em>Table Templates</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl#getAlertTemplates <em>Alert Templates</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerConfigurationImpl#getFunctions <em>Functions</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AbstractManagementServerConfigurationImpl extends ModuleContainerImpl implements AbstractManagementServerConfiguration { + /** + * The cached value of the '{@link #getRules() <em>Rules</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRules() + * @generated + * @ordered + */ + protected EList<LogMessageRule> rules; + + /** + * The cached value of the '{@link #getMetricOptions() <em>Metric Options</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMetricOptions() + * @generated + * @ordered + */ + protected EList<MetricValueOption> metricOptions; + + /** + * The cached value of the '{@link #getTableTemplates() <em>Table Templates</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTableTemplates() + * @generated + * @ordered + */ + protected EList<AbstractTableTemplate> tableTemplates; + + /** + * The cached value of the '{@link #getAlertTemplates() <em>Alert Templates</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAlertTemplates() + * @generated + * @ordered + */ + protected EList<AlertingTemplate> alertTemplates; + + /** + * The cached value of the '{@link #getFunctions() <em>Functions</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFunctions() + * @generated + * @ordered + */ + protected EList<Function> functions; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AbstractManagementServerConfigurationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<LogMessageRule> getRules() { + if (rules == null) { + rules = new EObjectContainmentEList<LogMessageRule>(LogMessageRule.class, this, ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES); + } + return rules; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<MetricValueOption> getMetricOptions() { + if (metricOptions == null) { + metricOptions = new EObjectContainmentEList<MetricValueOption>(MetricValueOption.class, this, ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS); + } + return metricOptions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AbstractTableTemplate> getTableTemplates() { + if (tableTemplates == null) { + tableTemplates = new EObjectContainmentEList<AbstractTableTemplate>(AbstractTableTemplate.class, this, ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES); + } + return tableTemplates; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AlertingTemplate> getAlertTemplates() { + if (alertTemplates == null) { + alertTemplates = new EObjectContainmentEList<AlertingTemplate>(AlertingTemplate.class, this, ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES); + } + return alertTemplates; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Function> getFunctions() { + if (functions == null) { + functions = new EObjectContainmentEList<Function>(Function.class, this, ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS); + } + return functions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES: + return ((InternalEList<?>)getRules()).basicRemove(otherEnd, msgs); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS: + return ((InternalEList<?>)getMetricOptions()).basicRemove(otherEnd, msgs); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES: + return ((InternalEList<?>)getTableTemplates()).basicRemove(otherEnd, msgs); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES: + return ((InternalEList<?>)getAlertTemplates()).basicRemove(otherEnd, msgs); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS: + return ((InternalEList<?>)getFunctions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES: + return getRules(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS: + return getMetricOptions(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES: + return getTableTemplates(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES: + return getAlertTemplates(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS: + return getFunctions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES: + getRules().clear(); + getRules().addAll((Collection<? extends LogMessageRule>)newValue); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS: + getMetricOptions().clear(); + getMetricOptions().addAll((Collection<? extends MetricValueOption>)newValue); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES: + getTableTemplates().clear(); + getTableTemplates().addAll((Collection<? extends AbstractTableTemplate>)newValue); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES: + getAlertTemplates().clear(); + getAlertTemplates().addAll((Collection<? extends AlertingTemplate>)newValue); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS: + getFunctions().clear(); + getFunctions().addAll((Collection<? extends Function>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES: + getRules().clear(); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS: + getMetricOptions().clear(); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES: + getTableTemplates().clear(); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES: + getAlertTemplates().clear(); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS: + getFunctions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__RULES: + return rules != null && !rules.isEmpty(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__METRIC_OPTIONS: + return metricOptions != null && !metricOptions.isEmpty(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__TABLE_TEMPLATES: + return tableTemplates != null && !tableTemplates.isEmpty(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__ALERT_TEMPLATES: + return alertTemplates != null && !alertTemplates.isEmpty(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION__FUNCTIONS: + return functions != null && !functions.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //AbstractManagementServerConfigurationImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AbstractManagementServerImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AbstractManagementServerImpl.java new file mode 100644 index 0000000..dfe4bca --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/AbstractManagementServerImpl.java @@ -0,0 +1,361 @@ + +/*- + * ============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.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.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration; +import org.openecomp.ncomp.sirius.manager.server.LoggerInfo; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import java.lang.reflect.InvocationTargetException; +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.json.JSONObject; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Abstract Management Server</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerImpl#getConfiguration <em>Configuration</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.AbstractManagementServerImpl#getComponent <em>Component</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AbstractManagementServerImpl extends SouthBoundApiWithProxyImpl implements AbstractManagementServer { + /** + * The cached value of the '{@link #getConfiguration() <em>Configuration</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfiguration() + * @generated + * @ordered + */ + protected AbstractManagementServerConfiguration configuration; + + /** + * The cached value of the '{@link #getComponent() <em>Component</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponent() + * @generated + * @ordered + */ + protected Component component; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AbstractManagementServerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.ABSTRACT_MANAGEMENT_SERVER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AbstractManagementServerConfiguration getConfiguration() { + return configuration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetConfiguration(AbstractManagementServerConfiguration newConfiguration, NotificationChain msgs) { + AbstractManagementServerConfiguration oldConfiguration = configuration; + configuration = newConfiguration; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION, oldConfiguration, newConfiguration); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setConfiguration(AbstractManagementServerConfiguration newConfiguration) { + if (newConfiguration != configuration) { + NotificationChain msgs = null; + if (configuration != null) + msgs = ((InternalEObject)configuration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION, null, msgs); + if (newConfiguration != null) + msgs = ((InternalEObject)newConfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION, null, msgs); + msgs = basicSetConfiguration(newConfiguration, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION, newConfiguration, newConfiguration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Component getComponent() { + return component; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetComponent(Component newComponent, NotificationChain msgs) { + Component oldComponent = component; + component = newComponent; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT, oldComponent, newComponent); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponent(Component newComponent) { + if (newComponent != component) { + NotificationChain msgs = null; + if (component != null) + msgs = ((InternalEObject)component).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT, null, msgs); + if (newComponent != null) + msgs = ((InternalEObject)newComponent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT, null, msgs); + msgs = basicSetComponent(newComponent, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT, newComponent, newComponent)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DoubleMetric> getValues(JSONObject cx, String path, Long start, Long end, MetricValueOption option, boolean relativeInterval) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DoubleMetric> getValuesAll(JSONObject cx, String path, EList<String> metrics, Long start, Long end, MetricValueOption option, boolean relativeInterval) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<LogMessage> getMessages(JSONObject cx, String path, Long start, Long end) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LoggerInfo getRequestLogger(String userName, String action, String resourcePath, JSONObject context) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ValuePair> evaluate(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void update(String path, Function function) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: + return basicSetConfiguration(null, msgs); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: + return basicSetComponent(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: + return getConfiguration(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: + return getComponent(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: + setConfiguration((AbstractManagementServerConfiguration)newValue); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: + setComponent((Component)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: + setConfiguration((AbstractManagementServerConfiguration)null); + return; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: + setComponent((Component)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__CONFIGURATION: + return configuration != null; + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER__COMPONENT: + return component != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + @SuppressWarnings("unchecked") + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_VALUES__JSONOBJECT_STRING_LONG_LONG_METRICVALUEOPTION_BOOLEAN: + return getValues((JSONObject)arguments.get(0), (String)arguments.get(1), (Long)arguments.get(2), (Long)arguments.get(3), (MetricValueOption)arguments.get(4), (Boolean)arguments.get(5)); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_VALUES_ALL__JSONOBJECT_STRING_ELIST_LONG_LONG_METRICVALUEOPTION_BOOLEAN: + return getValuesAll((JSONObject)arguments.get(0), (String)arguments.get(1), (EList<String>)arguments.get(2), (Long)arguments.get(3), (Long)arguments.get(4), (MetricValueOption)arguments.get(5), (Boolean)arguments.get(6)); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_MESSAGES__JSONOBJECT_STRING_LONG_LONG: + return getMessages((JSONObject)arguments.get(0), (String)arguments.get(1), (Long)arguments.get(2), (Long)arguments.get(3)); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___GET_REQUEST_LOGGER__STRING_STRING_STRING_JSONOBJECT: + return getRequestLogger((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2), (JSONObject)arguments.get(3)); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___EVALUATE__STRING_FUNCTION: + return evaluate((String)arguments.get(0), (Function)arguments.get(1)); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER___UPDATE__STRING_FUNCTION: + update((String)arguments.get(0), (Function)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //AbstractManagementServerImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/LoggerInfoImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/LoggerInfoImpl.java new file mode 100644 index 0000000..a391e5a --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/LoggerInfoImpl.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.server.impl; + +import org.openecomp.ncomp.sirius.manager.server.LoggerInfo; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Logger Info</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.LoggerInfoImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class LoggerInfoImpl extends MinimalEObjectImpl.Container implements LoggerInfo { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected LoggerInfoImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.LOGGER_INFO; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.LOGGER_INFO__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.LOGGER_INFO__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.LOGGER_INFO__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.LOGGER_INFO__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.LOGGER_INFO__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //LoggerInfoImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ManagementInfoImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ManagementInfoImpl.java new file mode 100644 index 0000000..741d5d7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ManagementInfoImpl.java @@ -0,0 +1,311 @@ + +/*- + * ============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.ManagementInfo; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Management Info</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl#getIp <em>Ip</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl#getMetrics <em>Metrics</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl#getLogs <em>Logs</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.ManagementInfoImpl#getProps <em>Props</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ManagementInfoImpl extends MinimalEObjectImpl.Container implements ManagementInfo { + /** + * The default value of the '{@link #getIp() <em>Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp() + * @generated + * @ordered + */ + protected static final String IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp() <em>Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp() + * @generated + * @ordered + */ + protected String ip = IP_EDEFAULT; + + /** + * The cached value of the '{@link #getMetrics() <em>Metrics</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMetrics() + * @generated + * @ordered + */ + protected EList<Metric> metrics; + + /** + * The cached value of the '{@link #getLogs() <em>Logs</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLogs() + * @generated + * @ordered + */ + protected EList<LogMessage> logs; + + /** + * The cached value of the '{@link #getProps() <em>Props</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProps() + * @generated + * @ordered + */ + protected EList<AbstractProperty> props; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ManagementInfoImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.MANAGEMENT_INFO; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIp() { + return ip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIp(String newIp) { + String oldIp = ip; + ip = newIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.MANAGEMENT_INFO__IP, oldIp, ip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Metric> getMetrics() { + if (metrics == null) { + metrics = new EObjectContainmentEList<Metric>(Metric.class, this, ServerPackage.MANAGEMENT_INFO__METRICS); + } + return metrics; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<LogMessage> getLogs() { + if (logs == null) { + logs = new EObjectContainmentEList<LogMessage>(LogMessage.class, this, ServerPackage.MANAGEMENT_INFO__LOGS); + } + return logs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AbstractProperty> getProps() { + if (props == null) { + props = new EObjectContainmentEList<AbstractProperty>(AbstractProperty.class, this, ServerPackage.MANAGEMENT_INFO__PROPS); + } + return props; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ServerPackage.MANAGEMENT_INFO__METRICS: + return ((InternalEList<?>)getMetrics()).basicRemove(otherEnd, msgs); + case ServerPackage.MANAGEMENT_INFO__LOGS: + return ((InternalEList<?>)getLogs()).basicRemove(otherEnd, msgs); + case ServerPackage.MANAGEMENT_INFO__PROPS: + return ((InternalEList<?>)getProps()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.MANAGEMENT_INFO__IP: + return getIp(); + case ServerPackage.MANAGEMENT_INFO__METRICS: + return getMetrics(); + case ServerPackage.MANAGEMENT_INFO__LOGS: + return getLogs(); + case ServerPackage.MANAGEMENT_INFO__PROPS: + return getProps(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.MANAGEMENT_INFO__IP: + setIp((String)newValue); + return; + case ServerPackage.MANAGEMENT_INFO__METRICS: + getMetrics().clear(); + getMetrics().addAll((Collection<? extends Metric>)newValue); + return; + case ServerPackage.MANAGEMENT_INFO__LOGS: + getLogs().clear(); + getLogs().addAll((Collection<? extends LogMessage>)newValue); + return; + case ServerPackage.MANAGEMENT_INFO__PROPS: + getProps().clear(); + getProps().addAll((Collection<? extends AbstractProperty>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.MANAGEMENT_INFO__IP: + setIp(IP_EDEFAULT); + return; + case ServerPackage.MANAGEMENT_INFO__METRICS: + getMetrics().clear(); + return; + case ServerPackage.MANAGEMENT_INFO__LOGS: + getLogs().clear(); + return; + case ServerPackage.MANAGEMENT_INFO__PROPS: + getProps().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.MANAGEMENT_INFO__IP: + return IP_EDEFAULT == null ? ip != null : !IP_EDEFAULT.equals(ip); + case ServerPackage.MANAGEMENT_INFO__METRICS: + return metrics != null && !metrics.isEmpty(); + case ServerPackage.MANAGEMENT_INFO__LOGS: + return logs != null && !logs.isEmpty(); + case ServerPackage.MANAGEMENT_INFO__PROPS: + return props != null && !props.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ip: "); + result.append(ip); + result.append(')'); + return result.toString(); + } + +} //ManagementInfoImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ResponseImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ResponseImpl.java new file mode 100644 index 0000000..19d2d1f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ResponseImpl.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.server.impl; + +import org.openecomp.ncomp.sirius.manager.server.Response; +import org.openecomp.ncomp.sirius.manager.server.ResponseStatus; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Response</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.ResponseImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.server.impl.ResponseImpl#getMessage <em>Message</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ResponseImpl extends MinimalEObjectImpl.Container implements Response { + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final ResponseStatus STATUS_EDEFAULT = ResponseStatus.OK; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected ResponseStatus status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getMessage() <em>Message</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMessage() + * @generated + * @ordered + */ + protected static final String MESSAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMessage() <em>Message</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMessage() + * @generated + * @ordered + */ + protected String message = MESSAGE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ResponseImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.RESPONSE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ResponseStatus getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(ResponseStatus newStatus) { + ResponseStatus oldStatus = status; + status = newStatus == null ? STATUS_EDEFAULT : newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.RESPONSE__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMessage() { + return message; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMessage(String newMessage) { + String oldMessage = message; + message = newMessage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.RESPONSE__MESSAGE, oldMessage, message)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.RESPONSE__STATUS: + return getStatus(); + case ServerPackage.RESPONSE__MESSAGE: + return getMessage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.RESPONSE__STATUS: + setStatus((ResponseStatus)newValue); + return; + case ServerPackage.RESPONSE__MESSAGE: + setMessage((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.RESPONSE__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ServerPackage.RESPONSE__MESSAGE: + setMessage(MESSAGE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.RESPONSE__STATUS: + return status != STATUS_EDEFAULT; + case ServerPackage.RESPONSE__MESSAGE: + return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (status: "); + result.append(status); + result.append(", message: "); + result.append(message); + result.append(')'); + return result.toString(); + } + +} //ResponseImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ServerFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ServerFactoryImpl.java new file mode 100644 index 0000000..74f35ce --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ServerFactoryImpl.java @@ -0,0 +1,230 @@ + +/*- + * ============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.sirius.manager.server.*; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ServerFactoryImpl extends EFactoryImpl implements ServerFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ServerFactory init() { + try { + ServerFactory theServerFactory = (ServerFactory)EPackage.Registry.INSTANCE.getEFactory(ServerPackage.eNS_URI); + if (theServerFactory != null) { + return theServerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ServerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ServerFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ServerPackage.SOUTH_BOUND_API_WITH_PROXY: return createSouthBoundApiWithProxy(); + case ServerPackage.SOUTH_BOUND_API: return createSouthBoundApi(); + case ServerPackage.MANAGEMENT_INFO: return createManagementInfo(); + case ServerPackage.RESPONSE: return createResponse(); + case ServerPackage.LOGGER_INFO: return createLoggerInfo(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER: return createAbstractManagementServer(); + case ServerPackage.ABSTRACT_MANAGEMENT_SERVER_CONFIGURATION: return createAbstractManagementServerConfiguration(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case ServerPackage.RESPONSE_STATUS: + return createResponseStatusFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case ServerPackage.RESPONSE_STATUS: + return convertResponseStatusToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SouthBoundApiWithProxy createSouthBoundApiWithProxy() { + SouthBoundApiWithProxyImpl southBoundApiWithProxy = new SouthBoundApiWithProxyImpl(); + return southBoundApiWithProxy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SouthBoundApi createSouthBoundApi() { + SouthBoundApiImpl southBoundApi = new SouthBoundApiImpl(); + return southBoundApi; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ManagementInfo createManagementInfo() { + ManagementInfoImpl managementInfo = new ManagementInfoImpl(); + return managementInfo; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Response createResponse() { + ResponseImpl response = new ResponseImpl(); + return response; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LoggerInfo createLoggerInfo() { + LoggerInfoImpl loggerInfo = new LoggerInfoImpl(); + return loggerInfo; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AbstractManagementServer createAbstractManagementServer() { + AbstractManagementServerImpl abstractManagementServer = new AbstractManagementServerImpl(); + return abstractManagementServer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AbstractManagementServerConfiguration createAbstractManagementServerConfiguration() { + AbstractManagementServerConfigurationImpl abstractManagementServerConfiguration = new AbstractManagementServerConfigurationImpl(); + return abstractManagementServerConfiguration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ResponseStatus createResponseStatusFromString(EDataType eDataType, String initialValue) { + ResponseStatus result = ResponseStatus.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertResponseStatusToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ServerPackage getServerPackage() { + return (ServerPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static ServerPackage getPackage() { + return ServerPackage.eINSTANCE; + } + +} //ServerFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ServerPackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ServerPackageImpl.java new file mode 100644 index 0000000..a6a18b1 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/ServerPackageImpl.java @@ -0,0 +1,751 @@ + +/*- + * ============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.component.ComponentPackage; +import org.openecomp.ncomp.core.CorePackage; +import org.openecomp.ncomp.core.alerts.AlertsPackage; +import org.openecomp.ncomp.core.function.FunctionPackage; +import org.openecomp.ncomp.core.logs.LogsPackage; +import org.openecomp.ncomp.core.metrics.MetricsPackage; +import org.openecomp.ncomp.sirius.manager.properties.PropertiesPackage; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; +import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServerConfiguration; +import org.openecomp.ncomp.sirius.manager.server.LoggerInfo; +import org.openecomp.ncomp.sirius.manager.server.ManagementInfo; +import org.openecomp.ncomp.sirius.manager.server.Response; +import org.openecomp.ncomp.sirius.manager.server.ResponseStatus; +import org.openecomp.ncomp.sirius.manager.server.ServerFactory; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApi; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ServerPackageImpl extends EPackageImpl implements ServerPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass southBoundApiWithProxyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass southBoundApiEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass managementInfoEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass responseEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass loggerInfoEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass abstractManagementServerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass abstractManagementServerConfigurationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum responseStatusEEnum = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSouthBoundApiWithProxy() { + return southBoundApiWithProxyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getSouthBoundApiWithProxy__UploadInfo__JSONObject_EList() { + return southBoundApiWithProxyEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSouthBoundApi() { + return southBoundApiEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getSouthBoundApi__Logs__JSONObject_EList() { + return southBoundApiEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getSouthBoundApi__Metrics__JSONObject_EList() { + return southBoundApiEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getSouthBoundApi__Properties__JSONObject_EList() { + return southBoundApiEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getManagementInfo() { + return managementInfoEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManagementInfo_Ip() { + return (EAttribute)managementInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManagementInfo_Metrics() { + return (EReference)managementInfoEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManagementInfo_Logs() { + return (EReference)managementInfoEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManagementInfo_Props() { + return (EReference)managementInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getResponse() { + return responseEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getResponse_Status() { + return (EAttribute)responseEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getResponse_Message() { + return (EAttribute)responseEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLoggerInfo() { + return loggerInfoEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLoggerInfo_Name() { + return (EAttribute)loggerInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAbstractManagementServer() { + return abstractManagementServerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServer_Configuration() { + return (EReference)abstractManagementServerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServer_Component() { + return (EReference)abstractManagementServerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getAbstractManagementServer__GetValues__JSONObject_String_Long_Long_MetricValueOption_boolean() { + return abstractManagementServerEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getAbstractManagementServer__GetValuesAll__JSONObject_String_EList_Long_Long_MetricValueOption_boolean() { + return abstractManagementServerEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getAbstractManagementServer__GetMessages__JSONObject_String_Long_Long() { + return abstractManagementServerEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getAbstractManagementServer__GetRequestLogger__String_String_String_JSONObject() { + return abstractManagementServerEClass.getEOperations().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getAbstractManagementServer__Evaluate__String_Function() { + return abstractManagementServerEClass.getEOperations().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getAbstractManagementServer__Update__String_Function() { + return abstractManagementServerEClass.getEOperations().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAbstractManagementServerConfiguration() { + return abstractManagementServerConfigurationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServerConfiguration_Rules() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServerConfiguration_MetricOptions() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServerConfiguration_TableTemplates() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServerConfiguration_AlertTemplates() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAbstractManagementServerConfiguration_Functions() { + return (EReference)abstractManagementServerConfigurationEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getResponseStatus() { + return responseStatusEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ServerFactory getServerFactory() { + return (ServerFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://openecomp.org/sirius/doc</b>. + * <!-- begin-user-doc --> + * <!-- end-user-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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>South Bound Api</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class SouthBoundApiImpl extends MinimalEObjectImpl.Container implements SouthBoundApi { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SouthBoundApiImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.SOUTH_BOUND_API; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void logs(JSONObject cx, EList<LogMessage> logs) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void metrics(JSONObject cx, EList<Metric> metrics) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void properties(JSONObject cx, EList<AbstractProperty> l) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + @SuppressWarnings("unchecked") + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case ServerPackage.SOUTH_BOUND_API___LOGS__JSONOBJECT_ELIST: + logs((JSONObject)arguments.get(0), (EList<LogMessage>)arguments.get(1)); + return null; + case ServerPackage.SOUTH_BOUND_API___METRICS__JSONOBJECT_ELIST: + metrics((JSONObject)arguments.get(0), (EList<Metric>)arguments.get(1)); + return null; + case ServerPackage.SOUTH_BOUND_API___PROPERTIES__JSONOBJECT_ELIST: + properties((JSONObject)arguments.get(0), (EList<AbstractProperty>)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //SouthBoundApiImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/SouthBoundApiWithProxyImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/SouthBoundApiWithProxyImpl.java new file mode 100644 index 0000000..373f971 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/impl/SouthBoundApiWithProxyImpl.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.server.impl; + +import org.openecomp.ncomp.sirius.manager.server.ManagementInfo; +import org.openecomp.ncomp.sirius.manager.server.ServerPackage; +import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.json.JSONObject; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>South Bound Api With Proxy</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class SouthBoundApiWithProxyImpl extends SouthBoundApiImpl implements SouthBoundApiWithProxy { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SouthBoundApiWithProxyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.SOUTH_BOUND_API_WITH_PROXY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void uploadInfo(JSONObject cx, EList<ManagementInfo> info) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + @SuppressWarnings("unchecked") + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case ServerPackage.SOUTH_BOUND_API_WITH_PROXY___UPLOAD_INFO__JSONOBJECT_ELIST: + uploadInfo((JSONObject)arguments.get(0), (EList<ManagementInfo>)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //SouthBoundApiWithProxyImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/util/ServerAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/util/ServerAdapterFactory.java new file mode 100644 index 0000000..a40f840 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/server/util/ServerAdapterFactory.java @@ -0,0 +1,265 @@ + +/*- + * ============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.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage + * @generated + */ +public class ServerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static ServerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ServerAdapterFactory() { + if (modelPackage == null) { + modelPackage = ServerPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ServerSwitch<Adapter> modelSwitch = + new ServerSwitch<Adapter>() { + @Override + public Adapter caseSouthBoundApiWithProxy(SouthBoundApiWithProxy object) { + return createSouthBoundApiWithProxyAdapter(); + } + @Override + public Adapter caseSouthBoundApi(SouthBoundApi object) { + return createSouthBoundApiAdapter(); + } + @Override + public Adapter caseManagementInfo(ManagementInfo object) { + return createManagementInfoAdapter(); + } + @Override + public Adapter caseResponse(Response object) { + return createResponseAdapter(); + } + @Override + public Adapter caseLoggerInfo(LoggerInfo object) { + return createLoggerInfoAdapter(); + } + @Override + public Adapter caseAbstractManagementServer(AbstractManagementServer object) { + return createAbstractManagementServerAdapter(); + } + @Override + public Adapter caseAbstractManagementServerConfiguration(AbstractManagementServerConfiguration object) { + return createAbstractManagementServerConfigurationAdapter(); + } + @Override + public Adapter caseModuleContainer(ModuleContainer object) { + return createModuleContainerAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>South Bound Api With Proxy</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>South Bound Api</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Management Info</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Response</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Module Container</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Logger Info</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Abstract Management Server</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Abstract Management Server Configuration</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.server.ServerPackage + * @generated + */ +public class ServerSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static ServerPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ServerSwitch() { + if (modelPackage == null) { + modelPackage = ServerPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>South Bound Api With Proxy</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>South Bound Api With Proxy</em>'. + * @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 '<em>South Bound Api</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>South Bound Api</em>'. + * @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 '<em>Management Info</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Management Info</em>'. + * @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 '<em>Response</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Response</em>'. + * @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 '<em>Module Container</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Module Container</em>'. + * @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 '<em>Logger Info</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Logger Info</em>'. + * @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 '<em>Abstract Management Server</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Abstract Management Server</em>'. + * @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 '<em>Abstract Management Server Configuration</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Abstract Management Server Configuration</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Collection Format</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerCollectionFormat() + * @model + * @generated + */ +public enum SwaggerCollectionFormat implements Enumerator { + /** + * The '<em><b>Csv</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #CSV_VALUE + * @generated + * @ordered + */ + CSV(0, "csv", "csv"), + + /** + * The '<em><b>Ssv</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #SSV_VALUE + * @generated + * @ordered + */ + SSV(0, "ssv", "ssv"), /** + * The '<em><b>Tsv</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TSV_VALUE + * @generated + * @ordered + */ + TSV(0, "tsv", "tsv"), /** + * The '<em><b>Pipes</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #PIPES_VALUE + * @generated + * @ordered + */ + PIPES(0, "pipes", "pipes"), /** + * The '<em><b>Multi</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #MULTI_VALUE + * @generated + * @ordered + */ + MULTI(0, "multi", "multi"); + + /** + * The '<em><b>Csv</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>CSV</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #CSV + * @model name="csv" + * @generated + * @ordered + */ + public static final int CSV_VALUE = 0; + + /** + * The '<em><b>Ssv</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Ssv</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #SSV + * @model name="ssv" + * @generated + * @ordered + */ + public static final int SSV_VALUE = 0; + + /** + * The '<em><b>Tsv</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Tsv</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TSV + * @model name="tsv" + * @generated + * @ordered + */ + public static final int TSV_VALUE = 0; + + /** + * The '<em><b>Pipes</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Pipes</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #PIPES + * @model name="pipes" + * @generated + * @ordered + */ + public static final int PIPES_VALUE = 0; + + /** + * The '<em><b>Multi</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Multi</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #MULTI + * @model name="multi" + * @generated + * @ordered + */ + public static final int MULTI_VALUE = 0; + + /** + * An array of all the '<em><b>Collection Format</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final SwaggerCollectionFormat[] VALUES_ARRAY = + new SwaggerCollectionFormat[] { + CSV, + SSV, + TSV, + PIPES, + MULTI, + }; + + /** + * A public read-only list of all the '<em><b>Collection Format</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<SwaggerCollectionFormat> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Collection Format</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerCollectionFormat get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SwaggerCollectionFormat result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Collection Format</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerCollectionFormat getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SwaggerCollectionFormat result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Collection Format</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerCollectionFormat get(int value) { + switch (value) { + case CSV_VALUE: return CSV; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private SwaggerCollectionFormat(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //SwaggerCollectionFormat diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerContact.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerContact.java new file mode 100644 index 0000000..f2c16cc --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerContact.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Contact</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact#getEmail <em>Email</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerContact() + * @model + * @generated + */ +public interface SwaggerContact extends EObject { + /** + * Returns the value of the '<em><b>Email</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Email</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Email</em>' 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 <em>Email</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Email</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Definition</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Enum Object Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType#getEnum <em>Enum</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerEnumObjectType() + * @model + * @generated + */ +public interface SwaggerEnumObjectType extends SwaggerSimpleObjectType { + /** + * Returns the value of the '<em><b>Enum</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Enum</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Enum</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerEnumObjectType_Enum() + * @model unique="false" + * @generated + */ + EList<String> getEnum(); + +} // SwaggerEnumObjectType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerExternalDocumentation.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerExternalDocumentation.java new file mode 100644 index 0000000..ac98fa0 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerExternalDocumentation.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Document</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerExternalDocumentation() + * @model + * @generated + */ +public interface SwaggerExternalDocumentation extends EObject { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Url</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Url</em>' 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 <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Url</em>' 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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage + * @generated + */ +public interface SwaggerFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + SwaggerFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Model</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Model</em>'. + * @generated + */ + SwaggerModel createSwaggerModel(); + + /** + * Returns a new object of class '<em>Info</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Info</em>'. + * @generated + */ + SwaggerInfo createSwaggerInfo(); + + /** + * Returns a new object of class '<em>Contact</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Contact</em>'. + * @generated + */ + SwaggerContact createSwaggerContact(); + + /** + * Returns a new object of class '<em>License</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>License</em>'. + * @generated + */ + SwaggerLicense createSwaggerLicense(); + + /** + * Returns a new object of class '<em>Tag</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Tag</em>'. + * @generated + */ + SwaggerTag createSwaggerTag(); + + /** + * Returns a new object of class '<em>External Documentation</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>External Documentation</em>'. + * @generated + */ + SwaggerExternalDocumentation createSwaggerExternalDocumentation(); + + /** + * Returns a new object of class '<em>Path</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Path</em>'. + * @generated + */ + SwaggerPath createSwaggerPath(); + + /** + * Returns a new object of class '<em>Operation</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Operation</em>'. + * @generated + */ + SwaggerOperation createSwaggerOperation(); + + /** + * Returns a new object of class '<em>Parameter</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Parameter</em>'. + * @generated + */ + SwaggerParameter createSwaggerParameter(); + + /** + * Returns a new object of class '<em>Response</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Response</em>'. + * @generated + */ + SwaggerResponse createSwaggerResponse(); + + /** + * Returns a new object of class '<em>Security Object</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Security Object</em>'. + * @generated + */ + SwaggerSecurityObject createSwaggerSecurityObject(); + + /** + * Returns a new object of class '<em>Security</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Security</em>'. + * @generated + */ + SwaggerSecurity createSwaggerSecurity(); + + /** + * Returns a new object of class '<em>Security Definition</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Security Definition</em>'. + * @generated + */ + SwaggerSecurityDefinition createSwaggerSecurityDefinition(); + + /** + * Returns a new object of class '<em>Security Definition Scope</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Security Definition Scope</em>'. + * @generated + */ + SwaggerSecurityDefinitionScope createSwaggerSecurityDefinitionScope(); + + /** + * Returns a new object of class '<em>Object Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Object Type</em>'. + * @generated + */ + SwaggerObjectType createSwaggerObjectType(); + + /** + * Returns a new object of class '<em>Reference Object Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Reference Object Type</em>'. + * @generated + */ + SwaggerReferenceObjectType createSwaggerReferenceObjectType(); + + /** + * Returns a new object of class '<em>Named Object Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Named Object Type</em>'. + * @generated + */ + SwaggerNamedObjectType createSwaggerNamedObjectType(); + + /** + * Returns a new object of class '<em>Object Class Definition</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Object Class Definition</em>'. + * @generated + */ + SwaggerObjectClassDefinition createSwaggerObjectClassDefinition(); + + /** + * Returns a new object of class '<em>Simple Object Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Simple Object Type</em>'. + * @generated + */ + SwaggerSimpleObjectType createSwaggerSimpleObjectType(); + + /** + * Returns a new object of class '<em>Xml</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Xml</em>'. + * @generated + */ + SwaggerXml createSwaggerXml(); + + /** + * Returns a new object of class '<em>Enum Object Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Enum Object Type</em>'. + * @generated + */ + SwaggerEnumObjectType createSwaggerEnumObjectType(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Info</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTermsOfService <em>Terms Of Service</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getContact <em>Contact</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getLicense <em>License</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerInfo() + * @model + * @generated + */ +public interface SwaggerInfo extends EObject { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' 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 <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Title</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Title</em>' 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 <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Title</em>' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the '<em><b>Terms Of Service</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Terms Of Service</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Terms Of Service</em>' 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 <em>Terms Of Service</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Terms Of Service</em>' attribute. + * @see #getTermsOfService() + * @generated + */ + void setTermsOfService(String value); + + /** + * Returns the value of the '<em><b>Contact</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Contact</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Contact</em>' 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 <em>Contact</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Contact</em>' containment reference. + * @see #getContact() + * @generated + */ + void setContact(SwaggerContact value); + + /** + * Returns the value of the '<em><b>License</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>License</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>License</em>' 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 <em>License</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>License</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>License</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerLicense() + * @model + * @generated + */ +public interface SwaggerLicense extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Url</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Url</em>' 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 <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Url</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Model</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSwagger <em>Swagger</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getInfo <em>Info</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getHost <em>Host</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getBasePath <em>Base Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getTags <em>Tags</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSchemes <em>Schemes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getPaths <em>Paths</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getDefinitions <em>Definitions</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getExternalDocs <em>External Docs</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSecurityDefinitions <em>Security Definitions</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel() + * @model + * @generated + */ +public interface SwaggerModel extends EObject { + /** + * Returns the value of the '<em><b>Swagger</b></em>' attribute. + * The default value is <code>"2.0"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Swagger</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Swagger</em>' 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 <em>Swagger</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Swagger</em>' attribute. + * @see #getSwagger() + * @generated + */ + void setSwagger(String value); + + /** + * Returns the value of the '<em><b>Info</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Info</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Info</em>' 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 <em>Info</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Info</em>' containment reference. + * @see #getInfo() + * @generated + */ + void setInfo(SwaggerInfo value); + + /** + * Returns the value of the '<em><b>Host</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Host</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Host</em>' 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 <em>Host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Host</em>' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the '<em><b>Base Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Base Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Base Path</em>' 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 <em>Base Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Base Path</em>' attribute. + * @see #getBasePath() + * @generated + */ + void setBasePath(String value); + + /** + * Returns the value of the '<em><b>Tags</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tags</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tags</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Tags() + * @model containment="true" + * @generated + */ + EList<SwaggerTag> getTags(); + + /** + * Returns the value of the '<em><b>Schemes</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schemes</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schemes</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Schemes() + * @model unique="false" + * @generated + */ + EList<String> getSchemes(); + + /** + * Returns the value of the '<em><b>Paths</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Paths</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Paths</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Paths() + * @model containment="true" + * @generated + */ + EList<SwaggerPath> getPaths(); + + /** + * Returns the value of the '<em><b>Definitions</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Definitions</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Definitions</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_Definitions() + * @model containment="true" + * @generated + */ + EList<SwaggerNamedObjectType> getDefinitions(); + + /** + * Returns the value of the '<em><b>External Docs</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>External Docs</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>External Docs</em>' 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 <em>External Docs</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>External Docs</em>' containment reference. + * @see #getExternalDocs() + * @generated + */ + void setExternalDocs(SwaggerExternalDocumentation value); + + /** + * Returns the value of the '<em><b>Security Definitions</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Security Definitions</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Security Definitions</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerModel_SecurityDefinitions() + * @model containment="true" + * @generated + */ + EList<SwaggerSecurityDefinition> getSecurityDefinitions(); + +} // SwaggerModel diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerNamedObjectType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerNamedObjectType.java new file mode 100644 index 0000000..0076d52 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerNamedObjectType.java @@ -0,0 +1,152 @@ + +/*- + * ============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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Named Object Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDefault <em>Default</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getXml <em>Xml</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerNamedObjectType() + * @model + * @generated + */ +public interface SwaggerNamedObjectType extends NamedEntity, SwaggerObjectType { + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Default</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Default</em>' 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 <em>Default</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Default</em>' attribute. + * @see #getDefault() + * @generated + */ + void setDefault(String value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Xml</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Xml</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Xml</em>' 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 <em>Xml</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Xml</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Object Class Definition</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getRequired <em>Required</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAllOf <em>All Of</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getProperties <em>Properties</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAdditionalProperties <em>Additional Properties</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition() + * @model + * @generated + */ +public interface SwaggerObjectClassDefinition extends SwaggerNamedObjectType { + /** + * Returns the value of the '<em><b>Required</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Required</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Required</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_Required() + * @model unique="false" + * @generated + */ + EList<String> getRequired(); + + /** + * Returns the value of the '<em><b>All Of</b></em>' reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>All Of</em>' reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>All Of</em>' reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_AllOf() + * @model + * @generated + */ + EList<SwaggerObjectType> getAllOf(); + + /** + * Returns the value of the '<em><b>Properties</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Properties</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Properties</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectClassDefinition_Properties() + * @model containment="true" + * @generated + */ + EList<SwaggerNamedObjectType> getProperties(); + + /** + * Returns the value of the '<em><b>Additional Properties</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Additional Properties</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Additional Properties</em>' 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 <em>Additional Properties</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Additional Properties</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Object Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType#isMany <em>Many</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectType() + * @model + * @generated + */ +public interface SwaggerObjectType extends EObject { + + /** + * Returns the value of the '<em><b>Many</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Many</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Many</em>' 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 <em>Many</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Many</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Object Type Definition</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectTypeDefinition#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectTypeDefinition#getDefault <em>Default</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectTypeDefinition() + * @model + * @generated + */ +public interface SwaggerObjectTypeDefinition extends NamedEntity, SwaggerObjectType { + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Default</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Default</em>' 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 <em>Default</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Default</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Object Type Reference</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectTypeReference#getReference <em>Reference</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerObjectTypeReference() + * @model + * @generated + */ +public interface SwaggerObjectTypeReference extends SwaggerObjectType { + /** + * Returns the value of the '<em><b>Reference</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Reference</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Reference</em>' 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 <em>Reference</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Reference</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Operation</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getTags <em>Tags</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSummary <em>Summary</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getOperationId <em>Operation Id</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getConsumes <em>Consumes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getProduces <em>Produces</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getParameters <em>Parameters</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getResponses <em>Responses</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSecurity <em>Security</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#isDeprecated <em>Deprecated</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation() + * @model + * @generated + */ +public interface SwaggerOperation extends NamedEntity { + /** + * Returns the value of the '<em><b>Tags</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tags</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tags</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Tags() + * @model unique="false" + * @generated + */ + EList<String> getTags(); + + /** + * Returns the value of the '<em><b>Summary</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Summary</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Summary</em>' 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 <em>Summary</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Summary</em>' attribute. + * @see #getSummary() + * @generated + */ + void setSummary(String value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Operation Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Operation Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Operation Id</em>' 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 <em>Operation Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Operation Id</em>' attribute. + * @see #getOperationId() + * @generated + */ + void setOperationId(String value); + + /** + * Returns the value of the '<em><b>Consumes</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Consumes</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Consumes</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Consumes() + * @model unique="false" + * @generated + */ + EList<String> getConsumes(); + + /** + * Returns the value of the '<em><b>Produces</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Produces</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Produces</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Produces() + * @model unique="false" + * @generated + */ + EList<String> getProduces(); + + /** + * Returns the value of the '<em><b>Parameters</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Parameters</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Parameters</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Parameters() + * @model containment="true" + * @generated + */ + EList<SwaggerParameter> getParameters(); + + /** + * Returns the value of the '<em><b>Responses</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Responses</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Responses</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Responses() + * @model containment="true" + * @generated + */ + EList<SwaggerResponse> getResponses(); + + /** + * Returns the value of the '<em><b>Security</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Security</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Security</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerOperation_Security() + * @model containment="true" + * @generated + */ + EList<SwaggerSecurityObject> getSecurity(); + + /** + * Returns the value of the '<em><b>Deprecated</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Deprecated</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Deprecated</em>' 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 <em>Deprecated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Deprecated</em>' 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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager'" + * annotation="http://www.eclipse.org/emf/2011/Xcore swagger='http://openecomp.org/ncomp/swagger'" + * @generated + */ +public interface SwaggerPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "swagger"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.swagger"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "swagger"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + SwaggerPackage eINSTANCE = org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl <em>Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerModel() + * @generated + */ + int SWAGGER_MODEL = 0; + + /** + * The feature id for the '<em><b>Swagger</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__SWAGGER = 0; + + /** + * The feature id for the '<em><b>Info</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__INFO = 1; + + /** + * The feature id for the '<em><b>Host</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__HOST = 2; + + /** + * The feature id for the '<em><b>Base Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__BASE_PATH = 3; + + /** + * The feature id for the '<em><b>Tags</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__TAGS = 4; + + /** + * The feature id for the '<em><b>Schemes</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__SCHEMES = 5; + + /** + * The feature id for the '<em><b>Paths</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__PATHS = 6; + + /** + * The feature id for the '<em><b>Definitions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__DEFINITIONS = 7; + + /** + * The feature id for the '<em><b>External Docs</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__EXTERNAL_DOCS = 8; + + /** + * The feature id for the '<em><b>Security Definitions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL__SECURITY_DEFINITIONS = 9; + + /** + * The number of structural features of the '<em>Model</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL_FEATURE_COUNT = 10; + + /** + * The number of operations of the '<em>Model</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_MODEL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl <em>Info</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerInfo() + * @generated + */ + int SWAGGER_INFO = 1; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO__DESCRIPTION = 0; + + /** + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO__VERSION = 1; + + /** + * The feature id for the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO__TITLE = 2; + + /** + * The feature id for the '<em><b>Terms Of Service</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO__TERMS_OF_SERVICE = 3; + + /** + * The feature id for the '<em><b>Contact</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO__CONTACT = 4; + + /** + * The feature id for the '<em><b>License</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO__LICENSE = 5; + + /** + * The number of structural features of the '<em>Info</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO_FEATURE_COUNT = 6; + + /** + * The number of operations of the '<em>Info</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_INFO_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerContactImpl <em>Contact</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerContactImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerContact() + * @generated + */ + int SWAGGER_CONTACT = 2; + + /** + * The feature id for the '<em><b>Email</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_CONTACT__EMAIL = 0; + + /** + * The number of structural features of the '<em>Contact</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_CONTACT_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Contact</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_CONTACT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerLicenseImpl <em>License</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerLicenseImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerLicense() + * @generated + */ + int SWAGGER_LICENSE = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_LICENSE__NAME = 0; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_LICENSE__URL = 1; + + /** + * The number of structural features of the '<em>License</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_LICENSE_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>License</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_LICENSE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl <em>Tag</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerTag() + * @generated + */ + int SWAGGER_TAG = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_TAG__NAME = 0; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_TAG__DESCRIPTION = 1; + + /** + * The feature id for the '<em><b>External Docs</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_TAG__EXTERNAL_DOCS = 2; + + /** + * The number of structural features of the '<em>Tag</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_TAG_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Tag</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_TAG_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerExternalDocumentationImpl <em>External Documentation</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerExternalDocumentationImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerExternalDocumentation() + * @generated + */ + int SWAGGER_EXTERNAL_DOCUMENTATION = 5; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION = 0; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_EXTERNAL_DOCUMENTATION__URL = 1; + + /** + * The number of structural features of the '<em>External Documentation</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_EXTERNAL_DOCUMENTATION_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>External Documentation</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_EXTERNAL_DOCUMENTATION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPathImpl <em>Path</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPathImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerPath() + * @generated + */ + int SWAGGER_PATH = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Methods</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH__METHODS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Path</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Path</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PATH_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl <em>Operation</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerOperation() + * @generated + */ + int SWAGGER_OPERATION = 7; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Tags</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__TAGS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Summary</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__SUMMARY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__DESCRIPTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Operation Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__OPERATION_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Consumes</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__CONSUMES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Produces</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__PRODUCES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Parameters</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__PARAMETERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Responses</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__RESPONSES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Security</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__SECURITY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Deprecated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION__DEPRECATED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The number of structural features of the '<em>Operation</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of operations of the '<em>Operation</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OPERATION_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerParameterImpl <em>Parameter</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerParameterImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerParameter() + * @generated + */ + int SWAGGER_PARAMETER = 8; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl <em>Response</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerResponse() + * @generated + */ + int SWAGGER_RESPONSE = 9; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityImpl <em>Security</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurity() + * @generated + */ + int SWAGGER_SECURITY = 11; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectTypeImpl <em>Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerObjectType() + * @generated + */ + int SWAGGER_OBJECT_TYPE = 14; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerReferenceObjectTypeImpl <em>Reference Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerReferenceObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerReferenceObjectType() + * @generated + */ + int SWAGGER_REFERENCE_OBJECT_TYPE = 15; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl <em>Named Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerNamedObjectType() + * @generated + */ + int SWAGGER_NAMED_OBJECT_TYPE = 16; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>In</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER__IN = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Type</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER__TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Parameter</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Parameter</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_PARAMETER_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__DESCRIPTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Schema</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__SCHEMA = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Headers</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE__HEADERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>Response</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of operations of the '<em>Response</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_RESPONSE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityObjectImpl <em>Security Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityObjectImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurityObject() + * @generated + */ + int SWAGGER_SECURITY_OBJECT = 10; + + /** + * The feature id for the '<em><b>List</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_OBJECT__LIST = 0; + + /** + * The number of structural features of the '<em>Security Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_OBJECT_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Security Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_OBJECT_OPERATION_COUNT = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Roles</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY__ROLES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Security</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Security</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl <em>Security Definition</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurityDefinition() + * @generated + */ + int SWAGGER_SECURITY_DEFINITION = 12; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Authorization Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Flow</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__FLOW = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>In</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION__IN = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Security Definition</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>Security Definition</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionScopeImpl <em>Security Definition Scope</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionScopeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurityDefinitionScope() + * @generated + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE = 13; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Security Definition Scope</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Security Definition Scope</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SECURITY_DEFINITION_SCOPE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The feature id for the '<em><b>Many</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_TYPE__MANY = 0; + + /** + * The number of structural features of the '<em>Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_TYPE_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_TYPE_OPERATION_COUNT = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Many</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__MANY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__DEFAULT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Xml</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE__XML = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Named Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Named Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_NAMED_OBJECT_TYPE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__NAME = SWAGGER_NAMED_OBJECT_TYPE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__LAST_POLLED = SWAGGER_NAMED_OBJECT_TYPE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__LAST_CHANGED = SWAGGER_NAMED_OBJECT_TYPE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__CREATED = SWAGGER_NAMED_OBJECT_TYPE__CREATED; + + /** + * The feature id for the '<em><b>Many</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__MANY = SWAGGER_NAMED_OBJECT_TYPE__MANY; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__TYPE = SWAGGER_NAMED_OBJECT_TYPE__TYPE; + + /** + * The feature id for the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__DEFAULT = SWAGGER_NAMED_OBJECT_TYPE__DEFAULT; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__DESCRIPTION = SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION; + + /** + * The feature id for the '<em><b>Xml</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__XML = SWAGGER_NAMED_OBJECT_TYPE__XML; + + /** + * The feature id for the '<em><b>Required</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Reference</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Reference Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE_FEATURE_COUNT = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Reference Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_REFERENCE_OBJECT_TYPE_OPERATION_COUNT = SWAGGER_NAMED_OBJECT_TYPE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl <em>Object Class Definition</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerObjectClassDefinition() + * @generated + */ + int SWAGGER_OBJECT_CLASS_DEFINITION = 17; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__NAME = SWAGGER_NAMED_OBJECT_TYPE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__LAST_POLLED = SWAGGER_NAMED_OBJECT_TYPE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__LAST_CHANGED = SWAGGER_NAMED_OBJECT_TYPE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__CREATED = SWAGGER_NAMED_OBJECT_TYPE__CREATED; + + /** + * The feature id for the '<em><b>Many</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__MANY = SWAGGER_NAMED_OBJECT_TYPE__MANY; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__TYPE = SWAGGER_NAMED_OBJECT_TYPE__TYPE; + + /** + * The feature id for the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__DEFAULT = SWAGGER_NAMED_OBJECT_TYPE__DEFAULT; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__DESCRIPTION = SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION; + + /** + * The feature id for the '<em><b>Xml</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__XML = SWAGGER_NAMED_OBJECT_TYPE__XML; + + /** + * The feature id for the '<em><b>Required</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>All Of</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Properties</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Additional Properties</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Object Class Definition</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION_FEATURE_COUNT = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 4; + + /** + * The number of operations of the '<em>Object Class Definition</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_OBJECT_CLASS_DEFINITION_OPERATION_COUNT = SWAGGER_NAMED_OBJECT_TYPE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl <em>Simple Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSimpleObjectType() + * @generated + */ + int SWAGGER_SIMPLE_OBJECT_TYPE = 18; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__NAME = SWAGGER_NAMED_OBJECT_TYPE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__LAST_POLLED = SWAGGER_NAMED_OBJECT_TYPE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__LAST_CHANGED = SWAGGER_NAMED_OBJECT_TYPE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__CREATED = SWAGGER_NAMED_OBJECT_TYPE__CREATED; + + /** + * The feature id for the '<em><b>Many</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__MANY = SWAGGER_NAMED_OBJECT_TYPE__MANY; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__TYPE = SWAGGER_NAMED_OBJECT_TYPE__TYPE; + + /** + * The feature id for the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__DEFAULT = SWAGGER_NAMED_OBJECT_TYPE__DEFAULT; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__DESCRIPTION = SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION; + + /** + * The feature id for the '<em><b>Xml</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__XML = SWAGGER_NAMED_OBJECT_TYPE__XML; + + /** + * The feature id for the '<em><b>Required</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Minimum</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Maximum</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Example</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Collection Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 6; + + /** + * The number of structural features of the '<em>Simple Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE_FEATURE_COUNT = SWAGGER_NAMED_OBJECT_TYPE_FEATURE_COUNT + 7; + + /** + * The number of operations of the '<em>Simple Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_SIMPLE_OBJECT_TYPE_OPERATION_COUNT = SWAGGER_NAMED_OBJECT_TYPE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerXmlImpl <em>Xml</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerXmlImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerXml() + * @generated + */ + int SWAGGER_XML = 19; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_XML__NAME = 0; + + /** + * The feature id for the '<em><b>Wrapped</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_XML__WRAPPED = 1; + + /** + * The number of structural features of the '<em>Xml</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_XML_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Xml</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_XML_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerEnumObjectTypeImpl <em>Enum Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerEnumObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerEnumObjectType() + * @generated + */ + int SWAGGER_ENUM_OBJECT_TYPE = 20; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__NAME = SWAGGER_SIMPLE_OBJECT_TYPE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__LAST_POLLED = SWAGGER_SIMPLE_OBJECT_TYPE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__LAST_CHANGED = SWAGGER_SIMPLE_OBJECT_TYPE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__CREATED = SWAGGER_SIMPLE_OBJECT_TYPE__CREATED; + + /** + * The feature id for the '<em><b>Many</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__MANY = SWAGGER_SIMPLE_OBJECT_TYPE__MANY; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__TYPE = SWAGGER_SIMPLE_OBJECT_TYPE__TYPE; + + /** + * The feature id for the '<em><b>Default</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__DEFAULT = SWAGGER_SIMPLE_OBJECT_TYPE__DEFAULT; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__DESCRIPTION = SWAGGER_SIMPLE_OBJECT_TYPE__DESCRIPTION; + + /** + * The feature id for the '<em><b>Xml</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__XML = SWAGGER_SIMPLE_OBJECT_TYPE__XML; + + /** + * The feature id for the '<em><b>Required</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__REQUIRED = SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED; + + /** + * The feature id for the '<em><b>Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__FORMAT = SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT; + + /** + * The feature id for the '<em><b>Minimum</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__MINIMUM = SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM; + + /** + * The feature id for the '<em><b>Maximum</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__MAXIMUM = SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM; + + /** + * The feature id for the '<em><b>Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__PATTERN = SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN; + + /** + * The feature id for the '<em><b>Example</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__EXAMPLE = SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE; + + /** + * The feature id for the '<em><b>Collection Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__COLLECTION_FORMAT = SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT; + + /** + * The feature id for the '<em><b>Enum</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE__ENUM = SWAGGER_SIMPLE_OBJECT_TYPE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Enum Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE_FEATURE_COUNT = SWAGGER_SIMPLE_OBJECT_TYPE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Enum Object Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SWAGGER_ENUM_OBJECT_TYPE_OPERATION_COUNT = SWAGGER_SIMPLE_OBJECT_TYPE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType <em>Parameter Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerParameterType() + * @generated + */ + int SWAGGER_PARAMETER_TYPE = 21; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat <em>Collection Format</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerCollectionFormat() + * @generated + */ + int SWAGGER_COLLECTION_FORMAT = 22; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel <em>Model</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Model</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel + * @generated + */ + EClass getSwaggerModel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSwagger <em>Swagger</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Swagger</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSwagger() + * @see #getSwaggerModel() + * @generated + */ + EAttribute getSwaggerModel_Swagger(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getInfo <em>Info</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Info</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getInfo() + * @see #getSwaggerModel() + * @generated + */ + EReference getSwaggerModel_Info(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getHost <em>Host</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Host</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getHost() + * @see #getSwaggerModel() + * @generated + */ + EAttribute getSwaggerModel_Host(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getBasePath <em>Base Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Base Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getBasePath() + * @see #getSwaggerModel() + * @generated + */ + EAttribute getSwaggerModel_BasePath(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getTags <em>Tags</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Tags</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getTags() + * @see #getSwaggerModel() + * @generated + */ + EReference getSwaggerModel_Tags(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSchemes <em>Schemes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Schemes</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSchemes() + * @see #getSwaggerModel() + * @generated + */ + EAttribute getSwaggerModel_Schemes(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getPaths <em>Paths</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Paths</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getPaths() + * @see #getSwaggerModel() + * @generated + */ + EReference getSwaggerModel_Paths(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getDefinitions <em>Definitions</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Definitions</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getDefinitions() + * @see #getSwaggerModel() + * @generated + */ + EReference getSwaggerModel_Definitions(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getExternalDocs <em>External Docs</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>External Docs</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getExternalDocs() + * @see #getSwaggerModel() + * @generated + */ + EReference getSwaggerModel_ExternalDocs(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSecurityDefinitions <em>Security Definitions</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Security Definitions</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel#getSecurityDefinitions() + * @see #getSwaggerModel() + * @generated + */ + EReference getSwaggerModel_SecurityDefinitions(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo <em>Info</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Info</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo + * @generated + */ + EClass getSwaggerInfo(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getDescription() + * @see #getSwaggerInfo() + * @generated + */ + EAttribute getSwaggerInfo_Description(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getVersion <em>Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Version</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getVersion() + * @see #getSwaggerInfo() + * @generated + */ + EAttribute getSwaggerInfo_Version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTitle <em>Title</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Title</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTitle() + * @see #getSwaggerInfo() + * @generated + */ + EAttribute getSwaggerInfo_Title(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTermsOfService <em>Terms Of Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Terms Of Service</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getTermsOfService() + * @see #getSwaggerInfo() + * @generated + */ + EAttribute getSwaggerInfo_TermsOfService(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getContact <em>Contact</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Contact</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getContact() + * @see #getSwaggerInfo() + * @generated + */ + EReference getSwaggerInfo_Contact(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getLicense <em>License</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>License</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo#getLicense() + * @see #getSwaggerInfo() + * @generated + */ + EReference getSwaggerInfo_License(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact <em>Contact</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Contact</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact + * @generated + */ + EClass getSwaggerContact(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact#getEmail <em>Email</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Email</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact#getEmail() + * @see #getSwaggerContact() + * @generated + */ + EAttribute getSwaggerContact_Email(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense <em>License</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>License</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense + * @generated + */ + EClass getSwaggerLicense(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getName() + * @see #getSwaggerLicense() + * @generated + */ + EAttribute getSwaggerLicense_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getUrl <em>Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Url</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense#getUrl() + * @see #getSwaggerLicense() + * @generated + */ + EAttribute getSwaggerLicense_Url(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag <em>Tag</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Tag</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag + * @generated + */ + EClass getSwaggerTag(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getName() + * @see #getSwaggerTag() + * @generated + */ + EAttribute getSwaggerTag_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getDescription() + * @see #getSwaggerTag() + * @generated + */ + EAttribute getSwaggerTag_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getExternalDocs <em>External Docs</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>External Docs</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getExternalDocs() + * @see #getSwaggerTag() + * @generated + */ + EReference getSwaggerTag_ExternalDocs(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation <em>External Documentation</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>External Documentation</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation + * @generated + */ + EClass getSwaggerExternalDocumentation(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getDescription() + * @see #getSwaggerExternalDocumentation() + * @generated + */ + EAttribute getSwaggerExternalDocumentation_Description(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getUrl <em>Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Url</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation#getUrl() + * @see #getSwaggerExternalDocumentation() + * @generated + */ + EAttribute getSwaggerExternalDocumentation_Url(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath + * @generated + */ + EClass getSwaggerPath(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath#getMethods <em>Methods</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Methods</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath#getMethods() + * @see #getSwaggerPath() + * @generated + */ + EReference getSwaggerPath_Methods(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation <em>Operation</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Operation</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation + * @generated + */ + EClass getSwaggerOperation(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getTags <em>Tags</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Tags</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getTags() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_Tags(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSummary <em>Summary</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Summary</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSummary() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_Summary(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getDescription() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_Description(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getOperationId <em>Operation Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Operation Id</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getOperationId() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_OperationId(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getConsumes <em>Consumes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Consumes</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getConsumes() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_Consumes(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getProduces <em>Produces</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Produces</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getProduces() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_Produces(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getParameters <em>Parameters</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Parameters</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getParameters() + * @see #getSwaggerOperation() + * @generated + */ + EReference getSwaggerOperation_Parameters(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getResponses <em>Responses</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Responses</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getResponses() + * @see #getSwaggerOperation() + * @generated + */ + EReference getSwaggerOperation_Responses(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSecurity <em>Security</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Security</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#getSecurity() + * @see #getSwaggerOperation() + * @generated + */ + EReference getSwaggerOperation_Security(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#isDeprecated <em>Deprecated</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Deprecated</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation#isDeprecated() + * @see #getSwaggerOperation() + * @generated + */ + EAttribute getSwaggerOperation_Deprecated(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter <em>Parameter</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Parameter</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter + * @generated + */ + EClass getSwaggerParameter(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getIn <em>In</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>In</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getIn() + * @see #getSwaggerParameter() + * @generated + */ + EAttribute getSwaggerParameter_In(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getType() + * @see #getSwaggerParameter() + * @generated + */ + EReference getSwaggerParameter_Type(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse <em>Response</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Response</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse + * @generated + */ + EClass getSwaggerResponse(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getDescription() + * @see #getSwaggerResponse() + * @generated + */ + EAttribute getSwaggerResponse_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Schema</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getSchema() + * @see #getSwaggerResponse() + * @generated + */ + EReference getSwaggerResponse_Schema(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getHeaders <em>Headers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Headers</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getHeaders() + * @see #getSwaggerResponse() + * @generated + */ + EReference getSwaggerResponse_Headers(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject <em>Security Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Security Object</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject + * @generated + */ + EClass getSwaggerSecurityObject(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject#getList <em>List</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>List</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject#getList() + * @see #getSwaggerSecurityObject() + * @generated + */ + EReference getSwaggerSecurityObject_List(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity <em>Security</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Security</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity + * @generated + */ + EClass getSwaggerSecurity(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity#getRoles <em>Roles</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Roles</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity#getRoles() + * @see #getSwaggerSecurity() + * @generated + */ + EAttribute getSwaggerSecurity_Roles(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition <em>Security Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Security Definition</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition + * @generated + */ + EClass getSwaggerSecurityDefinition(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getType() + * @see #getSwaggerSecurityDefinition() + * @generated + */ + EAttribute getSwaggerSecurityDefinition_Type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getAuthorizationUrl <em>Authorization Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Authorization Url</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getAuthorizationUrl() + * @see #getSwaggerSecurityDefinition() + * @generated + */ + EAttribute getSwaggerSecurityDefinition_AuthorizationUrl(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getFlow <em>Flow</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Flow</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getFlow() + * @see #getSwaggerSecurityDefinition() + * @generated + */ + EAttribute getSwaggerSecurityDefinition_Flow(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getIn <em>In</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>In</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getIn() + * @see #getSwaggerSecurityDefinition() + * @generated + */ + EAttribute getSwaggerSecurityDefinition_In(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope <em>Security Definition Scope</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Security Definition Scope</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope + * @generated + */ + EClass getSwaggerSecurityDefinitionScope(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope#getDescription() + * @see #getSwaggerSecurityDefinitionScope() + * @generated + */ + EAttribute getSwaggerSecurityDefinitionScope_Description(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType <em>Object Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Object Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType + * @generated + */ + EClass getSwaggerObjectType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType#isMany <em>Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Many</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType#isMany() + * @see #getSwaggerObjectType() + * @generated + */ + EAttribute getSwaggerObjectType_Many(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType <em>Reference Object Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Reference Object Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType + * @generated + */ + EClass getSwaggerReferenceObjectType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#isRequired <em>Required</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Required</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#isRequired() + * @see #getSwaggerReferenceObjectType() + * @generated + */ + EAttribute getSwaggerReferenceObjectType_Required(); + + /** + * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#getReference <em>Reference</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Reference</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#getReference() + * @see #getSwaggerReferenceObjectType() + * @generated + */ + EReference getSwaggerReferenceObjectType_Reference(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType <em>Named Object Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Named Object Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType + * @generated + */ + EClass getSwaggerNamedObjectType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getType() + * @see #getSwaggerNamedObjectType() + * @generated + */ + EAttribute getSwaggerNamedObjectType_Type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDefault <em>Default</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Default</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDefault() + * @see #getSwaggerNamedObjectType() + * @generated + */ + EAttribute getSwaggerNamedObjectType_Default(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getDescription() + * @see #getSwaggerNamedObjectType() + * @generated + */ + EAttribute getSwaggerNamedObjectType_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getXml <em>Xml</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Xml</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType#getXml() + * @see #getSwaggerNamedObjectType() + * @generated + */ + EReference getSwaggerNamedObjectType_Xml(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition <em>Object Class Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Object Class Definition</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition + * @generated + */ + EClass getSwaggerObjectClassDefinition(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getRequired <em>Required</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Required</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getRequired() + * @see #getSwaggerObjectClassDefinition() + * @generated + */ + EAttribute getSwaggerObjectClassDefinition_Required(); + + /** + * Returns the meta object for the reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAllOf <em>All Of</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference list '<em>All Of</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAllOf() + * @see #getSwaggerObjectClassDefinition() + * @generated + */ + EReference getSwaggerObjectClassDefinition_AllOf(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getProperties <em>Properties</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Properties</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getProperties() + * @see #getSwaggerObjectClassDefinition() + * @generated + */ + EReference getSwaggerObjectClassDefinition_Properties(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAdditionalProperties <em>Additional Properties</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Additional Properties</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition#getAdditionalProperties() + * @see #getSwaggerObjectClassDefinition() + * @generated + */ + EReference getSwaggerObjectClassDefinition_AdditionalProperties(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType <em>Simple Object Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Simple Object Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType + * @generated + */ + EClass getSwaggerSimpleObjectType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#isRequired <em>Required</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Required</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#isRequired() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_Required(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getFormat <em>Format</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Format</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getFormat() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_Format(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMinimum <em>Minimum</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Minimum</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMinimum() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_Minimum(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMaximum <em>Maximum</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Maximum</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMaximum() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_Maximum(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getPattern <em>Pattern</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pattern</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getPattern() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_Pattern(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getExample <em>Example</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Example</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getExample() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_Example(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getCollectionFormat <em>Collection Format</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Collection Format</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getCollectionFormat() + * @see #getSwaggerSimpleObjectType() + * @generated + */ + EAttribute getSwaggerSimpleObjectType_CollectionFormat(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml <em>Xml</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml + * @generated + */ + EClass getSwaggerXml(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#getName() + * @see #getSwaggerXml() + * @generated + */ + EAttribute getSwaggerXml_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#isWrapped <em>Wrapped</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Wrapped</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#isWrapped() + * @see #getSwaggerXml() + * @generated + */ + EAttribute getSwaggerXml_Wrapped(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType <em>Enum Object Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Enum Object Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType + * @generated + */ + EClass getSwaggerEnumObjectType(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType#getEnum <em>Enum</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Enum</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType#getEnum() + * @see #getSwaggerEnumObjectType() + * @generated + */ + EAttribute getSwaggerEnumObjectType_Enum(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType <em>Parameter Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Parameter Type</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @generated + */ + EEnum getSwaggerParameterType(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat <em>Collection Format</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Collection Format</em>'. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat + * @generated + */ + EEnum getSwaggerCollectionFormat(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + SwaggerFactory getSwaggerFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl <em>Model</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerModel() + * @generated + */ + EClass SWAGGER_MODEL = eINSTANCE.getSwaggerModel(); + + /** + * The meta object literal for the '<em><b>Swagger</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_MODEL__SWAGGER = eINSTANCE.getSwaggerModel_Swagger(); + + /** + * The meta object literal for the '<em><b>Info</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_MODEL__INFO = eINSTANCE.getSwaggerModel_Info(); + + /** + * The meta object literal for the '<em><b>Host</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_MODEL__HOST = eINSTANCE.getSwaggerModel_Host(); + + /** + * The meta object literal for the '<em><b>Base Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_MODEL__BASE_PATH = eINSTANCE.getSwaggerModel_BasePath(); + + /** + * The meta object literal for the '<em><b>Tags</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_MODEL__TAGS = eINSTANCE.getSwaggerModel_Tags(); + + /** + * The meta object literal for the '<em><b>Schemes</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_MODEL__SCHEMES = eINSTANCE.getSwaggerModel_Schemes(); + + /** + * The meta object literal for the '<em><b>Paths</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_MODEL__PATHS = eINSTANCE.getSwaggerModel_Paths(); + + /** + * The meta object literal for the '<em><b>Definitions</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_MODEL__DEFINITIONS = eINSTANCE.getSwaggerModel_Definitions(); + + /** + * The meta object literal for the '<em><b>External Docs</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_MODEL__EXTERNAL_DOCS = eINSTANCE.getSwaggerModel_ExternalDocs(); + + /** + * The meta object literal for the '<em><b>Security Definitions</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_MODEL__SECURITY_DEFINITIONS = eINSTANCE.getSwaggerModel_SecurityDefinitions(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl <em>Info</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerInfo() + * @generated + */ + EClass SWAGGER_INFO = eINSTANCE.getSwaggerInfo(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_INFO__DESCRIPTION = eINSTANCE.getSwaggerInfo_Description(); + + /** + * The meta object literal for the '<em><b>Version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_INFO__VERSION = eINSTANCE.getSwaggerInfo_Version(); + + /** + * The meta object literal for the '<em><b>Title</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_INFO__TITLE = eINSTANCE.getSwaggerInfo_Title(); + + /** + * The meta object literal for the '<em><b>Terms Of Service</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_INFO__TERMS_OF_SERVICE = eINSTANCE.getSwaggerInfo_TermsOfService(); + + /** + * The meta object literal for the '<em><b>Contact</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_INFO__CONTACT = eINSTANCE.getSwaggerInfo_Contact(); + + /** + * The meta object literal for the '<em><b>License</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_INFO__LICENSE = eINSTANCE.getSwaggerInfo_License(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerContactImpl <em>Contact</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerContactImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerContact() + * @generated + */ + EClass SWAGGER_CONTACT = eINSTANCE.getSwaggerContact(); + + /** + * The meta object literal for the '<em><b>Email</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_CONTACT__EMAIL = eINSTANCE.getSwaggerContact_Email(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerLicenseImpl <em>License</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerLicenseImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerLicense() + * @generated + */ + EClass SWAGGER_LICENSE = eINSTANCE.getSwaggerLicense(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_LICENSE__NAME = eINSTANCE.getSwaggerLicense_Name(); + + /** + * The meta object literal for the '<em><b>Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_LICENSE__URL = eINSTANCE.getSwaggerLicense_Url(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl <em>Tag</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerTag() + * @generated + */ + EClass SWAGGER_TAG = eINSTANCE.getSwaggerTag(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_TAG__NAME = eINSTANCE.getSwaggerTag_Name(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_TAG__DESCRIPTION = eINSTANCE.getSwaggerTag_Description(); + + /** + * The meta object literal for the '<em><b>External Docs</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_TAG__EXTERNAL_DOCS = eINSTANCE.getSwaggerTag_ExternalDocs(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerExternalDocumentationImpl <em>External Documentation</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerExternalDocumentationImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerExternalDocumentation() + * @generated + */ + EClass SWAGGER_EXTERNAL_DOCUMENTATION = eINSTANCE.getSwaggerExternalDocumentation(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION = eINSTANCE.getSwaggerExternalDocumentation_Description(); + + /** + * The meta object literal for the '<em><b>Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_EXTERNAL_DOCUMENTATION__URL = eINSTANCE.getSwaggerExternalDocumentation_Url(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPathImpl <em>Path</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPathImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerPath() + * @generated + */ + EClass SWAGGER_PATH = eINSTANCE.getSwaggerPath(); + + /** + * The meta object literal for the '<em><b>Methods</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_PATH__METHODS = eINSTANCE.getSwaggerPath_Methods(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl <em>Operation</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerOperation() + * @generated + */ + EClass SWAGGER_OPERATION = eINSTANCE.getSwaggerOperation(); + + /** + * The meta object literal for the '<em><b>Tags</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__TAGS = eINSTANCE.getSwaggerOperation_Tags(); + + /** + * The meta object literal for the '<em><b>Summary</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__SUMMARY = eINSTANCE.getSwaggerOperation_Summary(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__DESCRIPTION = eINSTANCE.getSwaggerOperation_Description(); + + /** + * The meta object literal for the '<em><b>Operation Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__OPERATION_ID = eINSTANCE.getSwaggerOperation_OperationId(); + + /** + * The meta object literal for the '<em><b>Consumes</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__CONSUMES = eINSTANCE.getSwaggerOperation_Consumes(); + + /** + * The meta object literal for the '<em><b>Produces</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__PRODUCES = eINSTANCE.getSwaggerOperation_Produces(); + + /** + * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_OPERATION__PARAMETERS = eINSTANCE.getSwaggerOperation_Parameters(); + + /** + * The meta object literal for the '<em><b>Responses</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_OPERATION__RESPONSES = eINSTANCE.getSwaggerOperation_Responses(); + + /** + * The meta object literal for the '<em><b>Security</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_OPERATION__SECURITY = eINSTANCE.getSwaggerOperation_Security(); + + /** + * The meta object literal for the '<em><b>Deprecated</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OPERATION__DEPRECATED = eINSTANCE.getSwaggerOperation_Deprecated(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerParameterImpl <em>Parameter</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerParameterImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerParameter() + * @generated + */ + EClass SWAGGER_PARAMETER = eINSTANCE.getSwaggerParameter(); + + /** + * The meta object literal for the '<em><b>In</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_PARAMETER__IN = eINSTANCE.getSwaggerParameter_In(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_PARAMETER__TYPE = eINSTANCE.getSwaggerParameter_Type(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl <em>Response</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerResponse() + * @generated + */ + EClass SWAGGER_RESPONSE = eINSTANCE.getSwaggerResponse(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_RESPONSE__DESCRIPTION = eINSTANCE.getSwaggerResponse_Description(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_RESPONSE__SCHEMA = eINSTANCE.getSwaggerResponse_Schema(); + + /** + * The meta object literal for the '<em><b>Headers</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_RESPONSE__HEADERS = eINSTANCE.getSwaggerResponse_Headers(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityObjectImpl <em>Security Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityObjectImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurityObject() + * @generated + */ + EClass SWAGGER_SECURITY_OBJECT = eINSTANCE.getSwaggerSecurityObject(); + + /** + * The meta object literal for the '<em><b>List</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_SECURITY_OBJECT__LIST = eINSTANCE.getSwaggerSecurityObject_List(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityImpl <em>Security</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurity() + * @generated + */ + EClass SWAGGER_SECURITY = eINSTANCE.getSwaggerSecurity(); + + /** + * The meta object literal for the '<em><b>Roles</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SECURITY__ROLES = eINSTANCE.getSwaggerSecurity_Roles(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl <em>Security Definition</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurityDefinition() + * @generated + */ + EClass SWAGGER_SECURITY_DEFINITION = eINSTANCE.getSwaggerSecurityDefinition(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SECURITY_DEFINITION__TYPE = eINSTANCE.getSwaggerSecurityDefinition_Type(); + + /** + * The meta object literal for the '<em><b>Authorization Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL = eINSTANCE.getSwaggerSecurityDefinition_AuthorizationUrl(); + + /** + * The meta object literal for the '<em><b>Flow</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SECURITY_DEFINITION__FLOW = eINSTANCE.getSwaggerSecurityDefinition_Flow(); + + /** + * The meta object literal for the '<em><b>In</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SECURITY_DEFINITION__IN = eINSTANCE.getSwaggerSecurityDefinition_In(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionScopeImpl <em>Security Definition Scope</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionScopeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSecurityDefinitionScope() + * @generated + */ + EClass SWAGGER_SECURITY_DEFINITION_SCOPE = eINSTANCE.getSwaggerSecurityDefinitionScope(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION = eINSTANCE.getSwaggerSecurityDefinitionScope_Description(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectTypeImpl <em>Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerObjectType() + * @generated + */ + EClass SWAGGER_OBJECT_TYPE = eINSTANCE.getSwaggerObjectType(); + + /** + * The meta object literal for the '<em><b>Many</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OBJECT_TYPE__MANY = eINSTANCE.getSwaggerObjectType_Many(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerReferenceObjectTypeImpl <em>Reference Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerReferenceObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerReferenceObjectType() + * @generated + */ + EClass SWAGGER_REFERENCE_OBJECT_TYPE = eINSTANCE.getSwaggerReferenceObjectType(); + + /** + * The meta object literal for the '<em><b>Required</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED = eINSTANCE.getSwaggerReferenceObjectType_Required(); + + /** + * The meta object literal for the '<em><b>Reference</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE = eINSTANCE.getSwaggerReferenceObjectType_Reference(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl <em>Named Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerNamedObjectType() + * @generated + */ + EClass SWAGGER_NAMED_OBJECT_TYPE = eINSTANCE.getSwaggerNamedObjectType(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_NAMED_OBJECT_TYPE__TYPE = eINSTANCE.getSwaggerNamedObjectType_Type(); + + /** + * The meta object literal for the '<em><b>Default</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_NAMED_OBJECT_TYPE__DEFAULT = eINSTANCE.getSwaggerNamedObjectType_Default(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION = eINSTANCE.getSwaggerNamedObjectType_Description(); + + /** + * The meta object literal for the '<em><b>Xml</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_NAMED_OBJECT_TYPE__XML = eINSTANCE.getSwaggerNamedObjectType_Xml(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl <em>Object Class Definition</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerObjectClassDefinition() + * @generated + */ + EClass SWAGGER_OBJECT_CLASS_DEFINITION = eINSTANCE.getSwaggerObjectClassDefinition(); + + /** + * The meta object literal for the '<em><b>Required</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED = eINSTANCE.getSwaggerObjectClassDefinition_Required(); + + /** + * The meta object literal for the '<em><b>All Of</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF = eINSTANCE.getSwaggerObjectClassDefinition_AllOf(); + + /** + * The meta object literal for the '<em><b>Properties</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES = eINSTANCE.getSwaggerObjectClassDefinition_Properties(); + + /** + * The meta object literal for the '<em><b>Additional Properties</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES = eINSTANCE.getSwaggerObjectClassDefinition_AdditionalProperties(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl <em>Simple Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerSimpleObjectType() + * @generated + */ + EClass SWAGGER_SIMPLE_OBJECT_TYPE = eINSTANCE.getSwaggerSimpleObjectType(); + + /** + * The meta object literal for the '<em><b>Required</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED = eINSTANCE.getSwaggerSimpleObjectType_Required(); + + /** + * The meta object literal for the '<em><b>Format</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT = eINSTANCE.getSwaggerSimpleObjectType_Format(); + + /** + * The meta object literal for the '<em><b>Minimum</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM = eINSTANCE.getSwaggerSimpleObjectType_Minimum(); + + /** + * The meta object literal for the '<em><b>Maximum</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM = eINSTANCE.getSwaggerSimpleObjectType_Maximum(); + + /** + * The meta object literal for the '<em><b>Pattern</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN = eINSTANCE.getSwaggerSimpleObjectType_Pattern(); + + /** + * The meta object literal for the '<em><b>Example</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE = eINSTANCE.getSwaggerSimpleObjectType_Example(); + + /** + * The meta object literal for the '<em><b>Collection Format</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT = eINSTANCE.getSwaggerSimpleObjectType_CollectionFormat(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerXmlImpl <em>Xml</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerXmlImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerXml() + * @generated + */ + EClass SWAGGER_XML = eINSTANCE.getSwaggerXml(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_XML__NAME = eINSTANCE.getSwaggerXml_Name(); + + /** + * The meta object literal for the '<em><b>Wrapped</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_XML__WRAPPED = eINSTANCE.getSwaggerXml_Wrapped(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerEnumObjectTypeImpl <em>Enum Object Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerEnumObjectTypeImpl + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerEnumObjectType() + * @generated + */ + EClass SWAGGER_ENUM_OBJECT_TYPE = eINSTANCE.getSwaggerEnumObjectType(); + + /** + * The meta object literal for the '<em><b>Enum</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SWAGGER_ENUM_OBJECT_TYPE__ENUM = eINSTANCE.getSwaggerEnumObjectType_Enum(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType <em>Parameter Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerParameterType() + * @generated + */ + EEnum SWAGGER_PARAMETER_TYPE = eINSTANCE.getSwaggerParameterType(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat <em>Collection Format</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat + * @see org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPackageImpl#getSwaggerCollectionFormat() + * @generated + */ + EEnum SWAGGER_COLLECTION_FORMAT = eINSTANCE.getSwaggerCollectionFormat(); + + } + +} //SwaggerPackage diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerParameter.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerParameter.java new file mode 100644 index 0000000..1d0f272 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerParameter.java @@ -0,0 +1,102 @@ + +/*- + * ============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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Parameter</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getIn <em>In</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter#getType <em>Type</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerParameter() + * @model + * @generated + */ +public interface SwaggerParameter extends NamedEntity { + /** + * Returns the value of the '<em><b>In</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>In</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>In</em>' 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 <em>In</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>In</em>' attribute. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType + * @see #getIn() + * @generated + */ + void setIn(SwaggerParameterType value); + + /** + * Returns the value of the '<em><b>Type</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Parameter Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerParameterType() + * @model + * @generated + */ +public enum SwaggerParameterType implements Enumerator { + /** + * The '<em><b>Path</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #PATH_VALUE + * @generated + * @ordered + */ + PATH(0, "path", "path"), + + /** + * The '<em><b>Query</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #QUERY_VALUE + * @generated + * @ordered + */ + QUERY(0, "query", "query"), + + /** + * The '<em><b>Header</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #HEADER_VALUE + * @generated + * @ordered + */ + HEADER(0, "header", "header"), + + /** + * The '<em><b>Body</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #BODY_VALUE + * @generated + * @ordered + */ + BODY(0, "body", "body"), + + /** + * The '<em><b>Form</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #FORM_VALUE + * @generated + * @ordered + */ + FORM(0, "form", "form"), /** + * The '<em><b>Form Data</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #FORM_DATA_VALUE + * @generated + * @ordered + */ + FORM_DATA(0, "formData", "formData"); + + /** + * The '<em><b>Path</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Path</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #PATH + * @model name="path" + * @generated + * @ordered + */ + public static final int PATH_VALUE = 0; + + /** + * The '<em><b>Query</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Query</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #QUERY + * @model name="query" + * @generated + * @ordered + */ + public static final int QUERY_VALUE = 0; + + /** + * The '<em><b>Header</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Header</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #HEADER + * @model name="header" + * @generated + * @ordered + */ + public static final int HEADER_VALUE = 0; + + /** + * The '<em><b>Body</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Body</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #BODY + * @model name="body" + * @generated + * @ordered + */ + public static final int BODY_VALUE = 0; + + /** + * The '<em><b>Form</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Form</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #FORM + * @model name="form" + * @generated + * @ordered + */ + public static final int FORM_VALUE = 0; + + /** + * The '<em><b>Form Data</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Form Data</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #FORM_DATA + * @model name="formData" + * @generated + * @ordered + */ + public static final int FORM_DATA_VALUE = 0; + + /** + * An array of all the '<em><b>Parameter Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final SwaggerParameterType[] VALUES_ARRAY = + new SwaggerParameterType[] { + PATH, + QUERY, + HEADER, + BODY, + FORM, + FORM_DATA, + }; + + /** + * A public read-only list of all the '<em><b>Parameter Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<SwaggerParameterType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Parameter Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerParameterType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SwaggerParameterType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Parameter Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerParameterType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SwaggerParameterType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Parameter Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerParameterType get(int value) { + switch (value) { + case PATH_VALUE: return PATH; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private SwaggerParameterType(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //SwaggerParameterType diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerPath.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerPath.java new file mode 100644 index 0000000..cc28040 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerPath.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.swagger; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Path</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath#getMethods <em>Methods</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerPath() + * @model + * @generated + */ +public interface SwaggerPath extends NamedEntity { + /** + * Returns the value of the '<em><b>Methods</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Methods</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Methods</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerPath_Methods() + * @model containment="true" + * @generated + */ + EList<SwaggerOperation> getMethods(); + +} // SwaggerPath diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerReferenceObjectType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerReferenceObjectType.java new file mode 100644 index 0000000..c496b2d --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerReferenceObjectType.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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Reference Object Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#isRequired <em>Required</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType#getReference <em>Reference</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerReferenceObjectType() + * @model + * @generated + */ +public interface SwaggerReferenceObjectType extends SwaggerNamedObjectType { + /** + * Returns the value of the '<em><b>Required</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Required</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Required</em>' 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 <em>Required</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Required</em>' attribute. + * @see #isRequired() + * @generated + */ + void setRequired(boolean value); + + /** + * Returns the value of the '<em><b>Reference</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Reference</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Reference</em>' 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 <em>Reference</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Reference</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Response</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getSchema <em>Schema</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse#getHeaders <em>Headers</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerResponse() + * @model + * @generated + */ +public interface SwaggerResponse extends NamedEntity { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' 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 <em>Schema</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' containment reference. + * @see #getSchema() + * @generated + */ + void setSchema(SwaggerObjectType value); + + /** + * Returns the value of the '<em><b>Headers</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Headers</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Headers</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerResponse_Headers() + * @model containment="true" + * @generated + */ + EList<SwaggerSimpleObjectType> getHeaders(); + +} // SwaggerResponse diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSchema.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSchema.java new file mode 100644 index 0000000..851816b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSchema.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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Schema</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSchema#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSchema#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSchema() + * @model + * @generated + */ +public interface SwaggerSchema extends EObject { + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' 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 <em>Schema</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity#getRoles <em>Roles</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurity() + * @model + * @generated + */ +public interface SwaggerSecurity extends NamedEntity { + /** + * Returns the value of the '<em><b>Roles</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Roles</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Roles</em>' attribute list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurity_Roles() + * @model unique="false" + * @generated + */ + EList<String> getRoles(); + +} // SwaggerSecurity diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityDefinition.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityDefinition.java new file mode 100644 index 0000000..a24c9b7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSecurityDefinition.java @@ -0,0 +1,155 @@ + +/*- + * ============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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security Definition</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getAuthorizationUrl <em>Authorization Url</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getFlow <em>Flow</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition#getIn <em>In</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinition() + * @model + * @generated + */ +public interface SwaggerSecurityDefinition extends NamedEntity { + + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' 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 <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Authorization Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Authorization Url</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Authorization Url</em>' 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 <em>Authorization Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Authorization Url</em>' attribute. + * @see #getAuthorizationUrl() + * @generated + */ + void setAuthorizationUrl(String value); + + /** + * Returns the value of the '<em><b>Flow</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Flow</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Flow</em>' 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 <em>Flow</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Flow</em>' attribute. + * @see #getFlow() + * @generated + */ + void setFlow(String value); + + /** + * Returns the value of the '<em><b>In</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>In</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>In</em>' 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 <em>In</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>In</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security Definition Scope</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope#getDescription <em>Description</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityDefinitionScope() + * @model + * @generated + */ +public interface SwaggerSecurityDefinitionScope extends NamedEntity { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security List</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityList#getList <em>List</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityList() + * @model + * @generated + */ +public interface SwaggerSecurityList extends EObject { + /** + * Returns the value of the '<em><b>List</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>List</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>List</em>' 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 <em>List</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>List</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security Object</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject#getList <em>List</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityObject() + * @model + * @generated + */ +public interface SwaggerSecurityObject extends EObject { + /** + * Returns the value of the '<em><b>List</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>List</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>List</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSecurityObject_List() + * @model containment="true" + * @generated + */ + EList<SwaggerSecurity> getList(); + +} // SwaggerSecurityObject diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSimpleObjectType.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSimpleObjectType.java new file mode 100644 index 0000000..2a415eb --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/SwaggerSimpleObjectType.java @@ -0,0 +1,235 @@ + +/*- + * ============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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Simple Object Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#isRequired <em>Required</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getFormat <em>Format</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMinimum <em>Minimum</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getMaximum <em>Maximum</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getPattern <em>Pattern</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getExample <em>Example</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType#getCollectionFormat <em>Collection Format</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerSimpleObjectType() + * @model + * @generated + */ +public interface SwaggerSimpleObjectType extends SwaggerNamedObjectType { + /** + * Returns the value of the '<em><b>Required</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Required</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Required</em>' 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 <em>Required</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Required</em>' attribute. + * @see #isRequired() + * @generated + */ + void setRequired(boolean value); + + /** + * Returns the value of the '<em><b>Format</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Format</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Format</em>' 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 <em>Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Format</em>' attribute. + * @see #getFormat() + * @generated + */ + void setFormat(String value); + + /** + * Returns the value of the '<em><b>Minimum</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Minimum</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Minimum</em>' 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 <em>Minimum</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Minimum</em>' attribute. + * @see #getMinimum() + * @generated + */ + void setMinimum(String value); + + /** + * Returns the value of the '<em><b>Maximum</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Maximum</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Maximum</em>' 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 <em>Maximum</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Maximum</em>' attribute. + * @see #getMaximum() + * @generated + */ + void setMaximum(String value); + + /** + * Returns the value of the '<em><b>Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pattern</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pattern</em>' 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 <em>Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pattern</em>' attribute. + * @see #getPattern() + * @generated + */ + void setPattern(String value); + + /** + * Returns the value of the '<em><b>Example</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Example</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Example</em>' 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 <em>Example</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Example</em>' attribute. + * @see #getExample() + * @generated + */ + void setExample(String value); + + /** + * Returns the value of the '<em><b>Collection Format</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Collection Format</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Collection Format</em>' 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 <em>Collection Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Collection Format</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Tag</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag#getExternalDocs <em>External Docs</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerTag() + * @model + * @generated + */ +public interface SwaggerTag extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>External Docs</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>External Docs</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>External Docs</em>' 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 <em>External Docs</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>External Docs</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml#isWrapped <em>Wrapped</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage#getSwaggerXml() + * @model + * @generated + */ +public interface SwaggerXml extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Wrapped</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Wrapped</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Wrapped</em>' 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 <em>Wrapped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Wrapped</em>' 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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Contact</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerContactImpl#getEmail <em>Email</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerContactImpl extends MinimalEObjectImpl.Container implements SwaggerContact { + /** + * The default value of the '{@link #getEmail() <em>Email</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEmail() + * @generated + * @ordered + */ + protected static final String EMAIL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEmail() + * @generated + * @ordered + */ + protected String email = EMAIL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerContactImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_CONTACT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getEmail() { + return email; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEmail(String newEmail) { + String oldEmail = email; + email = newEmail; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_CONTACT__EMAIL, oldEmail, email)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_CONTACT__EMAIL: + return getEmail(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_CONTACT__EMAIL: + setEmail((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_CONTACT__EMAIL: + setEmail(EMAIL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_CONTACT__EMAIL: + return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT.equals(email); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (email: "); + result.append(email); + result.append(')'); + return result.toString(); + } + +} //SwaggerContactImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerEnumObjectTypeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerEnumObjectTypeImpl.java new file mode 100644 index 0000000..08536f8 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerEnumObjectTypeImpl.java @@ -0,0 +1,164 @@ + +/*- + * ============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.SwaggerEnumObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import java.util.Collection; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Enum Object Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerEnumObjectTypeImpl#getEnum <em>Enum</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerEnumObjectTypeImpl extends SwaggerSimpleObjectTypeImpl implements SwaggerEnumObjectType { + /** + * The cached value of the '{@link #getEnum() <em>Enum</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnum() + * @generated + * @ordered + */ + protected EList<String> enum_; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerEnumObjectTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_ENUM_OBJECT_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getEnum() { + if (enum_ == null) { + enum_ = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE__ENUM); + } + return enum_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE__ENUM: + return getEnum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE__ENUM: + getEnum().clear(); + getEnum().addAll((Collection<? extends String>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE__ENUM: + getEnum().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE__ENUM: + return enum_ != null && !enum_.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (enum: "); + result.append(enum_); + result.append(')'); + return result.toString(); + } + +} //SwaggerEnumObjectTypeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerExternalDocumentationImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerExternalDocumentationImpl.java new file mode 100644 index 0000000..5340aa2 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerExternalDocumentationImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.swagger.impl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Document</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerExternalDocumentationImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerExternalDocumentationImpl#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerExternalDocumentationImpl extends MinimalEObjectImpl.Container implements SwaggerExternalDocumentation { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected static final String URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected String url = URL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerExternalDocumentationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_EXTERNAL_DOCUMENTATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUrl() { + return url; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUrl(String newUrl) { + String oldUrl = url; + url = newUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__URL, oldUrl, url)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION: + return getDescription(); + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__URL: + return getUrl(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION: + setDescription((String)newValue); + return; + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__URL: + setUrl((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__URL: + setUrl(URL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION__URL: + return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", url: "); + result.append(url); + result.append(')'); + return result.toString(); + } + +} //SwaggerDocumentImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerFactoryImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerFactoryImpl.java new file mode 100644 index 0000000..f5b9c91 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerFactoryImpl.java @@ -0,0 +1,411 @@ + +/*- + * ============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.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class SwaggerFactoryImpl extends EFactoryImpl implements SwaggerFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static SwaggerFactory init() { + try { + SwaggerFactory theSwaggerFactory = (SwaggerFactory)EPackage.Registry.INSTANCE.getEFactory(SwaggerPackage.eNS_URI); + if (theSwaggerFactory != null) { + return theSwaggerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SwaggerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SwaggerPackage.SWAGGER_MODEL: return createSwaggerModel(); + case SwaggerPackage.SWAGGER_INFO: return createSwaggerInfo(); + case SwaggerPackage.SWAGGER_CONTACT: return createSwaggerContact(); + case SwaggerPackage.SWAGGER_LICENSE: return createSwaggerLicense(); + case SwaggerPackage.SWAGGER_TAG: return createSwaggerTag(); + case SwaggerPackage.SWAGGER_EXTERNAL_DOCUMENTATION: return createSwaggerExternalDocumentation(); + case SwaggerPackage.SWAGGER_PATH: return createSwaggerPath(); + case SwaggerPackage.SWAGGER_OPERATION: return createSwaggerOperation(); + case SwaggerPackage.SWAGGER_PARAMETER: return createSwaggerParameter(); + case SwaggerPackage.SWAGGER_RESPONSE: return createSwaggerResponse(); + case SwaggerPackage.SWAGGER_SECURITY_OBJECT: return createSwaggerSecurityObject(); + case SwaggerPackage.SWAGGER_SECURITY: return createSwaggerSecurity(); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION: return createSwaggerSecurityDefinition(); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE: return createSwaggerSecurityDefinitionScope(); + case SwaggerPackage.SWAGGER_OBJECT_TYPE: return createSwaggerObjectType(); + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE: return createSwaggerReferenceObjectType(); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE: return createSwaggerNamedObjectType(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION: return createSwaggerObjectClassDefinition(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE: return createSwaggerSimpleObjectType(); + case SwaggerPackage.SWAGGER_XML: return createSwaggerXml(); + case SwaggerPackage.SWAGGER_ENUM_OBJECT_TYPE: return createSwaggerEnumObjectType(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case SwaggerPackage.SWAGGER_PARAMETER_TYPE: + return createSwaggerParameterTypeFromString(eDataType, initialValue); + case SwaggerPackage.SWAGGER_COLLECTION_FORMAT: + return createSwaggerCollectionFormatFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case SwaggerPackage.SWAGGER_PARAMETER_TYPE: + return convertSwaggerParameterTypeToString(eDataType, instanceValue); + case SwaggerPackage.SWAGGER_COLLECTION_FORMAT: + return convertSwaggerCollectionFormatToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerModel createSwaggerModel() { + SwaggerModelImpl swaggerModel = new SwaggerModelImpl(); + return swaggerModel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerInfo createSwaggerInfo() { + SwaggerInfoImpl swaggerInfo = new SwaggerInfoImpl(); + return swaggerInfo; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerContact createSwaggerContact() { + SwaggerContactImpl swaggerContact = new SwaggerContactImpl(); + return swaggerContact; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerLicense createSwaggerLicense() { + SwaggerLicenseImpl swaggerLicense = new SwaggerLicenseImpl(); + return swaggerLicense; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerTag createSwaggerTag() { + SwaggerTagImpl swaggerTag = new SwaggerTagImpl(); + return swaggerTag; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerExternalDocumentation createSwaggerExternalDocumentation() { + SwaggerExternalDocumentationImpl swaggerExternalDocumentation = new SwaggerExternalDocumentationImpl(); + return swaggerExternalDocumentation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerPath createSwaggerPath() { + SwaggerPathImpl swaggerPath = new SwaggerPathImpl(); + return swaggerPath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerOperation createSwaggerOperation() { + SwaggerOperationImpl swaggerOperation = new SwaggerOperationImpl(); + return swaggerOperation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerParameter createSwaggerParameter() { + SwaggerParameterImpl swaggerParameter = new SwaggerParameterImpl(); + return swaggerParameter; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerResponse createSwaggerResponse() { + SwaggerResponseImpl swaggerResponse = new SwaggerResponseImpl(); + return swaggerResponse; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerSecurityObject createSwaggerSecurityObject() { + SwaggerSecurityObjectImpl swaggerSecurityObject = new SwaggerSecurityObjectImpl(); + return swaggerSecurityObject; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerSecurity createSwaggerSecurity() { + SwaggerSecurityImpl swaggerSecurity = new SwaggerSecurityImpl(); + return swaggerSecurity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerSecurityDefinition createSwaggerSecurityDefinition() { + SwaggerSecurityDefinitionImpl swaggerSecurityDefinition = new SwaggerSecurityDefinitionImpl(); + return swaggerSecurityDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerSecurityDefinitionScope createSwaggerSecurityDefinitionScope() { + SwaggerSecurityDefinitionScopeImpl swaggerSecurityDefinitionScope = new SwaggerSecurityDefinitionScopeImpl(); + return swaggerSecurityDefinitionScope; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectType createSwaggerObjectType() { + SwaggerObjectTypeImpl swaggerObjectType = new SwaggerObjectTypeImpl(); + return swaggerObjectType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerReferenceObjectType createSwaggerReferenceObjectType() { + SwaggerReferenceObjectTypeImpl swaggerReferenceObjectType = new SwaggerReferenceObjectTypeImpl(); + return swaggerReferenceObjectType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerNamedObjectType createSwaggerNamedObjectType() { + SwaggerNamedObjectTypeImpl swaggerNamedObjectType = new SwaggerNamedObjectTypeImpl(); + return swaggerNamedObjectType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectClassDefinition createSwaggerObjectClassDefinition() { + SwaggerObjectClassDefinitionImpl swaggerObjectClassDefinition = new SwaggerObjectClassDefinitionImpl(); + return swaggerObjectClassDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerSimpleObjectType createSwaggerSimpleObjectType() { + SwaggerSimpleObjectTypeImpl swaggerSimpleObjectType = new SwaggerSimpleObjectTypeImpl(); + return swaggerSimpleObjectType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerXml createSwaggerXml() { + SwaggerXmlImpl swaggerXml = new SwaggerXmlImpl(); + return swaggerXml; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerEnumObjectType createSwaggerEnumObjectType() { + SwaggerEnumObjectTypeImpl swaggerEnumObjectType = new SwaggerEnumObjectTypeImpl(); + return swaggerEnumObjectType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerParameterType createSwaggerParameterTypeFromString(EDataType eDataType, String initialValue) { + SwaggerParameterType result = SwaggerParameterType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertSwaggerParameterTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerCollectionFormat createSwaggerCollectionFormatFromString(EDataType eDataType, String initialValue) { + SwaggerCollectionFormat result = SwaggerCollectionFormat.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertSwaggerCollectionFormatToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerPackage getSwaggerPackage() { + return (SwaggerPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static SwaggerPackage getPackage() { + return SwaggerPackage.eINSTANCE; + } + +} //SwaggerFactoryImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerInfoImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerInfoImpl.java new file mode 100644 index 0000000..e325523 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerInfoImpl.java @@ -0,0 +1,492 @@ + +/*- + * ============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.SwaggerInfo; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Info</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl#getTermsOfService <em>Terms Of Service</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl#getContact <em>Contact</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerInfoImpl#getLicense <em>License</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerInfoImpl extends MinimalEObjectImpl.Container implements SwaggerInfo { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected static final String TITLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected String title = TITLE_EDEFAULT; + + /** + * The default value of the '{@link #getTermsOfService() <em>Terms Of Service</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTermsOfService() + * @generated + * @ordered + */ + protected static final String TERMS_OF_SERVICE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTermsOfService() <em>Terms Of Service</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTermsOfService() + * @generated + * @ordered + */ + protected String termsOfService = TERMS_OF_SERVICE_EDEFAULT; + + /** + * The cached value of the '{@link #getContact() <em>Contact</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContact() + * @generated + * @ordered + */ + protected SwaggerContact contact; + + /** + * The cached value of the '{@link #getLicense() <em>License</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLicense() + * @generated + * @ordered + */ + protected SwaggerLicense license; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerInfoImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_INFO; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVersion() { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__VERSION, oldVersion, version)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTitle() { + return title; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTitle(String newTitle) { + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__TITLE, oldTitle, title)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTermsOfService() { + return termsOfService; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTermsOfService(String newTermsOfService) { + String oldTermsOfService = termsOfService; + termsOfService = newTermsOfService; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__TERMS_OF_SERVICE, oldTermsOfService, termsOfService)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerContact getContact() { + return contact; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetContact(SwaggerContact newContact, NotificationChain msgs) { + SwaggerContact oldContact = contact; + contact = newContact; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__CONTACT, oldContact, newContact); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setContact(SwaggerContact newContact) { + if (newContact != contact) { + NotificationChain msgs = null; + if (contact != null) + msgs = ((InternalEObject)contact).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_INFO__CONTACT, null, msgs); + if (newContact != null) + msgs = ((InternalEObject)newContact).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_INFO__CONTACT, null, msgs); + msgs = basicSetContact(newContact, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__CONTACT, newContact, newContact)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerLicense getLicense() { + return license; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetLicense(SwaggerLicense newLicense, NotificationChain msgs) { + SwaggerLicense oldLicense = license; + license = newLicense; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__LICENSE, oldLicense, newLicense); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLicense(SwaggerLicense newLicense) { + if (newLicense != license) { + NotificationChain msgs = null; + if (license != null) + msgs = ((InternalEObject)license).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_INFO__LICENSE, null, msgs); + if (newLicense != null) + msgs = ((InternalEObject)newLicense).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_INFO__LICENSE, null, msgs); + msgs = basicSetLicense(newLicense, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_INFO__LICENSE, newLicense, newLicense)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_INFO__CONTACT: + return basicSetContact(null, msgs); + case SwaggerPackage.SWAGGER_INFO__LICENSE: + return basicSetLicense(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_INFO__DESCRIPTION: + return getDescription(); + case SwaggerPackage.SWAGGER_INFO__VERSION: + return getVersion(); + case SwaggerPackage.SWAGGER_INFO__TITLE: + return getTitle(); + case SwaggerPackage.SWAGGER_INFO__TERMS_OF_SERVICE: + return getTermsOfService(); + case SwaggerPackage.SWAGGER_INFO__CONTACT: + return getContact(); + case SwaggerPackage.SWAGGER_INFO__LICENSE: + return getLicense(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_INFO__DESCRIPTION: + setDescription((String)newValue); + return; + case SwaggerPackage.SWAGGER_INFO__VERSION: + setVersion((String)newValue); + return; + case SwaggerPackage.SWAGGER_INFO__TITLE: + setTitle((String)newValue); + return; + case SwaggerPackage.SWAGGER_INFO__TERMS_OF_SERVICE: + setTermsOfService((String)newValue); + return; + case SwaggerPackage.SWAGGER_INFO__CONTACT: + setContact((SwaggerContact)newValue); + return; + case SwaggerPackage.SWAGGER_INFO__LICENSE: + setLicense((SwaggerLicense)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_INFO__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_INFO__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_INFO__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_INFO__TERMS_OF_SERVICE: + setTermsOfService(TERMS_OF_SERVICE_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_INFO__CONTACT: + setContact((SwaggerContact)null); + return; + case SwaggerPackage.SWAGGER_INFO__LICENSE: + setLicense((SwaggerLicense)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_INFO__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case SwaggerPackage.SWAGGER_INFO__VERSION: + return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); + case SwaggerPackage.SWAGGER_INFO__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case SwaggerPackage.SWAGGER_INFO__TERMS_OF_SERVICE: + return TERMS_OF_SERVICE_EDEFAULT == null ? termsOfService != null : !TERMS_OF_SERVICE_EDEFAULT.equals(termsOfService); + case SwaggerPackage.SWAGGER_INFO__CONTACT: + return contact != null; + case SwaggerPackage.SWAGGER_INFO__LICENSE: + return license != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", version: "); + result.append(version); + result.append(", title: "); + result.append(title); + result.append(", termsOfService: "); + result.append(termsOfService); + result.append(')'); + return result.toString(); + } + +} //SwaggerInfoImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerLicenseImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerLicenseImpl.java new file mode 100644 index 0000000..d67be65 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerLicenseImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.swagger.impl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>License</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerLicenseImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerLicenseImpl#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerLicenseImpl extends MinimalEObjectImpl.Container implements SwaggerLicense { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected static final String URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUrl() + * @generated + * @ordered + */ + protected String url = URL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerLicenseImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_LICENSE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_LICENSE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUrl() { + return url; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUrl(String newUrl) { + String oldUrl = url; + url = newUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_LICENSE__URL, oldUrl, url)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_LICENSE__NAME: + return getName(); + case SwaggerPackage.SWAGGER_LICENSE__URL: + return getUrl(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_LICENSE__NAME: + setName((String)newValue); + return; + case SwaggerPackage.SWAGGER_LICENSE__URL: + setUrl((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_LICENSE__NAME: + setName(NAME_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_LICENSE__URL: + setUrl(URL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_LICENSE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case SwaggerPackage.SWAGGER_LICENSE__URL: + return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", url: "); + result.append(url); + result.append(')'); + return result.toString(); + } + +} //SwaggerLicenseImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerModelImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerModelImpl.java new file mode 100644 index 0000000..c8be5c5 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerModelImpl.java @@ -0,0 +1,633 @@ + +/*- + * ============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.SwaggerExternalDocumentation; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Model</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getSwagger <em>Swagger</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getInfo <em>Info</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getHost <em>Host</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getBasePath <em>Base Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getTags <em>Tags</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getSchemes <em>Schemes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getPaths <em>Paths</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getDefinitions <em>Definitions</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getExternalDocs <em>External Docs</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerModelImpl#getSecurityDefinitions <em>Security Definitions</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerModelImpl extends MinimalEObjectImpl.Container implements SwaggerModel { + /** + * The default value of the '{@link #getSwagger() <em>Swagger</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwagger() + * @generated + * @ordered + */ + protected static final String SWAGGER_EDEFAULT = "2.0"; + + /** + * The cached value of the '{@link #getSwagger() <em>Swagger</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwagger() + * @generated + * @ordered + */ + protected String swagger = SWAGGER_EDEFAULT; + + /** + * The cached value of the '{@link #getInfo() <em>Info</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInfo() + * @generated + * @ordered + */ + protected SwaggerInfo info; + + /** + * The default value of the '{@link #getHost() <em>Host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHost() + * @generated + * @ordered + */ + protected static final String HOST_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHost() <em>Host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHost() + * @generated + * @ordered + */ + protected String host = HOST_EDEFAULT; + + /** + * The default value of the '{@link #getBasePath() <em>Base Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBasePath() + * @generated + * @ordered + */ + protected static final String BASE_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBasePath() <em>Base Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBasePath() + * @generated + * @ordered + */ + protected String basePath = BASE_PATH_EDEFAULT; + + /** + * The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTags() + * @generated + * @ordered + */ + protected EList<SwaggerTag> tags; + + /** + * The cached value of the '{@link #getSchemes() <em>Schemes</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchemes() + * @generated + * @ordered + */ + protected EList<String> schemes; + + /** + * The cached value of the '{@link #getPaths() <em>Paths</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPaths() + * @generated + * @ordered + */ + protected EList<SwaggerPath> paths; + + /** + * The cached value of the '{@link #getDefinitions() <em>Definitions</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDefinitions() + * @generated + * @ordered + */ + protected EList<SwaggerNamedObjectType> definitions; + + /** + * The cached value of the '{@link #getExternalDocs() <em>External Docs</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExternalDocs() + * @generated + * @ordered + */ + protected SwaggerExternalDocumentation externalDocs; + + /** + * The cached value of the '{@link #getSecurityDefinitions() <em>Security Definitions</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurityDefinitions() + * @generated + * @ordered + */ + protected EList<SwaggerSecurityDefinition> securityDefinitions; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerModelImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_MODEL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSwagger() { + return swagger; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSwagger(String newSwagger) { + String oldSwagger = swagger; + swagger = newSwagger; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__SWAGGER, oldSwagger, swagger)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerInfo getInfo() { + return info; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetInfo(SwaggerInfo newInfo, NotificationChain msgs) { + SwaggerInfo oldInfo = info; + info = newInfo; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__INFO, oldInfo, newInfo); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInfo(SwaggerInfo newInfo) { + if (newInfo != info) { + NotificationChain msgs = null; + if (info != null) + msgs = ((InternalEObject)info).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_MODEL__INFO, null, msgs); + if (newInfo != null) + msgs = ((InternalEObject)newInfo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_MODEL__INFO, null, msgs); + msgs = basicSetInfo(newInfo, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__INFO, newInfo, newInfo)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getHost() { + return host; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHost(String newHost) { + String oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__HOST, oldHost, host)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBasePath() { + return basePath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBasePath(String newBasePath) { + String oldBasePath = basePath; + basePath = newBasePath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__BASE_PATH, oldBasePath, basePath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerTag> getTags() { + if (tags == null) { + tags = new EObjectContainmentEList<SwaggerTag>(SwaggerTag.class, this, SwaggerPackage.SWAGGER_MODEL__TAGS); + } + return tags; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getSchemes() { + if (schemes == null) { + schemes = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_MODEL__SCHEMES); + } + return schemes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerPath> getPaths() { + if (paths == null) { + paths = new EObjectContainmentEList<SwaggerPath>(SwaggerPath.class, this, SwaggerPackage.SWAGGER_MODEL__PATHS); + } + return paths; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerNamedObjectType> getDefinitions() { + if (definitions == null) { + definitions = new EObjectContainmentEList<SwaggerNamedObjectType>(SwaggerNamedObjectType.class, this, SwaggerPackage.SWAGGER_MODEL__DEFINITIONS); + } + return definitions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerExternalDocumentation getExternalDocs() { + return externalDocs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetExternalDocs(SwaggerExternalDocumentation newExternalDocs, NotificationChain msgs) { + SwaggerExternalDocumentation oldExternalDocs = externalDocs; + externalDocs = newExternalDocs; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS, oldExternalDocs, newExternalDocs); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExternalDocs(SwaggerExternalDocumentation newExternalDocs) { + if (newExternalDocs != externalDocs) { + NotificationChain msgs = null; + if (externalDocs != null) + msgs = ((InternalEObject)externalDocs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS, null, msgs); + if (newExternalDocs != null) + msgs = ((InternalEObject)newExternalDocs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS, null, msgs); + msgs = basicSetExternalDocs(newExternalDocs, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS, newExternalDocs, newExternalDocs)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerSecurityDefinition> getSecurityDefinitions() { + if (securityDefinitions == null) { + securityDefinitions = new EObjectContainmentEList<SwaggerSecurityDefinition>(SwaggerSecurityDefinition.class, this, SwaggerPackage.SWAGGER_MODEL__SECURITY_DEFINITIONS); + } + return securityDefinitions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_MODEL__INFO: + return basicSetInfo(null, msgs); + case SwaggerPackage.SWAGGER_MODEL__TAGS: + return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs); + case SwaggerPackage.SWAGGER_MODEL__PATHS: + return ((InternalEList<?>)getPaths()).basicRemove(otherEnd, msgs); + case SwaggerPackage.SWAGGER_MODEL__DEFINITIONS: + return ((InternalEList<?>)getDefinitions()).basicRemove(otherEnd, msgs); + case SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS: + return basicSetExternalDocs(null, msgs); + case SwaggerPackage.SWAGGER_MODEL__SECURITY_DEFINITIONS: + return ((InternalEList<?>)getSecurityDefinitions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_MODEL__SWAGGER: + return getSwagger(); + case SwaggerPackage.SWAGGER_MODEL__INFO: + return getInfo(); + case SwaggerPackage.SWAGGER_MODEL__HOST: + return getHost(); + case SwaggerPackage.SWAGGER_MODEL__BASE_PATH: + return getBasePath(); + case SwaggerPackage.SWAGGER_MODEL__TAGS: + return getTags(); + case SwaggerPackage.SWAGGER_MODEL__SCHEMES: + return getSchemes(); + case SwaggerPackage.SWAGGER_MODEL__PATHS: + return getPaths(); + case SwaggerPackage.SWAGGER_MODEL__DEFINITIONS: + return getDefinitions(); + case SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS: + return getExternalDocs(); + case SwaggerPackage.SWAGGER_MODEL__SECURITY_DEFINITIONS: + return getSecurityDefinitions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_MODEL__SWAGGER: + setSwagger((String)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__INFO: + setInfo((SwaggerInfo)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__HOST: + setHost((String)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__BASE_PATH: + setBasePath((String)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__TAGS: + getTags().clear(); + getTags().addAll((Collection<? extends SwaggerTag>)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__SCHEMES: + getSchemes().clear(); + getSchemes().addAll((Collection<? extends String>)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__PATHS: + getPaths().clear(); + getPaths().addAll((Collection<? extends SwaggerPath>)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__DEFINITIONS: + getDefinitions().clear(); + getDefinitions().addAll((Collection<? extends SwaggerNamedObjectType>)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS: + setExternalDocs((SwaggerExternalDocumentation)newValue); + return; + case SwaggerPackage.SWAGGER_MODEL__SECURITY_DEFINITIONS: + getSecurityDefinitions().clear(); + getSecurityDefinitions().addAll((Collection<? extends SwaggerSecurityDefinition>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_MODEL__SWAGGER: + setSwagger(SWAGGER_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_MODEL__INFO: + setInfo((SwaggerInfo)null); + return; + case SwaggerPackage.SWAGGER_MODEL__HOST: + setHost(HOST_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_MODEL__BASE_PATH: + setBasePath(BASE_PATH_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_MODEL__TAGS: + getTags().clear(); + return; + case SwaggerPackage.SWAGGER_MODEL__SCHEMES: + getSchemes().clear(); + return; + case SwaggerPackage.SWAGGER_MODEL__PATHS: + getPaths().clear(); + return; + case SwaggerPackage.SWAGGER_MODEL__DEFINITIONS: + getDefinitions().clear(); + return; + case SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS: + setExternalDocs((SwaggerExternalDocumentation)null); + return; + case SwaggerPackage.SWAGGER_MODEL__SECURITY_DEFINITIONS: + getSecurityDefinitions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_MODEL__SWAGGER: + return SWAGGER_EDEFAULT == null ? swagger != null : !SWAGGER_EDEFAULT.equals(swagger); + case SwaggerPackage.SWAGGER_MODEL__INFO: + return info != null; + case SwaggerPackage.SWAGGER_MODEL__HOST: + return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host); + case SwaggerPackage.SWAGGER_MODEL__BASE_PATH: + return BASE_PATH_EDEFAULT == null ? basePath != null : !BASE_PATH_EDEFAULT.equals(basePath); + case SwaggerPackage.SWAGGER_MODEL__TAGS: + return tags != null && !tags.isEmpty(); + case SwaggerPackage.SWAGGER_MODEL__SCHEMES: + return schemes != null && !schemes.isEmpty(); + case SwaggerPackage.SWAGGER_MODEL__PATHS: + return paths != null && !paths.isEmpty(); + case SwaggerPackage.SWAGGER_MODEL__DEFINITIONS: + return definitions != null && !definitions.isEmpty(); + case SwaggerPackage.SWAGGER_MODEL__EXTERNAL_DOCS: + return externalDocs != null; + case SwaggerPackage.SWAGGER_MODEL__SECURITY_DEFINITIONS: + return securityDefinitions != null && !securityDefinitions.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (swagger: "); + result.append(swagger); + result.append(", host: "); + result.append(host); + result.append(", basePath: "); + result.append(basePath); + result.append(", schemes: "); + result.append(schemes); + result.append(')'); + return result.toString(); + } + +} //SwaggerModelImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerNamedObjectTypeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerNamedObjectTypeImpl.java new file mode 100644 index 0000000..d8d4e7c --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerNamedObjectTypeImpl.java @@ -0,0 +1,461 @@ + +/*- + * ============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.SwaggerNamedObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Named Object Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl#isMany <em>Many</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl#getDefault <em>Default</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerNamedObjectTypeImpl#getXml <em>Xml</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerNamedObjectTypeImpl extends NamedEntityImpl implements SwaggerNamedObjectType { + /** + * The default value of the '{@link #isMany() <em>Many</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMany() + * @generated + * @ordered + */ + protected static final boolean MANY_EDEFAULT = false; + + /** + * The cached value of the '{@link #isMany() <em>Many</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMany() + * @generated + * @ordered + */ + protected boolean many = MANY_EDEFAULT; + + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getDefault() <em>Default</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDefault() + * @generated + * @ordered + */ + protected static final String DEFAULT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDefault() <em>Default</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDefault() + * @generated + * @ordered + */ + protected String default_ = DEFAULT_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getXml() <em>Xml</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXml() + * @generated + * @ordered + */ + protected SwaggerXml xml; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerNamedObjectTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_NAMED_OBJECT_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isMany() { + return many; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMany(boolean newMany) { + boolean oldMany = many; + many = newMany; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY, oldMany, many)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDefault() { + return default_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDefault(String newDefault) { + String oldDefault = default_; + default_ = newDefault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DEFAULT, oldDefault, default_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerXml getXml() { + return xml; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetXml(SwaggerXml newXml, NotificationChain msgs) { + SwaggerXml oldXml = xml; + xml = newXml; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML, oldXml, newXml); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setXml(SwaggerXml newXml) { + if (newXml != xml) { + NotificationChain msgs = null; + if (xml != null) + msgs = ((InternalEObject)xml).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML, null, msgs); + if (newXml != null) + msgs = ((InternalEObject)newXml).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML, null, msgs); + msgs = basicSetXml(newXml, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML, newXml, newXml)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML: + return basicSetXml(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY: + return isMany(); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__TYPE: + return getType(); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DEFAULT: + return getDefault(); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION: + return getDescription(); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML: + return getXml(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY: + setMany((Boolean)newValue); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__TYPE: + setType((String)newValue); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DEFAULT: + setDefault((String)newValue); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION: + setDescription((String)newValue); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML: + setXml((SwaggerXml)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY: + setMany(MANY_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__TYPE: + setType(TYPE_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DEFAULT: + setDefault(DEFAULT_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML: + setXml((SwaggerXml)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY: + return many != MANY_EDEFAULT; + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DEFAULT: + return DEFAULT_EDEFAULT == null ? default_ != null : !DEFAULT_EDEFAULT.equals(default_); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__XML: + return xml != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == SwaggerObjectType.class) { + switch (derivedFeatureID) { + case SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY: return SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == SwaggerObjectType.class) { + switch (baseFeatureID) { + case SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY: return SwaggerPackage.SWAGGER_NAMED_OBJECT_TYPE__MANY; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (many: "); + result.append(many); + result.append(", type: "); + result.append(type); + result.append(", default: "); + result.append(default_); + result.append(", description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //SwaggerNamedObjectTypeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerObjectClassDefinitionImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerObjectClassDefinitionImpl.java new file mode 100644 index 0000000..6af474e --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerObjectClassDefinitionImpl.java @@ -0,0 +1,321 @@ + +/*- + * ============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.SwaggerNamedObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Object Class Definition</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl#getRequired <em>Required</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl#getAllOf <em>All Of</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl#getProperties <em>Properties</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectClassDefinitionImpl#getAdditionalProperties <em>Additional Properties</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerObjectClassDefinitionImpl extends SwaggerNamedObjectTypeImpl implements SwaggerObjectClassDefinition { + /** + * The cached value of the '{@link #getRequired() <em>Required</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRequired() + * @generated + * @ordered + */ + protected EList<String> required; + + /** + * The cached value of the '{@link #getAllOf() <em>All Of</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllOf() + * @generated + * @ordered + */ + protected EList<SwaggerObjectType> allOf; + + /** + * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProperties() + * @generated + * @ordered + */ + protected EList<SwaggerNamedObjectType> properties; + + /** + * The cached value of the '{@link #getAdditionalProperties() <em>Additional Properties</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdditionalProperties() + * @generated + * @ordered + */ + protected SwaggerObjectType additionalProperties; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerObjectClassDefinitionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_OBJECT_CLASS_DEFINITION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getRequired() { + if (required == null) { + required = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED); + } + return required; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerObjectType> getAllOf() { + if (allOf == null) { + allOf = new EObjectResolvingEList<SwaggerObjectType>(SwaggerObjectType.class, this, SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF); + } + return allOf; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerNamedObjectType> getProperties() { + if (properties == null) { + properties = new EObjectContainmentEList<SwaggerNamedObjectType>(SwaggerNamedObjectType.class, this, SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES); + } + return properties; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectType getAdditionalProperties() { + return additionalProperties; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAdditionalProperties(SwaggerObjectType newAdditionalProperties, NotificationChain msgs) { + SwaggerObjectType oldAdditionalProperties = additionalProperties; + additionalProperties = newAdditionalProperties; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES, oldAdditionalProperties, newAdditionalProperties); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAdditionalProperties(SwaggerObjectType newAdditionalProperties) { + if (newAdditionalProperties != additionalProperties) { + NotificationChain msgs = null; + if (additionalProperties != null) + msgs = ((InternalEObject)additionalProperties).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES, null, msgs); + if (newAdditionalProperties != null) + msgs = ((InternalEObject)newAdditionalProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES, null, msgs); + msgs = basicSetAdditionalProperties(newAdditionalProperties, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES, newAdditionalProperties, newAdditionalProperties)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES: + return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES: + return basicSetAdditionalProperties(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED: + return getRequired(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF: + return getAllOf(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES: + return getProperties(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES: + return getAdditionalProperties(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED: + getRequired().clear(); + getRequired().addAll((Collection<? extends String>)newValue); + return; + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF: + getAllOf().clear(); + getAllOf().addAll((Collection<? extends SwaggerObjectType>)newValue); + return; + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES: + getProperties().clear(); + getProperties().addAll((Collection<? extends SwaggerNamedObjectType>)newValue); + return; + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES: + setAdditionalProperties((SwaggerObjectType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED: + getRequired().clear(); + return; + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF: + getAllOf().clear(); + return; + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES: + getProperties().clear(); + return; + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES: + setAdditionalProperties((SwaggerObjectType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__REQUIRED: + return required != null && !required.isEmpty(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ALL_OF: + return allOf != null && !allOf.isEmpty(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__PROPERTIES: + return properties != null && !properties.isEmpty(); + case SwaggerPackage.SWAGGER_OBJECT_CLASS_DEFINITION__ADDITIONAL_PROPERTIES: + return additionalProperties != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (required: "); + result.append(required); + result.append(')'); + return result.toString(); + } + +} //SwaggerObjectClassDefinitionImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerObjectTypeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerObjectTypeImpl.java new file mode 100644 index 0000000..5e4459b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerObjectTypeImpl.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.swagger.impl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Object Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerObjectTypeImpl#isMany <em>Many</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerObjectTypeImpl extends MinimalEObjectImpl.Container implements SwaggerObjectType { + /** + * The default value of the '{@link #isMany() <em>Many</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMany() + * @generated + * @ordered + */ + protected static final boolean MANY_EDEFAULT = false; + /** + * The cached value of the '{@link #isMany() <em>Many</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMany() + * @generated + * @ordered + */ + protected boolean many = MANY_EDEFAULT; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerObjectTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_OBJECT_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isMany() { + return many; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMany(boolean newMany) { + boolean oldMany = many; + many = newMany; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY, oldMany, many)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY: + return isMany(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY: + setMany((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY: + setMany(MANY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OBJECT_TYPE__MANY: + return many != MANY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (many: "); + result.append(many); + result.append(')'); + return result.toString(); + } + +} //SwaggerObjectTypeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerOperationImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerOperationImpl.java new file mode 100644 index 0000000..acdd2c4 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerOperationImpl.java @@ -0,0 +1,582 @@ + +/*- + * ============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.SwaggerOperation; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameter; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Operation</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getTags <em>Tags</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getSummary <em>Summary</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getOperationId <em>Operation Id</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getConsumes <em>Consumes</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getProduces <em>Produces</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getParameters <em>Parameters</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getResponses <em>Responses</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#getSecurity <em>Security</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerOperationImpl#isDeprecated <em>Deprecated</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerOperationImpl extends NamedEntityImpl implements SwaggerOperation { + /** + * The cached value of the '{@link #getTags() <em>Tags</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTags() + * @generated + * @ordered + */ + protected EList<String> tags; + + /** + * The default value of the '{@link #getSummary() <em>Summary</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSummary() + * @generated + * @ordered + */ + protected static final String SUMMARY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSummary() <em>Summary</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSummary() + * @generated + * @ordered + */ + protected String summary = SUMMARY_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The default value of the '{@link #getOperationId() <em>Operation Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOperationId() + * @generated + * @ordered + */ + protected static final String OPERATION_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOperationId() <em>Operation Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOperationId() + * @generated + * @ordered + */ + protected String operationId = OPERATION_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getConsumes() <em>Consumes</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConsumes() + * @generated + * @ordered + */ + protected EList<String> consumes; + + /** + * The cached value of the '{@link #getProduces() <em>Produces</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProduces() + * @generated + * @ordered + */ + protected EList<String> produces; + + /** + * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParameters() + * @generated + * @ordered + */ + protected EList<SwaggerParameter> parameters; + + /** + * The cached value of the '{@link #getResponses() <em>Responses</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResponses() + * @generated + * @ordered + */ + protected EList<SwaggerResponse> responses; + + /** + * The cached value of the '{@link #getSecurity() <em>Security</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurity() + * @generated + * @ordered + */ + protected EList<SwaggerSecurityObject> security; + + /** + * The default value of the '{@link #isDeprecated() <em>Deprecated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isDeprecated() + * @generated + * @ordered + */ + protected static final boolean DEPRECATED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isDeprecated() <em>Deprecated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isDeprecated() + * @generated + * @ordered + */ + protected boolean deprecated = DEPRECATED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerOperationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_OPERATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getTags() { + if (tags == null) { + tags = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_OPERATION__TAGS); + } + return tags; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSummary() { + return summary; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSummary(String newSummary) { + String oldSummary = summary; + summary = newSummary; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OPERATION__SUMMARY, oldSummary, summary)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OPERATION__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOperationId() { + return operationId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOperationId(String newOperationId) { + String oldOperationId = operationId; + operationId = newOperationId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OPERATION__OPERATION_ID, oldOperationId, operationId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getConsumes() { + if (consumes == null) { + consumes = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_OPERATION__CONSUMES); + } + return consumes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getProduces() { + if (produces == null) { + produces = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_OPERATION__PRODUCES); + } + return produces; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerParameter> getParameters() { + if (parameters == null) { + parameters = new EObjectContainmentEList<SwaggerParameter>(SwaggerParameter.class, this, SwaggerPackage.SWAGGER_OPERATION__PARAMETERS); + } + return parameters; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerResponse> getResponses() { + if (responses == null) { + responses = new EObjectContainmentEList<SwaggerResponse>(SwaggerResponse.class, this, SwaggerPackage.SWAGGER_OPERATION__RESPONSES); + } + return responses; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerSecurityObject> getSecurity() { + if (security == null) { + security = new EObjectContainmentEList<SwaggerSecurityObject>(SwaggerSecurityObject.class, this, SwaggerPackage.SWAGGER_OPERATION__SECURITY); + } + return security; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isDeprecated() { + return deprecated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDeprecated(boolean newDeprecated) { + boolean oldDeprecated = deprecated; + deprecated = newDeprecated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_OPERATION__DEPRECATED, oldDeprecated, deprecated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OPERATION__PARAMETERS: + return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); + case SwaggerPackage.SWAGGER_OPERATION__RESPONSES: + return ((InternalEList<?>)getResponses()).basicRemove(otherEnd, msgs); + case SwaggerPackage.SWAGGER_OPERATION__SECURITY: + return ((InternalEList<?>)getSecurity()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OPERATION__TAGS: + return getTags(); + case SwaggerPackage.SWAGGER_OPERATION__SUMMARY: + return getSummary(); + case SwaggerPackage.SWAGGER_OPERATION__DESCRIPTION: + return getDescription(); + case SwaggerPackage.SWAGGER_OPERATION__OPERATION_ID: + return getOperationId(); + case SwaggerPackage.SWAGGER_OPERATION__CONSUMES: + return getConsumes(); + case SwaggerPackage.SWAGGER_OPERATION__PRODUCES: + return getProduces(); + case SwaggerPackage.SWAGGER_OPERATION__PARAMETERS: + return getParameters(); + case SwaggerPackage.SWAGGER_OPERATION__RESPONSES: + return getResponses(); + case SwaggerPackage.SWAGGER_OPERATION__SECURITY: + return getSecurity(); + case SwaggerPackage.SWAGGER_OPERATION__DEPRECATED: + return isDeprecated(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OPERATION__TAGS: + getTags().clear(); + getTags().addAll((Collection<? extends String>)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__SUMMARY: + setSummary((String)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__DESCRIPTION: + setDescription((String)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__OPERATION_ID: + setOperationId((String)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__CONSUMES: + getConsumes().clear(); + getConsumes().addAll((Collection<? extends String>)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__PRODUCES: + getProduces().clear(); + getProduces().addAll((Collection<? extends String>)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__PARAMETERS: + getParameters().clear(); + getParameters().addAll((Collection<? extends SwaggerParameter>)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__RESPONSES: + getResponses().clear(); + getResponses().addAll((Collection<? extends SwaggerResponse>)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__SECURITY: + getSecurity().clear(); + getSecurity().addAll((Collection<? extends SwaggerSecurityObject>)newValue); + return; + case SwaggerPackage.SWAGGER_OPERATION__DEPRECATED: + setDeprecated((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OPERATION__TAGS: + getTags().clear(); + return; + case SwaggerPackage.SWAGGER_OPERATION__SUMMARY: + setSummary(SUMMARY_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_OPERATION__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_OPERATION__OPERATION_ID: + setOperationId(OPERATION_ID_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_OPERATION__CONSUMES: + getConsumes().clear(); + return; + case SwaggerPackage.SWAGGER_OPERATION__PRODUCES: + getProduces().clear(); + return; + case SwaggerPackage.SWAGGER_OPERATION__PARAMETERS: + getParameters().clear(); + return; + case SwaggerPackage.SWAGGER_OPERATION__RESPONSES: + getResponses().clear(); + return; + case SwaggerPackage.SWAGGER_OPERATION__SECURITY: + getSecurity().clear(); + return; + case SwaggerPackage.SWAGGER_OPERATION__DEPRECATED: + setDeprecated(DEPRECATED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_OPERATION__TAGS: + return tags != null && !tags.isEmpty(); + case SwaggerPackage.SWAGGER_OPERATION__SUMMARY: + return SUMMARY_EDEFAULT == null ? summary != null : !SUMMARY_EDEFAULT.equals(summary); + case SwaggerPackage.SWAGGER_OPERATION__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case SwaggerPackage.SWAGGER_OPERATION__OPERATION_ID: + return OPERATION_ID_EDEFAULT == null ? operationId != null : !OPERATION_ID_EDEFAULT.equals(operationId); + case SwaggerPackage.SWAGGER_OPERATION__CONSUMES: + return consumes != null && !consumes.isEmpty(); + case SwaggerPackage.SWAGGER_OPERATION__PRODUCES: + return produces != null && !produces.isEmpty(); + case SwaggerPackage.SWAGGER_OPERATION__PARAMETERS: + return parameters != null && !parameters.isEmpty(); + case SwaggerPackage.SWAGGER_OPERATION__RESPONSES: + return responses != null && !responses.isEmpty(); + case SwaggerPackage.SWAGGER_OPERATION__SECURITY: + return security != null && !security.isEmpty(); + case SwaggerPackage.SWAGGER_OPERATION__DEPRECATED: + return deprecated != DEPRECATED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (tags: "); + result.append(tags); + result.append(", summary: "); + result.append(summary); + result.append(", description: "); + result.append(description); + result.append(", operationId: "); + result.append(operationId); + result.append(", consumes: "); + result.append(consumes); + result.append(", produces: "); + result.append(produces); + result.append(", deprecated: "); + result.append(deprecated); + result.append(')'); + return result.toString(); + } + +} //SwaggerOperationImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerPackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerPackageImpl.java new file mode 100644 index 0000000..c00577a --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerPackageImpl.java @@ -0,0 +1,1469 @@ + +/*- + * ============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.CorePackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerCollectionFormat; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerContact; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerEnumObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerExternalDocumentation; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerFactory; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerInfo; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerLicense; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerModel; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerNamedObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectClassDefinition; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation; +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.openecomp.ncomp.sirius.manager.swagger.SwaggerPath; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerResponse; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class SwaggerPackageImpl extends EPackageImpl implements SwaggerPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerModelEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerInfoEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerContactEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerLicenseEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerTagEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerExternalDocumentationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerPathEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerOperationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerParameterEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerResponseEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerSecurityObjectEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerSecurityEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerSecurityDefinitionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerSecurityDefinitionScopeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerObjectTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerReferenceObjectTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerNamedObjectTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerObjectClassDefinitionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerSimpleObjectTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerXmlEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass swaggerEnumObjectTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum swaggerParameterTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum swaggerCollectionFormatEEnum = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerModel() { + return swaggerModelEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerModel_Swagger() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerModel_Info() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerModel_Host() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerModel_BasePath() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerModel_Tags() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerModel_Schemes() { + return (EAttribute)swaggerModelEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerModel_Paths() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerModel_Definitions() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerModel_ExternalDocs() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerModel_SecurityDefinitions() { + return (EReference)swaggerModelEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerInfo() { + return swaggerInfoEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerInfo_Description() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerInfo_Version() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerInfo_Title() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerInfo_TermsOfService() { + return (EAttribute)swaggerInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerInfo_Contact() { + return (EReference)swaggerInfoEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerInfo_License() { + return (EReference)swaggerInfoEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerContact() { + return swaggerContactEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerContact_Email() { + return (EAttribute)swaggerContactEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerLicense() { + return swaggerLicenseEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerLicense_Name() { + return (EAttribute)swaggerLicenseEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerLicense_Url() { + return (EAttribute)swaggerLicenseEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerTag() { + return swaggerTagEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerTag_Name() { + return (EAttribute)swaggerTagEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerTag_Description() { + return (EAttribute)swaggerTagEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerTag_ExternalDocs() { + return (EReference)swaggerTagEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerExternalDocumentation() { + return swaggerExternalDocumentationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerExternalDocumentation_Description() { + return (EAttribute)swaggerExternalDocumentationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerExternalDocumentation_Url() { + return (EAttribute)swaggerExternalDocumentationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerPath() { + return swaggerPathEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerPath_Methods() { + return (EReference)swaggerPathEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerOperation() { + return swaggerOperationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_Tags() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_Summary() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_Description() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_OperationId() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_Consumes() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_Produces() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerOperation_Parameters() { + return (EReference)swaggerOperationEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerOperation_Responses() { + return (EReference)swaggerOperationEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerOperation_Security() { + return (EReference)swaggerOperationEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerOperation_Deprecated() { + return (EAttribute)swaggerOperationEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerParameter() { + return swaggerParameterEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerParameter_In() { + return (EAttribute)swaggerParameterEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerParameter_Type() { + return (EReference)swaggerParameterEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerResponse() { + return swaggerResponseEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerResponse_Description() { + return (EAttribute)swaggerResponseEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerResponse_Schema() { + return (EReference)swaggerResponseEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerResponse_Headers() { + return (EReference)swaggerResponseEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerSecurityObject() { + return swaggerSecurityObjectEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerSecurityObject_List() { + return (EReference)swaggerSecurityObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerSecurity() { + return swaggerSecurityEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSecurity_Roles() { + return (EAttribute)swaggerSecurityEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerSecurityDefinition() { + return swaggerSecurityDefinitionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_Type() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_AuthorizationUrl() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_Flow() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSecurityDefinition_In() { + return (EAttribute)swaggerSecurityDefinitionEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerSecurityDefinitionScope() { + return swaggerSecurityDefinitionScopeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSecurityDefinitionScope_Description() { + return (EAttribute)swaggerSecurityDefinitionScopeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerObjectType() { + return swaggerObjectTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerObjectType_Many() { + return (EAttribute)swaggerObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerReferenceObjectType() { + return swaggerReferenceObjectTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerReferenceObjectType_Required() { + return (EAttribute)swaggerReferenceObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerReferenceObjectType_Reference() { + return (EReference)swaggerReferenceObjectTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerNamedObjectType() { + return swaggerNamedObjectTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerNamedObjectType_Type() { + return (EAttribute)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerNamedObjectType_Default() { + return (EAttribute)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerNamedObjectType_Description() { + return (EAttribute)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerNamedObjectType_Xml() { + return (EReference)swaggerNamedObjectTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerObjectClassDefinition() { + return swaggerObjectClassDefinitionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerObjectClassDefinition_Required() { + return (EAttribute)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerObjectClassDefinition_AllOf() { + return (EReference)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerObjectClassDefinition_Properties() { + return (EReference)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSwaggerObjectClassDefinition_AdditionalProperties() { + return (EReference)swaggerObjectClassDefinitionEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerSimpleObjectType() { + return swaggerSimpleObjectTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Required() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Format() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Minimum() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Maximum() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Pattern() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_Example() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerSimpleObjectType_CollectionFormat() { + return (EAttribute)swaggerSimpleObjectTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerXml() { + return swaggerXmlEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerXml_Name() { + return (EAttribute)swaggerXmlEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerXml_Wrapped() { + return (EAttribute)swaggerXmlEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSwaggerEnumObjectType() { + return swaggerEnumObjectTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSwaggerEnumObjectType_Enum() { + return (EAttribute)swaggerEnumObjectTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getSwaggerParameterType() { + return swaggerParameterTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getSwaggerCollectionFormat() { + return swaggerCollectionFormatEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerFactory getSwaggerFactory() { + return (SwaggerFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://openecomp.org/ncomp/swagger</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Parameter</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerParameterImpl#getIn <em>In</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerParameterImpl#getType <em>Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerParameterImpl extends NamedEntityImpl implements SwaggerParameter { + /** + * The default value of the '{@link #getIn() <em>In</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIn() + * @generated + * @ordered + */ + protected static final SwaggerParameterType IN_EDEFAULT = SwaggerParameterType.PATH; + + /** + * The cached value of the '{@link #getIn() <em>In</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIn() + * @generated + * @ordered + */ + protected SwaggerParameterType in = IN_EDEFAULT; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected SwaggerObjectType type; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerParameterImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_PARAMETER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerParameterType getIn() { + return in; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIn(SwaggerParameterType newIn) { + SwaggerParameterType oldIn = in; + in = newIn == null ? IN_EDEFAULT : newIn; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_PARAMETER__IN, oldIn, in)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectType getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetType(SwaggerObjectType newType, NotificationChain msgs) { + SwaggerObjectType oldType = type; + type = newType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_PARAMETER__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setType(SwaggerObjectType newType) { + if (newType != type) { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_PARAMETER__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_PARAMETER__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_PARAMETER__TYPE, newType, newType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PARAMETER__TYPE: + return basicSetType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PARAMETER__IN: + return getIn(); + case SwaggerPackage.SWAGGER_PARAMETER__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PARAMETER__IN: + setIn((SwaggerParameterType)newValue); + return; + case SwaggerPackage.SWAGGER_PARAMETER__TYPE: + setType((SwaggerObjectType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PARAMETER__IN: + setIn(IN_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_PARAMETER__TYPE: + setType((SwaggerObjectType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PARAMETER__IN: + return in != IN_EDEFAULT; + case SwaggerPackage.SWAGGER_PARAMETER__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (in: "); + result.append(in); + result.append(')'); + return result.toString(); + } + +} //SwaggerParameterImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerPathImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerPathImpl.java new file mode 100644 index 0000000..fce7016 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerPathImpl.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.swagger.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerOperation; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPath; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Path</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerPathImpl#getMethods <em>Methods</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerPathImpl extends NamedEntityImpl implements SwaggerPath { + /** + * The cached value of the '{@link #getMethods() <em>Methods</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethods() + * @generated + * @ordered + */ + protected EList<SwaggerOperation> methods; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerPathImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_PATH; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerOperation> getMethods() { + if (methods == null) { + methods = new EObjectContainmentEList<SwaggerOperation>(SwaggerOperation.class, this, SwaggerPackage.SWAGGER_PATH__METHODS); + } + return methods; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PATH__METHODS: + return ((InternalEList<?>)getMethods()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PATH__METHODS: + return getMethods(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PATH__METHODS: + getMethods().clear(); + getMethods().addAll((Collection<? extends SwaggerOperation>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PATH__METHODS: + getMethods().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_PATH__METHODS: + return methods != null && !methods.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SwaggerPathImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerReferenceObjectTypeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerReferenceObjectTypeImpl.java new file mode 100644 index 0000000..afe3621 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerReferenceObjectTypeImpl.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.impl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerObjectType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerReferenceObjectType; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Reference Object Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerReferenceObjectTypeImpl#isRequired <em>Required</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerReferenceObjectTypeImpl#getReference <em>Reference</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerReferenceObjectTypeImpl extends SwaggerNamedObjectTypeImpl implements SwaggerReferenceObjectType { + /** + * The default value of the '{@link #isRequired() <em>Required</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isRequired() + * @generated + * @ordered + */ + protected static final boolean REQUIRED_EDEFAULT = false; + /** + * The cached value of the '{@link #isRequired() <em>Required</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isRequired() + * @generated + * @ordered + */ + protected boolean required = REQUIRED_EDEFAULT; + /** + * The cached value of the '{@link #getReference() <em>Reference</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReference() + * @generated + * @ordered + */ + protected SwaggerObjectType reference; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerReferenceObjectTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_REFERENCE_OBJECT_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isRequired() { + return required; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRequired(boolean newRequired) { + boolean oldRequired = required; + required = newRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED, oldRequired, required)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectType getReference() { + if (reference != null && reference.eIsProxy()) { + InternalEObject oldReference = (InternalEObject)reference; + reference = (SwaggerObjectType)eResolveProxy(oldReference); + if (reference != oldReference) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE, oldReference, reference)); + } + } + return reference; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectType basicGetReference() { + return reference; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setReference(SwaggerObjectType newReference) { + SwaggerObjectType oldReference = reference; + reference = newReference; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE, oldReference, reference)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED: + return isRequired(); + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE: + if (resolve) return getReference(); + return basicGetReference(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED: + setRequired((Boolean)newValue); + return; + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE: + setReference((SwaggerObjectType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED: + setRequired(REQUIRED_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE: + setReference((SwaggerObjectType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REQUIRED: + return required != REQUIRED_EDEFAULT; + case SwaggerPackage.SWAGGER_REFERENCE_OBJECT_TYPE__REFERENCE: + return reference != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (required: "); + result.append(required); + result.append(')'); + return result.toString(); + } + +} //SwaggerReferenceObjectTypeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerResponseImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerResponseImpl.java new file mode 100644 index 0000000..4bf31e4 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerResponseImpl.java @@ -0,0 +1,304 @@ + +/*- + * ============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.SwaggerResponse; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Response</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl#getSchema <em>Schema</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerResponseImpl#getHeaders <em>Headers</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerResponseImpl extends NamedEntityImpl implements SwaggerResponse { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected SwaggerObjectType schema; + + /** + * The cached value of the '{@link #getHeaders() <em>Headers</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeaders() + * @generated + * @ordered + */ + protected EList<SwaggerSimpleObjectType> headers; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerResponseImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_RESPONSE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_RESPONSE__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerObjectType getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSchema(SwaggerObjectType newSchema, NotificationChain msgs) { + SwaggerObjectType oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_RESPONSE__SCHEMA, oldSchema, newSchema); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(SwaggerObjectType newSchema) { + if (newSchema != schema) { + NotificationChain msgs = null; + if (schema != null) + msgs = ((InternalEObject)schema).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_RESPONSE__SCHEMA, null, msgs); + if (newSchema != null) + msgs = ((InternalEObject)newSchema).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_RESPONSE__SCHEMA, null, msgs); + msgs = basicSetSchema(newSchema, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_RESPONSE__SCHEMA, newSchema, newSchema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerSimpleObjectType> getHeaders() { + if (headers == null) { + headers = new EObjectContainmentEList<SwaggerSimpleObjectType>(SwaggerSimpleObjectType.class, this, SwaggerPackage.SWAGGER_RESPONSE__HEADERS); + } + return headers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_RESPONSE__SCHEMA: + return basicSetSchema(null, msgs); + case SwaggerPackage.SWAGGER_RESPONSE__HEADERS: + return ((InternalEList<?>)getHeaders()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_RESPONSE__DESCRIPTION: + return getDescription(); + case SwaggerPackage.SWAGGER_RESPONSE__SCHEMA: + return getSchema(); + case SwaggerPackage.SWAGGER_RESPONSE__HEADERS: + return getHeaders(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_RESPONSE__DESCRIPTION: + setDescription((String)newValue); + return; + case SwaggerPackage.SWAGGER_RESPONSE__SCHEMA: + setSchema((SwaggerObjectType)newValue); + return; + case SwaggerPackage.SWAGGER_RESPONSE__HEADERS: + getHeaders().clear(); + getHeaders().addAll((Collection<? extends SwaggerSimpleObjectType>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_RESPONSE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_RESPONSE__SCHEMA: + setSchema((SwaggerObjectType)null); + return; + case SwaggerPackage.SWAGGER_RESPONSE__HEADERS: + getHeaders().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_RESPONSE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case SwaggerPackage.SWAGGER_RESPONSE__SCHEMA: + return schema != null; + case SwaggerPackage.SWAGGER_RESPONSE__HEADERS: + return headers != null && !headers.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //SwaggerResponseImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionImpl.java new file mode 100644 index 0000000..221d33f --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionImpl.java @@ -0,0 +1,338 @@ + +/*- + * ============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.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerParameterType; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinition; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security Definition</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl#getAuthorizationUrl <em>Authorization Url</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl#getFlow <em>Flow</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionImpl#getIn <em>In</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerSecurityDefinitionImpl extends NamedEntityImpl implements SwaggerSecurityDefinition { + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The default value of the '{@link #getAuthorizationUrl() <em>Authorization Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAuthorizationUrl() + * @generated + * @ordered + */ + protected static final String AUTHORIZATION_URL_EDEFAULT = null; + /** + * The cached value of the '{@link #getAuthorizationUrl() <em>Authorization Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAuthorizationUrl() + * @generated + * @ordered + */ + protected String authorizationUrl = AUTHORIZATION_URL_EDEFAULT; + /** + * The default value of the '{@link #getFlow() <em>Flow</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFlow() + * @generated + * @ordered + */ + protected static final String FLOW_EDEFAULT = null; + /** + * The cached value of the '{@link #getFlow() <em>Flow</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFlow() + * @generated + * @ordered + */ + protected String flow = FLOW_EDEFAULT; + /** + * The default value of the '{@link #getIn() <em>In</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIn() + * @generated + * @ordered + */ + protected static final SwaggerParameterType IN_EDEFAULT = SwaggerParameterType.PATH; + /** + * The cached value of the '{@link #getIn() <em>In</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIn() + * @generated + * @ordered + */ + protected SwaggerParameterType in = IN_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerSecurityDefinitionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_SECURITY_DEFINITION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SECURITY_DEFINITION__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAuthorizationUrl() { + return authorizationUrl; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAuthorizationUrl(String newAuthorizationUrl) { + String oldAuthorizationUrl = authorizationUrl; + authorizationUrl = newAuthorizationUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL, oldAuthorizationUrl, authorizationUrl)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFlow() { + return flow; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFlow(String newFlow) { + String oldFlow = flow; + flow = newFlow; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SECURITY_DEFINITION__FLOW, oldFlow, flow)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerParameterType getIn() { + return in; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIn(SwaggerParameterType newIn) { + SwaggerParameterType oldIn = in; + in = newIn == null ? IN_EDEFAULT : newIn; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SECURITY_DEFINITION__IN, oldIn, in)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__TYPE: + return getType(); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL: + return getAuthorizationUrl(); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__FLOW: + return getFlow(); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__IN: + return getIn(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__TYPE: + setType((String)newValue); + return; + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL: + setAuthorizationUrl((String)newValue); + return; + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__FLOW: + setFlow((String)newValue); + return; + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__IN: + setIn((SwaggerParameterType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__TYPE: + setType(TYPE_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL: + setAuthorizationUrl(AUTHORIZATION_URL_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__FLOW: + setFlow(FLOW_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__IN: + setIn(IN_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__AUTHORIZATION_URL: + return AUTHORIZATION_URL_EDEFAULT == null ? authorizationUrl != null : !AUTHORIZATION_URL_EDEFAULT.equals(authorizationUrl); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__FLOW: + return FLOW_EDEFAULT == null ? flow != null : !FLOW_EDEFAULT.equals(flow); + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION__IN: + return in != IN_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (type: "); + result.append(type); + result.append(", authorizationUrl: "); + result.append(authorizationUrl); + result.append(", flow: "); + result.append(flow); + result.append(", in: "); + result.append(in); + result.append(')'); + return result.toString(); + } + +} //SwaggerSecurityDefinitionImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionScopeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionScopeImpl.java new file mode 100644 index 0000000..80fa9e0 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionScopeImpl.java @@ -0,0 +1,185 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.swagger.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityDefinitionScope; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security Definition Scope</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityDefinitionScopeImpl#getDescription <em>Description</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerSecurityDefinitionScopeImpl extends NamedEntityImpl implements SwaggerSecurityDefinitionScope { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerSecurityDefinitionScopeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_SECURITY_DEFINITION_SCOPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION: + return getDescription(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION: + setDescription((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_DEFINITION_SCOPE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //SwaggerSecurityDefinitionScopeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityImpl.java new file mode 100644 index 0000000..d1b49c3 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityImpl.java @@ -0,0 +1,165 @@ + +/*- + * ============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.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity; +import java.util.Collection; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityImpl#getRoles <em>Roles</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerSecurityImpl extends NamedEntityImpl implements SwaggerSecurity { + /** + * The cached value of the '{@link #getRoles() <em>Roles</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRoles() + * @generated + * @ordered + */ + protected EList<String> roles; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerSecurityImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_SECURITY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getRoles() { + if (roles == null) { + roles = new EDataTypeEList<String>(String.class, this, SwaggerPackage.SWAGGER_SECURITY__ROLES); + } + return roles; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY__ROLES: + return getRoles(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY__ROLES: + getRoles().clear(); + getRoles().addAll((Collection<? extends String>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY__ROLES: + getRoles().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY__ROLES: + return roles != null && !roles.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (roles: "); + result.append(roles); + result.append(')'); + return result.toString(); + } + +} //SwaggerSecurityImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityObjectImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityObjectImpl.java new file mode 100644 index 0000000..ed134d2 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityObjectImpl.java @@ -0,0 +1,167 @@ + +/*- + * ============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.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurity; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSecurityObject; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security Object</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSecurityObjectImpl#getList <em>List</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerSecurityObjectImpl extends MinimalEObjectImpl.Container implements SwaggerSecurityObject { + /** + * The cached value of the '{@link #getList() <em>List</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getList() + * @generated + * @ordered + */ + protected EList<SwaggerSecurity> list; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerSecurityObjectImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_SECURITY_OBJECT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SwaggerSecurity> getList() { + if (list == null) { + list = new EObjectContainmentEList<SwaggerSecurity>(SwaggerSecurity.class, this, SwaggerPackage.SWAGGER_SECURITY_OBJECT__LIST); + } + return list; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_OBJECT__LIST: + return ((InternalEList<?>)getList()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_OBJECT__LIST: + return getList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_OBJECT__LIST: + getList().clear(); + getList().addAll((Collection<? extends SwaggerSecurity>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_OBJECT__LIST: + getList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SECURITY_OBJECT__LIST: + return list != null && !list.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SwaggerSecurityObjectImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSimpleObjectTypeImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSimpleObjectTypeImpl.java new file mode 100644 index 0000000..427bbf2 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSimpleObjectTypeImpl.java @@ -0,0 +1,505 @@ + +/*- + * ============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.SwaggerCollectionFormat; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerSimpleObjectType; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Simple Object Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#isRequired <em>Required</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#getFormat <em>Format</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#getMinimum <em>Minimum</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#getMaximum <em>Maximum</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#getPattern <em>Pattern</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#getExample <em>Example</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerSimpleObjectTypeImpl#getCollectionFormat <em>Collection Format</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerSimpleObjectTypeImpl extends SwaggerNamedObjectTypeImpl implements SwaggerSimpleObjectType { + /** + * The default value of the '{@link #isRequired() <em>Required</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isRequired() + * @generated + * @ordered + */ + protected static final boolean REQUIRED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isRequired() <em>Required</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isRequired() + * @generated + * @ordered + */ + protected boolean required = REQUIRED_EDEFAULT; + + /** + * The default value of the '{@link #getFormat() <em>Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFormat() + * @generated + * @ordered + */ + protected static final String FORMAT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFormat() <em>Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFormat() + * @generated + * @ordered + */ + protected String format = FORMAT_EDEFAULT; + + /** + * The default value of the '{@link #getMinimum() <em>Minimum</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinimum() + * @generated + * @ordered + */ + protected static final String MINIMUM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMinimum() <em>Minimum</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinimum() + * @generated + * @ordered + */ + protected String minimum = MINIMUM_EDEFAULT; + + /** + * The default value of the '{@link #getMaximum() <em>Maximum</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMaximum() + * @generated + * @ordered + */ + protected static final String MAXIMUM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMaximum() <em>Maximum</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMaximum() + * @generated + * @ordered + */ + protected String maximum = MAXIMUM_EDEFAULT; + + /** + * The default value of the '{@link #getPattern() <em>Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPattern() + * @generated + * @ordered + */ + protected static final String PATTERN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPattern() <em>Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPattern() + * @generated + * @ordered + */ + protected String pattern = PATTERN_EDEFAULT; + + /** + * The default value of the '{@link #getExample() <em>Example</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExample() + * @generated + * @ordered + */ + protected static final String EXAMPLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getExample() <em>Example</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExample() + * @generated + * @ordered + */ + protected String example = EXAMPLE_EDEFAULT; + + /** + * The default value of the '{@link #getCollectionFormat() <em>Collection Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCollectionFormat() + * @generated + * @ordered + */ + protected static final SwaggerCollectionFormat COLLECTION_FORMAT_EDEFAULT = SwaggerCollectionFormat.CSV; + + /** + * The cached value of the '{@link #getCollectionFormat() <em>Collection Format</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCollectionFormat() + * @generated + * @ordered + */ + protected SwaggerCollectionFormat collectionFormat = COLLECTION_FORMAT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerSimpleObjectTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_SIMPLE_OBJECT_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isRequired() { + return required; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRequired(boolean newRequired) { + boolean oldRequired = required; + required = newRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED, oldRequired, required)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFormat() { + return format; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFormat(String newFormat) { + String oldFormat = format; + format = newFormat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT, oldFormat, format)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMinimum() { + return minimum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMinimum(String newMinimum) { + String oldMinimum = minimum; + minimum = newMinimum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM, oldMinimum, minimum)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMaximum() { + return maximum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMaximum(String newMaximum) { + String oldMaximum = maximum; + maximum = newMaximum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM, oldMaximum, maximum)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPattern() { + return pattern; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPattern(String newPattern) { + String oldPattern = pattern; + pattern = newPattern; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN, oldPattern, pattern)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getExample() { + return example; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExample(String newExample) { + String oldExample = example; + example = newExample; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE, oldExample, example)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerCollectionFormat getCollectionFormat() { + return collectionFormat; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCollectionFormat(SwaggerCollectionFormat newCollectionFormat) { + SwaggerCollectionFormat oldCollectionFormat = collectionFormat; + collectionFormat = newCollectionFormat == null ? COLLECTION_FORMAT_EDEFAULT : newCollectionFormat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT, oldCollectionFormat, collectionFormat)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED: + return isRequired(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT: + return getFormat(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM: + return getMinimum(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM: + return getMaximum(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN: + return getPattern(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE: + return getExample(); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT: + return getCollectionFormat(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED: + setRequired((Boolean)newValue); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT: + setFormat((String)newValue); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM: + setMinimum((String)newValue); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM: + setMaximum((String)newValue); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN: + setPattern((String)newValue); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE: + setExample((String)newValue); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT: + setCollectionFormat((SwaggerCollectionFormat)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED: + setRequired(REQUIRED_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT: + setFormat(FORMAT_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM: + setMinimum(MINIMUM_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM: + setMaximum(MAXIMUM_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN: + setPattern(PATTERN_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE: + setExample(EXAMPLE_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT: + setCollectionFormat(COLLECTION_FORMAT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__REQUIRED: + return required != REQUIRED_EDEFAULT; + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__FORMAT: + return FORMAT_EDEFAULT == null ? format != null : !FORMAT_EDEFAULT.equals(format); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MINIMUM: + return MINIMUM_EDEFAULT == null ? minimum != null : !MINIMUM_EDEFAULT.equals(minimum); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__MAXIMUM: + return MAXIMUM_EDEFAULT == null ? maximum != null : !MAXIMUM_EDEFAULT.equals(maximum); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__PATTERN: + return PATTERN_EDEFAULT == null ? pattern != null : !PATTERN_EDEFAULT.equals(pattern); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__EXAMPLE: + return EXAMPLE_EDEFAULT == null ? example != null : !EXAMPLE_EDEFAULT.equals(example); + case SwaggerPackage.SWAGGER_SIMPLE_OBJECT_TYPE__COLLECTION_FORMAT: + return collectionFormat != COLLECTION_FORMAT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (required: "); + result.append(required); + result.append(", format: "); + result.append(format); + result.append(", minimum: "); + result.append(minimum); + result.append(", maximum: "); + result.append(maximum); + result.append(", pattern: "); + result.append(pattern); + result.append(", example: "); + result.append(example); + result.append(", collectionFormat: "); + result.append(collectionFormat); + result.append(')'); + return result.toString(); + } + +} //SwaggerSimpleObjectTypeImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerTagImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerTagImpl.java new file mode 100644 index 0000000..a7035c9 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerTagImpl.java @@ -0,0 +1,319 @@ + +/*- + * ============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.SwaggerExternalDocumentation; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerTag; + +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; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Tag</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerTagImpl#getExternalDocs <em>External Docs</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerTagImpl extends MinimalEObjectImpl.Container implements SwaggerTag { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getExternalDocs() <em>External Docs</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExternalDocs() + * @generated + * @ordered + */ + protected SwaggerExternalDocumentation externalDocs; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerTagImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_TAG; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_TAG__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_TAG__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerExternalDocumentation getExternalDocs() { + return externalDocs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetExternalDocs(SwaggerExternalDocumentation newExternalDocs, NotificationChain msgs) { + SwaggerExternalDocumentation oldExternalDocs = externalDocs; + externalDocs = newExternalDocs; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS, oldExternalDocs, newExternalDocs); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExternalDocs(SwaggerExternalDocumentation newExternalDocs) { + if (newExternalDocs != externalDocs) { + NotificationChain msgs = null; + if (externalDocs != null) + msgs = ((InternalEObject)externalDocs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS, null, msgs); + if (newExternalDocs != null) + msgs = ((InternalEObject)newExternalDocs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS, null, msgs); + msgs = basicSetExternalDocs(newExternalDocs, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS, newExternalDocs, newExternalDocs)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS: + return basicSetExternalDocs(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_TAG__NAME: + return getName(); + case SwaggerPackage.SWAGGER_TAG__DESCRIPTION: + return getDescription(); + case SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS: + return getExternalDocs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_TAG__NAME: + setName((String)newValue); + return; + case SwaggerPackage.SWAGGER_TAG__DESCRIPTION: + setDescription((String)newValue); + return; + case SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS: + setExternalDocs((SwaggerExternalDocumentation)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_TAG__NAME: + setName(NAME_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_TAG__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS: + setExternalDocs((SwaggerExternalDocumentation)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_TAG__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case SwaggerPackage.SWAGGER_TAG__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case SwaggerPackage.SWAGGER_TAG__EXTERNAL_DOCS: + return externalDocs != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //SwaggerTagImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerXmlImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerXmlImpl.java new file mode 100644 index 0000000..b9cb7f3 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerXmlImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.sirius.manager.swagger.impl; + +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage; +import org.openecomp.ncomp.sirius.manager.swagger.SwaggerXml; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Xml</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerXmlImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.swagger.impl.SwaggerXmlImpl#isWrapped <em>Wrapped</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SwaggerXmlImpl extends MinimalEObjectImpl.Container implements SwaggerXml { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #isWrapped() <em>Wrapped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isWrapped() + * @generated + * @ordered + */ + protected static final boolean WRAPPED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isWrapped() <em>Wrapped</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isWrapped() + * @generated + * @ordered + */ + protected boolean wrapped = WRAPPED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerXmlImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return SwaggerPackage.Literals.SWAGGER_XML; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_XML__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isWrapped() { + return wrapped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWrapped(boolean newWrapped) { + boolean oldWrapped = wrapped; + wrapped = newWrapped; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SwaggerPackage.SWAGGER_XML__WRAPPED, oldWrapped, wrapped)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SwaggerPackage.SWAGGER_XML__NAME: + return getName(); + case SwaggerPackage.SWAGGER_XML__WRAPPED: + return isWrapped(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SwaggerPackage.SWAGGER_XML__NAME: + setName((String)newValue); + return; + case SwaggerPackage.SWAGGER_XML__WRAPPED: + setWrapped((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_XML__NAME: + setName(NAME_EDEFAULT); + return; + case SwaggerPackage.SWAGGER_XML__WRAPPED: + setWrapped(WRAPPED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SwaggerPackage.SWAGGER_XML__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case SwaggerPackage.SWAGGER_XML__WRAPPED: + return wrapped != WRAPPED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", wrapped: "); + result.append(wrapped); + result.append(')'); + return result.toString(); + } + +} //SwaggerXmlImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/util/SwaggerAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/util/SwaggerAdapterFactory.java new file mode 100644 index 0000000..24d9c8b --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/util/SwaggerAdapterFactory.java @@ -0,0 +1,521 @@ + +/*- + * ============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.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage + * @generated + */ +public class SwaggerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static SwaggerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerAdapterFactory() { + if (modelPackage == null) { + modelPackage = SwaggerPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SwaggerSwitch<Adapter> modelSwitch = + new SwaggerSwitch<Adapter>() { + @Override + public Adapter caseSwaggerModel(SwaggerModel object) { + return createSwaggerModelAdapter(); + } + @Override + public Adapter caseSwaggerInfo(SwaggerInfo object) { + return createSwaggerInfoAdapter(); + } + @Override + public Adapter caseSwaggerContact(SwaggerContact object) { + return createSwaggerContactAdapter(); + } + @Override + public Adapter caseSwaggerLicense(SwaggerLicense object) { + return createSwaggerLicenseAdapter(); + } + @Override + public Adapter caseSwaggerTag(SwaggerTag object) { + return createSwaggerTagAdapter(); + } + @Override + public Adapter caseSwaggerExternalDocumentation(SwaggerExternalDocumentation object) { + return createSwaggerExternalDocumentationAdapter(); + } + @Override + public Adapter caseSwaggerPath(SwaggerPath object) { + return createSwaggerPathAdapter(); + } + @Override + public Adapter caseSwaggerOperation(SwaggerOperation object) { + return createSwaggerOperationAdapter(); + } + @Override + public Adapter caseSwaggerParameter(SwaggerParameter object) { + return createSwaggerParameterAdapter(); + } + @Override + public Adapter caseSwaggerResponse(SwaggerResponse object) { + return createSwaggerResponseAdapter(); + } + @Override + public Adapter caseSwaggerSecurityObject(SwaggerSecurityObject object) { + return createSwaggerSecurityObjectAdapter(); + } + @Override + public Adapter caseSwaggerSecurity(SwaggerSecurity object) { + return createSwaggerSecurityAdapter(); + } + @Override + public Adapter caseSwaggerSecurityDefinition(SwaggerSecurityDefinition object) { + return createSwaggerSecurityDefinitionAdapter(); + } + @Override + public Adapter caseSwaggerSecurityDefinitionScope(SwaggerSecurityDefinitionScope object) { + return createSwaggerSecurityDefinitionScopeAdapter(); + } + @Override + public Adapter caseSwaggerObjectType(SwaggerObjectType object) { + return createSwaggerObjectTypeAdapter(); + } + @Override + public Adapter caseSwaggerReferenceObjectType(SwaggerReferenceObjectType object) { + return createSwaggerReferenceObjectTypeAdapter(); + } + @Override + public Adapter caseSwaggerNamedObjectType(SwaggerNamedObjectType object) { + return createSwaggerNamedObjectTypeAdapter(); + } + @Override + public Adapter caseSwaggerObjectClassDefinition(SwaggerObjectClassDefinition object) { + return createSwaggerObjectClassDefinitionAdapter(); + } + @Override + public Adapter caseSwaggerSimpleObjectType(SwaggerSimpleObjectType object) { + return createSwaggerSimpleObjectTypeAdapter(); + } + @Override + public Adapter caseSwaggerXml(SwaggerXml object) { + return createSwaggerXmlAdapter(); + } + @Override + public Adapter caseSwaggerEnumObjectType(SwaggerEnumObjectType object) { + return createSwaggerEnumObjectTypeAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Model</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Info</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Contact</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>License</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Tag</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>External Documentation</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Path</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Operation</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Parameter</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Response</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Security Object</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Security</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Security Definition</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Security Definition Scope</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Object Type</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Reference Object Type</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Named Object Type</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Object Class Definition</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Simple Object Type</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Xml</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Enum Object Type</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Named Entity</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.swagger.SwaggerPackage + * @generated + */ +public class SwaggerSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static SwaggerPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SwaggerSwitch() { + if (modelPackage == null) { + modelPackage = SwaggerPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Model</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Model</em>'. + * @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 '<em>Info</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Info</em>'. + * @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 '<em>Contact</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Contact</em>'. + * @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 '<em>License</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>License</em>'. + * @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 '<em>Tag</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Tag</em>'. + * @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 '<em>External Documentation</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>External Documentation</em>'. + * @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 '<em>Path</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Path</em>'. + * @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 '<em>Operation</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Operation</em>'. + * @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 '<em>Parameter</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Parameter</em>'. + * @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 '<em>Response</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Response</em>'. + * @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 '<em>Security Object</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Security Object</em>'. + * @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 '<em>Security</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Security</em>'. + * @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 '<em>Security Definition</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Security Definition</em>'. + * @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 '<em>Security Definition Scope</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Security Definition Scope</em>'. + * @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 '<em>Object Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Object Type</em>'. + * @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 '<em>Reference Object Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Reference Object Type</em>'. + * @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 '<em>Named Object Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Named Object Type</em>'. + * @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 '<em>Object Class Definition</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Object Class Definition</em>'. + * @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 '<em>Simple Object Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Simple Object Type</em>'. + * @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 '<em>Xml</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Xml</em>'. + * @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 '<em>Enum Object Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Enum Object Type</em>'. + * @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 '<em>Named Entity</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Named Entity</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Abstract Table Template</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTreePath <em>Tree Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTablePath <em>Table Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getAbstractTableTemplate() + * @model abstract="true" + * @generated + */ +public interface AbstractTableTemplate extends NamedEntity { + /** + * Returns the value of the '<em><b>Tree Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tree Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tree Path</em>' 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 <em>Tree Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tree Path</em>' attribute. + * @see #getTreePath() + * @generated + */ + void setTreePath(String value); + + /** + * Returns the value of the '<em><b>Table Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table Path</em>' 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 <em>Table Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table Path</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Has Columns Table Template</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate#getColumns <em>Columns</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getHasColumnsTableTemplate() + * @model abstract="true" + * @generated + */ +public interface HasColumnsTableTemplate extends EObject { + /** + * Returns the value of the '<em><b>Columns</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Columns</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Columns</em>' containment reference list. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getHasColumnsTableTemplate_Columns() + * @model containment="true" + * @generated + */ + EList<TableTemplateColumn> getColumns(); + +} // HasColumnsTableTemplate diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/IteratorTableTemplate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/IteratorTableTemplate.java new file mode 100644 index 0000000..4a78790 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/IteratorTableTemplate.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.tableTemplate; + +import org.openecomp.ncomp.core.function.Iterator; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Iterator Table Template</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate#getIterator <em>Iterator</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getIteratorTableTemplate() + * @model + * @generated + */ +public interface IteratorTableTemplate extends AbstractTableTemplate, HasColumnsTableTemplate { + /** + * Returns the value of the '<em><b>Iterator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Iterator</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Iterator</em>' 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 <em>Iterator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Iterator</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Log Table Template</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinLevel <em>Min Level</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinSeverity <em>Min Severity</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getPrefixResourcePath <em>Prefix Resource Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getDuration <em>Duration</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getAggregationDuration <em>Aggregation Duration</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getLogTableTemplate() + * @model + * @generated + */ +public interface LogTableTemplate extends AbstractTableTemplate { + /** + * Returns the value of the '<em><b>Min Level</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogLevel}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Min Level</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Min Level</em>' 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 <em>Min Level</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Min Level</em>' attribute. + * @see org.openecomp.ncomp.core.logs.LogLevel + * @see #getMinLevel() + * @generated + */ + void setMinLevel(LogLevel value); + + /** + * Returns the value of the '<em><b>Min Severity</b></em>' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.logs.LogSeverity}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Min Severity</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Min Severity</em>' 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 <em>Min Severity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Min Severity</em>' attribute. + * @see org.openecomp.ncomp.core.logs.LogSeverity + * @see #getMinSeverity() + * @generated + */ + void setMinSeverity(LogSeverity value); + + /** + * Returns the value of the '<em><b>Prefix Resource Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Prefix Resource Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Prefix Resource Path</em>' 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 <em>Prefix Resource Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Prefix Resource Path</em>' attribute. + * @see #getPrefixResourcePath() + * @generated + */ + void setPrefixResourcePath(String value); + + /** + * Returns the value of the '<em><b>Duration</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Duration</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Duration</em>' 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 <em>Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Duration</em>' attribute. + * @see #getDuration() + * @generated + */ + void setDuration(String value); + + /** + * Returns the value of the '<em><b>Aggregation Duration</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Aggregation Duration</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Aggregation Duration</em>' 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 <em>Aggregation Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Aggregation Duration</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Table Template</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate#getRowPath <em>Row Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplate() + * @model + * @generated + */ +public interface TableTemplate extends AbstractTableTemplate, HasColumnsTableTemplate { + /** + * Returns the value of the '<em><b>Row Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Row Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Row Path</em>' 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 <em>Row Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Row Path</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Attribute Column</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplateAttributeColumn() + * @model + * @generated + */ +public interface TableTemplateAttributeColumn extends TableTemplateColumn { + /** + * Returns the value of the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Path</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Column</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage + * @generated + */ +public interface TableTemplateFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + TableTemplateFactory eINSTANCE = org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Log Table Template</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Log Table Template</em>'. + * @generated + */ + LogTableTemplate createLogTableTemplate(); + + /** + * Returns a new object of class '<em>Table Template</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Table Template</em>'. + * @generated + */ + TableTemplate createTableTemplate(); + + /** + * Returns a new object of class '<em>Iterator Table Template</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Iterator Table Template</em>'. + * @generated + */ + IteratorTableTemplate createIteratorTableTemplate(); + + /** + * Returns a new object of class '<em>Time Table Template</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Time Table Template</em>'. + * @generated + */ + TimeTableTemplate createTimeTableTemplate(); + + /** + * Returns a new object of class '<em>Attribute Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Attribute Column</em>'. + * @generated + */ + TableTemplateAttributeColumn createTableTemplateAttributeColumn(); + + /** + * Returns a new object of class '<em>Metric Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Metric Column</em>'. + * @generated + */ + TableTemplateMetricColumn createTableTemplateMetricColumn(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Metric Column</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getPath <em>Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getOption <em>Option</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getTableTemplateMetricColumn() + * @model + * @generated + */ +public interface TableTemplateMetricColumn extends TableTemplateColumn { + /** + * Returns the value of the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Path</em>' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the '<em><b>Option</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Option</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Option</em>' 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 <em>Option</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Option</em>' 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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-sirius-manager-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.sirius.manager'" + * annotation="http://www.eclipse.org/emf/2011/Xcore GenModel='http://www.eclipse.org/emf/2002/GenModel' doc='http://openecomp.org/sirius/doc'" + * @generated + */ +public interface TableTemplatePackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "tableTemplate"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.sirius.manager.tableTemplate"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "tableTemplate"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + TableTemplatePackage eINSTANCE = org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.AbstractTableTemplateImpl <em>Abstract Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.AbstractTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getAbstractTableTemplate() + * @generated + */ + int ABSTRACT_TABLE_TEMPLATE = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Tree Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE__TREE_PATH = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Table Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE__TABLE_PATH = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Abstract Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Abstract Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ABSTRACT_TABLE_TEMPLATE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.HasColumnsTableTemplateImpl <em>Has Columns Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.HasColumnsTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getHasColumnsTableTemplate() + * @generated + */ + int HAS_COLUMNS_TABLE_TEMPLATE = 1; + + /** + * The feature id for the '<em><b>Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS = 0; + + /** + * The number of structural features of the '<em>Has Columns Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HAS_COLUMNS_TABLE_TEMPLATE_FEATURE_COUNT = 1; + + /** + * The number of operations of the '<em>Has Columns Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HAS_COLUMNS_TABLE_TEMPLATE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl <em>Log Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getLogTableTemplate() + * @generated + */ + int LOG_TABLE_TEMPLATE = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__NAME = ABSTRACT_TABLE_TEMPLATE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__LAST_POLLED = ABSTRACT_TABLE_TEMPLATE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__LAST_CHANGED = ABSTRACT_TABLE_TEMPLATE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__CREATED = ABSTRACT_TABLE_TEMPLATE__CREATED; + + /** + * The feature id for the '<em><b>Tree Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__TREE_PATH = ABSTRACT_TABLE_TEMPLATE__TREE_PATH; + + /** + * The feature id for the '<em><b>Table Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__TABLE_PATH = ABSTRACT_TABLE_TEMPLATE__TABLE_PATH; + + /** + * The feature id for the '<em><b>Min Level</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__MIN_LEVEL = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Min Severity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__MIN_SEVERITY = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Prefix Resource Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Duration</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__DURATION = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Aggregation Duration</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE__AGGREGATION_DURATION = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Log Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE_FEATURE_COUNT = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Log Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOG_TABLE_TEMPLATE_OPERATION_COUNT = ABSTRACT_TABLE_TEMPLATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateImpl <em>Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplate() + * @generated + */ + int TABLE_TEMPLATE = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__NAME = ABSTRACT_TABLE_TEMPLATE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__LAST_POLLED = ABSTRACT_TABLE_TEMPLATE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__LAST_CHANGED = ABSTRACT_TABLE_TEMPLATE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__CREATED = ABSTRACT_TABLE_TEMPLATE__CREATED; + + /** + * The feature id for the '<em><b>Tree Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__TREE_PATH = ABSTRACT_TABLE_TEMPLATE__TREE_PATH; + + /** + * The feature id for the '<em><b>Table Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__TABLE_PATH = ABSTRACT_TABLE_TEMPLATE__TABLE_PATH; + + /** + * The feature id for the '<em><b>Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__COLUMNS = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Row Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE__ROW_PATH = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_FEATURE_COUNT = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_OPERATION_COUNT = ABSTRACT_TABLE_TEMPLATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.IteratorTableTemplateImpl <em>Iterator Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.IteratorTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getIteratorTableTemplate() + * @generated + */ + int ITERATOR_TABLE_TEMPLATE = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__NAME = ABSTRACT_TABLE_TEMPLATE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__LAST_POLLED = ABSTRACT_TABLE_TEMPLATE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__LAST_CHANGED = ABSTRACT_TABLE_TEMPLATE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__CREATED = ABSTRACT_TABLE_TEMPLATE__CREATED; + + /** + * The feature id for the '<em><b>Tree Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__TREE_PATH = ABSTRACT_TABLE_TEMPLATE__TREE_PATH; + + /** + * The feature id for the '<em><b>Table Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__TABLE_PATH = ABSTRACT_TABLE_TEMPLATE__TABLE_PATH; + + /** + * The feature id for the '<em><b>Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__COLUMNS = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Iterator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE__ITERATOR = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Iterator Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE_FEATURE_COUNT = ABSTRACT_TABLE_TEMPLATE_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Iterator Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ITERATOR_TABLE_TEMPLATE_OPERATION_COUNT = ABSTRACT_TABLE_TEMPLATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TimeTableTemplateImpl <em>Time Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TimeTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTimeTableTemplate() + * @generated + */ + int TIME_TABLE_TEMPLATE = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__NAME = TABLE_TEMPLATE__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__LAST_POLLED = TABLE_TEMPLATE__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__LAST_CHANGED = TABLE_TEMPLATE__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__CREATED = TABLE_TEMPLATE__CREATED; + + /** + * The feature id for the '<em><b>Tree Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__TREE_PATH = TABLE_TEMPLATE__TREE_PATH; + + /** + * The feature id for the '<em><b>Table Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__TABLE_PATH = TABLE_TEMPLATE__TABLE_PATH; + + /** + * The feature id for the '<em><b>Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__COLUMNS = TABLE_TEMPLATE__COLUMNS; + + /** + * The feature id for the '<em><b>Row Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__ROW_PATH = TABLE_TEMPLATE__ROW_PATH; + + /** + * The feature id for the '<em><b>Duration</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE__DURATION = TABLE_TEMPLATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Time Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE_FEATURE_COUNT = TABLE_TEMPLATE_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Time Table Template</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TIME_TABLE_TEMPLATE_OPERATION_COUNT = TABLE_TEMPLATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateColumnImpl <em>Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateColumnImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplateColumn() + * @generated + */ + int TABLE_TEMPLATE_COLUMN = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_COLUMN__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_COLUMN__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_COLUMN__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_COLUMN__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The number of structural features of the '<em>Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_COLUMN_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of operations of the '<em>Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_COLUMN_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateAttributeColumnImpl <em>Attribute Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateAttributeColumnImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplateAttributeColumn() + * @generated + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN = 7; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN__NAME = TABLE_TEMPLATE_COLUMN__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN__LAST_POLLED = TABLE_TEMPLATE_COLUMN__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN__LAST_CHANGED = TABLE_TEMPLATE_COLUMN__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN__CREATED = TABLE_TEMPLATE_COLUMN__CREATED; + + /** + * The feature id for the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH = TABLE_TEMPLATE_COLUMN_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Attribute Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN_FEATURE_COUNT = TABLE_TEMPLATE_COLUMN_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Attribute Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_ATTRIBUTE_COLUMN_OPERATION_COUNT = TABLE_TEMPLATE_COLUMN_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl <em>Metric Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplateMetricColumn() + * @generated + */ + int TABLE_TEMPLATE_METRIC_COLUMN = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN__NAME = TABLE_TEMPLATE_COLUMN__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN__LAST_POLLED = TABLE_TEMPLATE_COLUMN__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN__LAST_CHANGED = TABLE_TEMPLATE_COLUMN__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN__CREATED = TABLE_TEMPLATE_COLUMN__CREATED; + + /** + * The feature id for the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN__PATH = TABLE_TEMPLATE_COLUMN_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Option</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN__OPTION = TABLE_TEMPLATE_COLUMN_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Metric Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN_FEATURE_COUNT = TABLE_TEMPLATE_COLUMN_FEATURE_COUNT + 2; + + /** + * The number of operations of the '<em>Metric Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_TEMPLATE_METRIC_COLUMN_OPERATION_COUNT = TABLE_TEMPLATE_COLUMN_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate <em>Abstract Table Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Abstract Table Template</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate + * @generated + */ + EClass getAbstractTableTemplate(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTreePath <em>Tree Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tree Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTreePath() + * @see #getAbstractTableTemplate() + * @generated + */ + EAttribute getAbstractTableTemplate_TreePath(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTablePath <em>Table Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Table Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate#getTablePath() + * @see #getAbstractTableTemplate() + * @generated + */ + EAttribute getAbstractTableTemplate_TablePath(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate <em>Has Columns Table Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Has Columns Table Template</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate + * @generated + */ + EClass getHasColumnsTableTemplate(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate#getColumns <em>Columns</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Columns</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate#getColumns() + * @see #getHasColumnsTableTemplate() + * @generated + */ + EReference getHasColumnsTableTemplate_Columns(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate <em>Log Table Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Log Table Template</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate + * @generated + */ + EClass getLogTableTemplate(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinLevel <em>Min Level</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Min Level</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinLevel() + * @see #getLogTableTemplate() + * @generated + */ + EAttribute getLogTableTemplate_MinLevel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinSeverity <em>Min Severity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Min Severity</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getMinSeverity() + * @see #getLogTableTemplate() + * @generated + */ + EAttribute getLogTableTemplate_MinSeverity(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getPrefixResourcePath <em>Prefix Resource Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Prefix Resource Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getPrefixResourcePath() + * @see #getLogTableTemplate() + * @generated + */ + EAttribute getLogTableTemplate_PrefixResourcePath(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getDuration <em>Duration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Duration</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getDuration() + * @see #getLogTableTemplate() + * @generated + */ + EAttribute getLogTableTemplate_Duration(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getAggregationDuration <em>Aggregation Duration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Aggregation Duration</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate#getAggregationDuration() + * @see #getLogTableTemplate() + * @generated + */ + EAttribute getLogTableTemplate_AggregationDuration(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate <em>Table Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Table Template</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate + * @generated + */ + EClass getTableTemplate(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate#getRowPath <em>Row Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Row Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate#getRowPath() + * @see #getTableTemplate() + * @generated + */ + EAttribute getTableTemplate_RowPath(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate <em>Iterator Table Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Iterator Table Template</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate + * @generated + */ + EClass getIteratorTableTemplate(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate#getIterator <em>Iterator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Iterator</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate#getIterator() + * @see #getIteratorTableTemplate() + * @generated + */ + EReference getIteratorTableTemplate_Iterator(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate <em>Time Table Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Time Table Template</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate + * @generated + */ + EClass getTimeTableTemplate(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate#getDuration <em>Duration</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Duration</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate#getDuration() + * @see #getTimeTableTemplate() + * @generated + */ + EAttribute getTimeTableTemplate_Duration(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Column</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn + * @generated + */ + EClass getTableTemplateColumn(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn <em>Attribute Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Attribute Column</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn + * @generated + */ + EClass getTableTemplateAttributeColumn(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn#getPath() + * @see #getTableTemplateAttributeColumn() + * @generated + */ + EAttribute getTableTemplateAttributeColumn_Path(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn <em>Metric Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Metric Column</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn + * @generated + */ + EClass getTableTemplateMetricColumn(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Path</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getPath() + * @see #getTableTemplateMetricColumn() + * @generated + */ + EAttribute getTableTemplateMetricColumn_Path(); + + /** + * Returns the meta object for the reference '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getOption <em>Option</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Option</em>'. + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn#getOption() + * @see #getTableTemplateMetricColumn() + * @generated + */ + EReference getTableTemplateMetricColumn_Option(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + TableTemplateFactory getTableTemplateFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.AbstractTableTemplateImpl <em>Abstract Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.AbstractTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getAbstractTableTemplate() + * @generated + */ + EClass ABSTRACT_TABLE_TEMPLATE = eINSTANCE.getAbstractTableTemplate(); + + /** + * The meta object literal for the '<em><b>Tree Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ABSTRACT_TABLE_TEMPLATE__TREE_PATH = eINSTANCE.getAbstractTableTemplate_TreePath(); + + /** + * The meta object literal for the '<em><b>Table Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ABSTRACT_TABLE_TEMPLATE__TABLE_PATH = eINSTANCE.getAbstractTableTemplate_TablePath(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.HasColumnsTableTemplateImpl <em>Has Columns Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.HasColumnsTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getHasColumnsTableTemplate() + * @generated + */ + EClass HAS_COLUMNS_TABLE_TEMPLATE = eINSTANCE.getHasColumnsTableTemplate(); + + /** + * The meta object literal for the '<em><b>Columns</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS = eINSTANCE.getHasColumnsTableTemplate_Columns(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl <em>Log Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getLogTableTemplate() + * @generated + */ + EClass LOG_TABLE_TEMPLATE = eINSTANCE.getLogTableTemplate(); + + /** + * The meta object literal for the '<em><b>Min Level</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOG_TABLE_TEMPLATE__MIN_LEVEL = eINSTANCE.getLogTableTemplate_MinLevel(); + + /** + * The meta object literal for the '<em><b>Min Severity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOG_TABLE_TEMPLATE__MIN_SEVERITY = eINSTANCE.getLogTableTemplate_MinSeverity(); + + /** + * The meta object literal for the '<em><b>Prefix Resource Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH = eINSTANCE.getLogTableTemplate_PrefixResourcePath(); + + /** + * The meta object literal for the '<em><b>Duration</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOG_TABLE_TEMPLATE__DURATION = eINSTANCE.getLogTableTemplate_Duration(); + + /** + * The meta object literal for the '<em><b>Aggregation Duration</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LOG_TABLE_TEMPLATE__AGGREGATION_DURATION = eINSTANCE.getLogTableTemplate_AggregationDuration(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateImpl <em>Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplate() + * @generated + */ + EClass TABLE_TEMPLATE = eINSTANCE.getTableTemplate(); + + /** + * The meta object literal for the '<em><b>Row Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_TEMPLATE__ROW_PATH = eINSTANCE.getTableTemplate_RowPath(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.IteratorTableTemplateImpl <em>Iterator Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.IteratorTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getIteratorTableTemplate() + * @generated + */ + EClass ITERATOR_TABLE_TEMPLATE = eINSTANCE.getIteratorTableTemplate(); + + /** + * The meta object literal for the '<em><b>Iterator</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ITERATOR_TABLE_TEMPLATE__ITERATOR = eINSTANCE.getIteratorTableTemplate_Iterator(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TimeTableTemplateImpl <em>Time Table Template</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TimeTableTemplateImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTimeTableTemplate() + * @generated + */ + EClass TIME_TABLE_TEMPLATE = eINSTANCE.getTimeTableTemplate(); + + /** + * The meta object literal for the '<em><b>Duration</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TIME_TABLE_TEMPLATE__DURATION = eINSTANCE.getTimeTableTemplate_Duration(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateColumnImpl <em>Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateColumnImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplateColumn() + * @generated + */ + EClass TABLE_TEMPLATE_COLUMN = eINSTANCE.getTableTemplateColumn(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateAttributeColumnImpl <em>Attribute Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateAttributeColumnImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplateAttributeColumn() + * @generated + */ + EClass TABLE_TEMPLATE_ATTRIBUTE_COLUMN = eINSTANCE.getTableTemplateAttributeColumn(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH = eINSTANCE.getTableTemplateAttributeColumn_Path(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl <em>Metric Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplatePackageImpl#getTableTemplateMetricColumn() + * @generated + */ + EClass TABLE_TEMPLATE_METRIC_COLUMN = eINSTANCE.getTableTemplateMetricColumn(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_TEMPLATE_METRIC_COLUMN__PATH = eINSTANCE.getTableTemplateMetricColumn_Path(); + + /** + * The meta object literal for the '<em><b>Option</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TABLE_TEMPLATE_METRIC_COLUMN__OPTION = eINSTANCE.getTableTemplateMetricColumn_Option(); + + } + +} //TableTemplatePackage diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TimeTableTemplate.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TimeTableTemplate.java new file mode 100644 index 0000000..53faf84 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/TimeTableTemplate.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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Time Table Template</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate#getDuration <em>Duration</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage#getTimeTableTemplate() + * @model + * @generated + */ +public interface TimeTableTemplate extends TableTemplate { + /** + * Returns the value of the '<em><b>Duration</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Duration</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Duration</em>' 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 <em>Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Duration</em>' 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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Abstract Table Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.AbstractTableTemplateImpl#getTreePath <em>Tree Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.AbstractTableTemplateImpl#getTablePath <em>Table Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class AbstractTableTemplateImpl extends NamedEntityImpl implements AbstractTableTemplate { + /** + * The default value of the '{@link #getTreePath() <em>Tree Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTreePath() + * @generated + * @ordered + */ + protected static final String TREE_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTreePath() <em>Tree Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTreePath() + * @generated + * @ordered + */ + protected String treePath = TREE_PATH_EDEFAULT; + + /** + * The default value of the '{@link #getTablePath() <em>Table Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTablePath() + * @generated + * @ordered + */ + protected static final String TABLE_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTablePath() <em>Table Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTablePath() + * @generated + * @ordered + */ + protected String tablePath = TABLE_PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AbstractTableTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.ABSTRACT_TABLE_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTreePath() { + return treePath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTreePath(String newTreePath) { + String oldTreePath = treePath; + treePath = newTreePath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TREE_PATH, oldTreePath, treePath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTablePath() { + return tablePath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTablePath(String newTablePath) { + String oldTablePath = tablePath; + tablePath = newTablePath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TABLE_PATH, oldTablePath, tablePath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TREE_PATH: + return getTreePath(); + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TABLE_PATH: + return getTablePath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TREE_PATH: + setTreePath((String)newValue); + return; + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TABLE_PATH: + setTablePath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TREE_PATH: + setTreePath(TREE_PATH_EDEFAULT); + return; + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TABLE_PATH: + setTablePath(TABLE_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TREE_PATH: + return TREE_PATH_EDEFAULT == null ? treePath != null : !TREE_PATH_EDEFAULT.equals(treePath); + case TableTemplatePackage.ABSTRACT_TABLE_TEMPLATE__TABLE_PATH: + return TABLE_PATH_EDEFAULT == null ? tablePath != null : !TABLE_PATH_EDEFAULT.equals(tablePath); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (treePath: "); + result.append(treePath); + result.append(", tablePath: "); + result.append(tablePath); + result.append(')'); + return result.toString(); + } + +} //AbstractTableTemplateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/HasColumnsTableTemplateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/HasColumnsTableTemplateImpl.java new file mode 100644 index 0000000..e2714d6 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/HasColumnsTableTemplateImpl.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.tableTemplate.impl; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate; +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.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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Has Columns Table Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.HasColumnsTableTemplateImpl#getColumns <em>Columns</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class HasColumnsTableTemplateImpl extends MinimalEObjectImpl.Container implements HasColumnsTableTemplate { + /** + * The cached value of the '{@link #getColumns() <em>Columns</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumns() + * @generated + * @ordered + */ + protected EList<TableTemplateColumn> columns; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected HasColumnsTableTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.HAS_COLUMNS_TABLE_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<TableTemplateColumn> getColumns() { + if (columns == null) { + columns = new EObjectContainmentEList<TableTemplateColumn>(TableTemplateColumn.class, this, TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS); + } + return columns; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: + return ((InternalEList<?>)getColumns()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: + return getColumns(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: + getColumns().clear(); + getColumns().addAll((Collection<? extends TableTemplateColumn>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: + getColumns().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: + return columns != null && !columns.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //HasColumnsTableTemplateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/IteratorTableTemplateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/IteratorTableTemplateImpl.java new file mode 100644 index 0000000..9221429 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/IteratorTableTemplateImpl.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.core.function.Iterator; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Iterator Table Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.IteratorTableTemplateImpl#getColumns <em>Columns</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.IteratorTableTemplateImpl#getIterator <em>Iterator</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class IteratorTableTemplateImpl extends AbstractTableTemplateImpl implements IteratorTableTemplate { + /** + * The cached value of the '{@link #getColumns() <em>Columns</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumns() + * @generated + * @ordered + */ + protected EList<TableTemplateColumn> columns; + + /** + * The cached value of the '{@link #getIterator() <em>Iterator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIterator() + * @generated + * @ordered + */ + protected Iterator iterator; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IteratorTableTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.ITERATOR_TABLE_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<TableTemplateColumn> getColumns() { + if (columns == null) { + columns = new EObjectContainmentEList<TableTemplateColumn>(TableTemplateColumn.class, this, TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS); + } + return columns; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Iterator getIterator() { + return iterator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetIterator(Iterator newIterator, NotificationChain msgs) { + Iterator oldIterator = iterator; + iterator = newIterator; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR, oldIterator, newIterator); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIterator(Iterator newIterator) { + if (newIterator != iterator) { + NotificationChain msgs = null; + if (iterator != null) + msgs = ((InternalEObject)iterator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR, null, msgs); + if (newIterator != null) + msgs = ((InternalEObject)newIterator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR, null, msgs); + msgs = basicSetIterator(newIterator, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR, newIterator, newIterator)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS: + return ((InternalEList<?>)getColumns()).basicRemove(otherEnd, msgs); + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR: + return basicSetIterator(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS: + return getColumns(); + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR: + return getIterator(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS: + getColumns().clear(); + getColumns().addAll((Collection<? extends TableTemplateColumn>)newValue); + return; + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR: + setIterator((Iterator)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS: + getColumns().clear(); + return; + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR: + setIterator((Iterator)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS: + return columns != null && !columns.isEmpty(); + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__ITERATOR: + return iterator != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == HasColumnsTableTemplate.class) { + switch (derivedFeatureID) { + case TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS: return TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == HasColumnsTableTemplate.class) { + switch (baseFeatureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: return TableTemplatePackage.ITERATOR_TABLE_TEMPLATE__COLUMNS; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + +} //IteratorTableTemplateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/LogTableTemplateImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/LogTableTemplateImpl.java new file mode 100644 index 0000000..12cd999 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/LogTableTemplateImpl.java @@ -0,0 +1,402 @@ + +/*- + * ============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.logs.LogLevel; +import org.openecomp.ncomp.core.logs.LogSeverity; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Log Table Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl#getMinLevel <em>Min Level</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl#getMinSeverity <em>Min Severity</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl#getPrefixResourcePath <em>Prefix Resource Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl#getDuration <em>Duration</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.LogTableTemplateImpl#getAggregationDuration <em>Aggregation Duration</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class LogTableTemplateImpl extends AbstractTableTemplateImpl implements LogTableTemplate { + /** + * The default value of the '{@link #getMinLevel() <em>Min Level</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinLevel() + * @generated + * @ordered + */ + protected static final LogLevel MIN_LEVEL_EDEFAULT = LogLevel.UNKNOWN; + + /** + * The cached value of the '{@link #getMinLevel() <em>Min Level</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinLevel() + * @generated + * @ordered + */ + protected LogLevel minLevel = MIN_LEVEL_EDEFAULT; + + /** + * The default value of the '{@link #getMinSeverity() <em>Min Severity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinSeverity() + * @generated + * @ordered + */ + protected static final LogSeverity MIN_SEVERITY_EDEFAULT = LogSeverity.UNKNOWN; + + /** + * The cached value of the '{@link #getMinSeverity() <em>Min Severity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinSeverity() + * @generated + * @ordered + */ + protected LogSeverity minSeverity = MIN_SEVERITY_EDEFAULT; + + /** + * The default value of the '{@link #getPrefixResourcePath() <em>Prefix Resource Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrefixResourcePath() + * @generated + * @ordered + */ + protected static final String PREFIX_RESOURCE_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPrefixResourcePath() <em>Prefix Resource Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrefixResourcePath() + * @generated + * @ordered + */ + protected String prefixResourcePath = PREFIX_RESOURCE_PATH_EDEFAULT; + + /** + * The default value of the '{@link #getDuration() <em>Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDuration() + * @generated + * @ordered + */ + protected static final String DURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDuration() <em>Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDuration() + * @generated + * @ordered + */ + protected String duration = DURATION_EDEFAULT; + + /** + * The default value of the '{@link #getAggregationDuration() <em>Aggregation Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAggregationDuration() + * @generated + * @ordered + */ + protected static final String AGGREGATION_DURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAggregationDuration() <em>Aggregation Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAggregationDuration() + * @generated + * @ordered + */ + protected String aggregationDuration = AGGREGATION_DURATION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected LogTableTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.LOG_TABLE_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LogLevel getMinLevel() { + return minLevel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMinLevel(LogLevel newMinLevel) { + LogLevel oldMinLevel = minLevel; + minLevel = newMinLevel == null ? MIN_LEVEL_EDEFAULT : newMinLevel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_LEVEL, oldMinLevel, minLevel)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LogSeverity getMinSeverity() { + return minSeverity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMinSeverity(LogSeverity newMinSeverity) { + LogSeverity oldMinSeverity = minSeverity; + minSeverity = newMinSeverity == null ? MIN_SEVERITY_EDEFAULT : newMinSeverity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_SEVERITY, oldMinSeverity, minSeverity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPrefixResourcePath() { + return prefixResourcePath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrefixResourcePath(String newPrefixResourcePath) { + String oldPrefixResourcePath = prefixResourcePath; + prefixResourcePath = newPrefixResourcePath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH, oldPrefixResourcePath, prefixResourcePath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDuration() { + return duration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDuration(String newDuration) { + String oldDuration = duration; + duration = newDuration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.LOG_TABLE_TEMPLATE__DURATION, oldDuration, duration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAggregationDuration() { + return aggregationDuration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAggregationDuration(String newAggregationDuration) { + String oldAggregationDuration = aggregationDuration; + aggregationDuration = newAggregationDuration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.LOG_TABLE_TEMPLATE__AGGREGATION_DURATION, oldAggregationDuration, aggregationDuration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_LEVEL: + return getMinLevel(); + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_SEVERITY: + return getMinSeverity(); + case TableTemplatePackage.LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH: + return getPrefixResourcePath(); + case TableTemplatePackage.LOG_TABLE_TEMPLATE__DURATION: + return getDuration(); + case TableTemplatePackage.LOG_TABLE_TEMPLATE__AGGREGATION_DURATION: + return getAggregationDuration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_LEVEL: + setMinLevel((LogLevel)newValue); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_SEVERITY: + setMinSeverity((LogSeverity)newValue); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH: + setPrefixResourcePath((String)newValue); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__DURATION: + setDuration((String)newValue); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__AGGREGATION_DURATION: + setAggregationDuration((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_LEVEL: + setMinLevel(MIN_LEVEL_EDEFAULT); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_SEVERITY: + setMinSeverity(MIN_SEVERITY_EDEFAULT); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH: + setPrefixResourcePath(PREFIX_RESOURCE_PATH_EDEFAULT); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__DURATION: + setDuration(DURATION_EDEFAULT); + return; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__AGGREGATION_DURATION: + setAggregationDuration(AGGREGATION_DURATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_LEVEL: + return minLevel != MIN_LEVEL_EDEFAULT; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__MIN_SEVERITY: + return minSeverity != MIN_SEVERITY_EDEFAULT; + case TableTemplatePackage.LOG_TABLE_TEMPLATE__PREFIX_RESOURCE_PATH: + return PREFIX_RESOURCE_PATH_EDEFAULT == null ? prefixResourcePath != null : !PREFIX_RESOURCE_PATH_EDEFAULT.equals(prefixResourcePath); + case TableTemplatePackage.LOG_TABLE_TEMPLATE__DURATION: + return DURATION_EDEFAULT == null ? duration != null : !DURATION_EDEFAULT.equals(duration); + case TableTemplatePackage.LOG_TABLE_TEMPLATE__AGGREGATION_DURATION: + return AGGREGATION_DURATION_EDEFAULT == null ? aggregationDuration != null : !AGGREGATION_DURATION_EDEFAULT.equals(aggregationDuration); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (minLevel: "); + result.append(minLevel); + result.append(", minSeverity: "); + result.append(minSeverity); + result.append(", prefixResourcePath: "); + result.append(prefixResourcePath); + result.append(", duration: "); + result.append(duration); + result.append(", aggregationDuration: "); + result.append(aggregationDuration); + result.append(')'); + return result.toString(); + } + +} //LogTableTemplateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateAttributeColumnImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateAttributeColumnImpl.java new file mode 100644 index 0000000..faa23d0 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateAttributeColumnImpl.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.TableTemplateAttributeColumn; +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Attribute Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateAttributeColumnImpl#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TableTemplateAttributeColumnImpl extends TableTemplateColumnImpl implements TableTemplateAttributeColumn { + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableTemplateAttributeColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.TABLE_TEMPLATE_ATTRIBUTE_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH: + setPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH: + setPath(PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_ATTRIBUTE_COLUMN__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //TableTemplateAttributeColumnImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateColumnImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateColumnImpl.java new file mode 100644 index 0000000..5995352 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateColumnImpl.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.tableTemplate.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class TableTemplateColumnImpl extends NamedEntityImpl implements TableTemplateColumn { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableTemplateColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class TableTemplateFactoryImpl extends EFactoryImpl implements TableTemplateFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplateFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public LogTableTemplate createLogTableTemplate() { + LogTableTemplateImpl logTableTemplate = new LogTableTemplateImpl(); + return logTableTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplate createTableTemplate() { + TableTemplateImpl tableTemplate = new TableTemplateImpl(); + return tableTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IteratorTableTemplate createIteratorTableTemplate() { + IteratorTableTemplateImpl iteratorTableTemplate = new IteratorTableTemplateImpl(); + return iteratorTableTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TimeTableTemplate createTimeTableTemplate() { + TimeTableTemplateImpl timeTableTemplate = new TimeTableTemplateImpl(); + return timeTableTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplateAttributeColumn createTableTemplateAttributeColumn() { + TableTemplateAttributeColumnImpl tableTemplateAttributeColumn = new TableTemplateAttributeColumnImpl(); + return tableTemplateAttributeColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplateMetricColumn createTableTemplateMetricColumn() { + TableTemplateMetricColumnImpl tableTemplateMetricColumn = new TableTemplateMetricColumnImpl(); + return tableTemplateMetricColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplatePackage getTableTemplatePackage() { + return (TableTemplatePackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Table Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateImpl#getColumns <em>Columns</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateImpl#getRowPath <em>Row Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TableTemplateImpl extends AbstractTableTemplateImpl implements TableTemplate { + /** + * The cached value of the '{@link #getColumns() <em>Columns</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumns() + * @generated + * @ordered + */ + protected EList<TableTemplateColumn> columns; + + /** + * The default value of the '{@link #getRowPath() <em>Row Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRowPath() + * @generated + * @ordered + */ + protected static final String ROW_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRowPath() <em>Row Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRowPath() + * @generated + * @ordered + */ + protected String rowPath = ROW_PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.TABLE_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<TableTemplateColumn> getColumns() { + if (columns == null) { + columns = new EObjectContainmentEList<TableTemplateColumn>(TableTemplateColumn.class, this, TableTemplatePackage.TABLE_TEMPLATE__COLUMNS); + } + return columns; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getRowPath() { + return rowPath; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRowPath(String newRowPath) { + String oldRowPath = rowPath; + rowPath = newRowPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TABLE_TEMPLATE__ROW_PATH, oldRowPath, rowPath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE__COLUMNS: + return ((InternalEList<?>)getColumns()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE__COLUMNS: + return getColumns(); + case TableTemplatePackage.TABLE_TEMPLATE__ROW_PATH: + return getRowPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE__COLUMNS: + getColumns().clear(); + getColumns().addAll((Collection<? extends TableTemplateColumn>)newValue); + return; + case TableTemplatePackage.TABLE_TEMPLATE__ROW_PATH: + setRowPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE__COLUMNS: + getColumns().clear(); + return; + case TableTemplatePackage.TABLE_TEMPLATE__ROW_PATH: + setRowPath(ROW_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE__COLUMNS: + return columns != null && !columns.isEmpty(); + case TableTemplatePackage.TABLE_TEMPLATE__ROW_PATH: + return ROW_PATH_EDEFAULT == null ? rowPath != null : !ROW_PATH_EDEFAULT.equals(rowPath); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == HasColumnsTableTemplate.class) { + switch (derivedFeatureID) { + case TableTemplatePackage.TABLE_TEMPLATE__COLUMNS: return TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == HasColumnsTableTemplate.class) { + switch (baseFeatureID) { + case TableTemplatePackage.HAS_COLUMNS_TABLE_TEMPLATE__COLUMNS: return TableTemplatePackage.TABLE_TEMPLATE__COLUMNS; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (rowPath: "); + result.append(rowPath); + result.append(')'); + return result.toString(); + } + +} //TableTemplateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java new file mode 100644 index 0000000..a59b006 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java @@ -0,0 +1,246 @@ + +/*- + * ============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.metrics.MetricValueOption; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn; +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.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Metric Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl#getPath <em>Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl#getOption <em>Option</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TableTemplateMetricColumnImpl extends TableTemplateColumnImpl implements TableTemplateMetricColumn { + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * The cached value of the '{@link #getOption() <em>Option</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOption() + * @generated + * @ordered + */ + protected MetricValueOption option; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableTemplateMetricColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.TABLE_TEMPLATE_METRIC_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MetricValueOption getOption() { + if (option != null && option.eIsProxy()) { + InternalEObject oldOption = (InternalEObject)option; + option = (MetricValueOption)eResolveProxy(oldOption); + if (option != oldOption) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION, oldOption, option)); + } + } + return option; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MetricValueOption basicGetOption() { + return option; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOption(MetricValueOption newOption) { + MetricValueOption oldOption = option; + option = newOption; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION, oldOption, option)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + return getPath(); + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + if (resolve) return getOption(); + return basicGetOption(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + setPath((String)newValue); + return; + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + setOption((MetricValueOption)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + setPath(PATH_EDEFAULT); + return; + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + setOption((MetricValueOption)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + return option != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //TableTemplateMetricColumnImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplatePackageImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplatePackageImpl.java new file mode 100644 index 0000000..8cdb839 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplatePackageImpl.java @@ -0,0 +1,560 @@ + +/*- + * ============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.CorePackage; + +import org.openecomp.ncomp.core.function.FunctionPackage; + +import org.openecomp.ncomp.core.logs.LogsPackage; + +import org.openecomp.ncomp.core.metrics.MetricsPackage; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.AbstractTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.HasColumnsTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.IteratorTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.LogTableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplate; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateAttributeColumn; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateColumn; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateFactory; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TimeTableTemplate; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class TableTemplatePackageImpl extends EPackageImpl implements TableTemplatePackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass abstractTableTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass hasColumnsTableTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass logTableTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tableTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass iteratorTableTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass timeTableTemplateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tableTemplateColumnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tableTemplateAttributeColumnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tableTemplateMetricColumnEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAbstractTableTemplate() { + return abstractTableTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAbstractTableTemplate_TreePath() { + return (EAttribute)abstractTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAbstractTableTemplate_TablePath() { + return (EAttribute)abstractTableTemplateEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getHasColumnsTableTemplate() { + return hasColumnsTableTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getHasColumnsTableTemplate_Columns() { + return (EReference)hasColumnsTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLogTableTemplate() { + return logTableTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLogTableTemplate_MinLevel() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLogTableTemplate_MinSeverity() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLogTableTemplate_PrefixResourcePath() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLogTableTemplate_Duration() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLogTableTemplate_AggregationDuration() { + return (EAttribute)logTableTemplateEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTableTemplate() { + return tableTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableTemplate_RowPath() { + return (EAttribute)tableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getIteratorTableTemplate() { + return iteratorTableTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getIteratorTableTemplate_Iterator() { + return (EReference)iteratorTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTimeTableTemplate() { + return timeTableTemplateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTimeTableTemplate_Duration() { + return (EAttribute)timeTableTemplateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTableTemplateColumn() { + return tableTemplateColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTableTemplateAttributeColumn() { + return tableTemplateAttributeColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableTemplateAttributeColumn_Path() { + return (EAttribute)tableTemplateAttributeColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTableTemplateMetricColumn() { + return tableTemplateMetricColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableTemplateMetricColumn_Path() { + return (EAttribute)tableTemplateMetricColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTableTemplateMetricColumn_Option() { + return (EReference)tableTemplateMetricColumnEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplateFactory getTableTemplateFactory() { + return (TableTemplateFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Time Table Template</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TimeTableTemplateImpl#getDuration <em>Duration</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TimeTableTemplateImpl extends TableTemplateImpl implements TimeTableTemplate { + /** + * The default value of the '{@link #getDuration() <em>Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDuration() + * @generated + * @ordered + */ + protected static final String DURATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDuration() <em>Duration</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDuration() + * @generated + * @ordered + */ + protected String duration = DURATION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TimeTableTemplateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.TIME_TABLE_TEMPLATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDuration() { + return duration; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDuration(String newDuration) { + String oldDuration = duration; + duration = newDuration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TIME_TABLE_TEMPLATE__DURATION, oldDuration, duration)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.TIME_TABLE_TEMPLATE__DURATION: + return getDuration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.TIME_TABLE_TEMPLATE__DURATION: + setDuration((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.TIME_TABLE_TEMPLATE__DURATION: + setDuration(DURATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.TIME_TABLE_TEMPLATE__DURATION: + return DURATION_EDEFAULT == null ? duration != null : !DURATION_EDEFAULT.equals(duration); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (duration: "); + result.append(duration); + result.append(')'); + return result.toString(); + } + +} //TimeTableTemplateImpl diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/util/TableTemplateAdapterFactory.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/util/TableTemplateAdapterFactory.java new file mode 100644 index 0000000..2c46df7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/util/TableTemplateAdapterFactory.java @@ -0,0 +1,305 @@ + +/*- + * ============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.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage + * @generated + */ +public class TableTemplateAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static TableTemplatePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplateAdapterFactory() { + if (modelPackage == null) { + modelPackage = TableTemplatePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableTemplateSwitch<Adapter> modelSwitch = + new TableTemplateSwitch<Adapter>() { + @Override + public Adapter caseAbstractTableTemplate(AbstractTableTemplate object) { + return createAbstractTableTemplateAdapter(); + } + @Override + public Adapter caseHasColumnsTableTemplate(HasColumnsTableTemplate object) { + return createHasColumnsTableTemplateAdapter(); + } + @Override + public Adapter caseLogTableTemplate(LogTableTemplate object) { + return createLogTableTemplateAdapter(); + } + @Override + public Adapter caseTableTemplate(TableTemplate object) { + return createTableTemplateAdapter(); + } + @Override + public Adapter caseIteratorTableTemplate(IteratorTableTemplate object) { + return createIteratorTableTemplateAdapter(); + } + @Override + public Adapter caseTimeTableTemplate(TimeTableTemplate object) { + return createTimeTableTemplateAdapter(); + } + @Override + public Adapter caseTableTemplateColumn(TableTemplateColumn object) { + return createTableTemplateColumnAdapter(); + } + @Override + public Adapter caseTableTemplateAttributeColumn(TableTemplateAttributeColumn object) { + return createTableTemplateAttributeColumnAdapter(); + } + @Override + public Adapter caseTableTemplateMetricColumn(TableTemplateMetricColumn object) { + return createTableTemplateMetricColumnAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Abstract Table Template</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Has Columns Table Template</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Log Table Template</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Table Template</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Iterator Table Template</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Time Table Template</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Column</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Attribute Column</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Metric Column</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Named Entity</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage + * @generated + */ +public class TableTemplateSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static TableTemplatePackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableTemplateSwitch() { + if (modelPackage == null) { + modelPackage = TableTemplatePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Abstract Table Template</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Abstract Table Template</em>'. + * @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 '<em>Has Columns Table Template</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Has Columns Table Template</em>'. + * @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 '<em>Log Table Template</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Log Table Template</em>'. + * @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 '<em>Table Template</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Table Template</em>'. + * @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 '<em>Iterator Table Template</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Iterator Table Template</em>'. + * @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 '<em>Time Table Template</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Time Table Template</em>'. + * @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 '<em>Column</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Column</em>'. + * @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 '<em>Attribute Column</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Attribute Column</em>'. + * @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 '<em>Metric Column</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Metric Column</em>'. + * @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 '<em>Named Entity</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Named Entity</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @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
+}
+
|