/* * Copyright (c) 2013 Technische Universitat Wien (TUW), Distributed Systems Group. http://dsg.tuwien.ac.at * * This work was partially supported by the European Commission in terms of the CELAR FP7 project (FP7-ICT-2011-8 #317790), http://www.celarcloud.eu/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package generated.oasis.tosca; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import javax.xml.namespace.QName; /** * <p>Java class for tEntityType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="tEntityType"> * <complexContent> * <extension base="{http://docs.oasis-open.org/tosca/ns/2011/12}tExtensibleElements"> * <sequence> * <element name="Tags" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tTags" minOccurs="0"/> * <element name="DerivedFrom" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="typeRef" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="PropertiesDefinition" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="element" type="{http://www.w3.org/2001/XMLSchema}QName" /> * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" /> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" /> * <attribute name="abstract" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tBoolean" default="no" /> * <attribute name="final" type="{http://docs.oasis-open.org/tosca/ns/2011/12}tBoolean" default="no" /> * <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * <anyAttribute processContents='lax' namespace='##other'/> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "tEntityType", propOrder = { "tags", "derivedFrom", "propertiesDefinition" }) @XmlSeeAlso({ TNodeType.class, TRelationshipType.class, TRequirementType.class, TCapabilityType.class, TArtifactType.class, TPolicyType.class }) public abstract class TEntityType extends TExtensibleElements { @XmlElement(name = "Tags") protected TTags tags; @XmlElement(name = "DerivedFrom") protected TEntityType.DerivedFrom derivedFrom; @XmlElement(name = "PropertiesDefinition") protected TEntityType.PropertiesDefinition propertiesDefinition; @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String name; @XmlAttribute(name = "abstract") protected TBoolean _abstract; @XmlAttribute(name = "final") protected TBoolean _final; @XmlAttribute(name = "targetNamespace") @XmlSchemaType(name = "anyURI") protected String targetNamespace; /** * Gets the value of the tags property. * * @return * possible object is * {@link TTags } * */ public TTags getTags() { return tags; } /** * Sets the value of the tags property. * * @param value * allowed object is * {@link TTags } * */ public void setTags(TTags value) { this.tags = value; } /** * Gets the value of the derivedFrom property. * * @return * possible object is * {@link TEntityType.DerivedFrom } * */ public TEntityType.DerivedFrom getDerivedFrom() { return derivedFrom; } /** * Sets the value of the derivedFrom property. * * @param value * allowed object is * {@link TEntityType.DerivedFrom } * */ public void setDerivedFrom(TEntityType.DerivedFrom value) { this.derivedFrom = value; } /** * Gets the value of the propertiesDefinition property. * * @return * possible object is * {@link TEntityType.PropertiesDefinition } * */ public TEntityType.PropertiesDefinition getPropertiesDefinition() { return propertiesDefinition; } /** * Sets the value of the propertiesDefinition property. * * @param value * allowed object is * {@link TEntityType.PropertiesDefinition } * */ public void setPropertiesDefinition(TEntityType.PropertiesDefinition value) { this.propertiesDefinition = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the abstract property. * * @return * possible object is * {@link TBoolean } * */ public TBoolean getAbstract() { if (_abstract == null) { return TBoolean.NO; } else { return _abstract; } } /** * Sets the value of the abstract property. * * @param value * allowed object is * {@link TBoolean } * */ public void setAbstract(TBoolean value) { this._abstract = value; } /** * Gets the value of the final property. * * @return * possible object is * {@link TBoolean } * */ public TBoolean getFinal() { if (_final == null) { return TBoolean.NO; } else { return _final; } } /** * Sets the value of the final property. * * @param value * allowed object is * {@link TBoolean } * */ public void setFinal(TBoolean value) { this._final = value; } /** * Gets the value of the targetNamespace property. * * @return * possible object is * {@link String } * */ public String getTargetNamespace() { return targetNamespace; } /** * Sets the value of the targetNamespace property. * * @param value * allowed object is * {@link String } * */ public void setTargetNamespace(String value) { this.targetNamespace = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="typeRef" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class DerivedFrom { @XmlAttribute(name = "typeRef", required = true) protected QName typeRef; /** * Gets the value of the typeRef property. * * @return * possible object is * {@link QName } * */ public QName getTypeRef() { return typeRef; } /** * Sets the value of the typeRef property. * * @param value * allowed object is * {@link QName } * */ public void setTypeRef(QName value) { this.typeRef = value; } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="element" type="{http://www.w3.org/2001/XMLSchema}QName" /> * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class PropertiesDefinition { @XmlAttribute(name = "element") protected QName element; @XmlAttribute(name = "type") protected QName type; /** * Gets the value of the element property. * * @return * possible object is * {@link QName } * */ public QName getElement() { return element; } /** * Sets the value of the element property. * * @param value * allowed object is * {@link QName } * */ public void setElement(QName value) { this.element = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link QName } * */ public QName getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link QName } * */ public void setType(QName value) { this.type = value; } } }