aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionImpl.java')
-rw-r--r--ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/swagger/impl/SwaggerSecurityDefinitionImpl.java338
1 files changed, 338 insertions, 0 deletions
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