package org.teiid.designer.extension.convertor.mxd; import java.util.ArrayList; import java.util.List; 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.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * The fully qualified name of the metaclass being extended along with the extended property * definitions. * * <p>Java class for metaclassType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="metaclassType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="property" type="{http://www.jboss.org/teiiddesigner/ext/2012}propertyType" maxOccurs="unbounded"/> * </sequence> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "metaclassType", namespace = "http://www.jboss.org/teiiddesigner/ext/2012", propOrder = { "property" }) public class MetaclassType { @XmlElement(namespace = "http://www.jboss.org/teiiddesigner/ext/2012", required = true) protected List<PropertyType> property; @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String name; /** * Gets the value of the property property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the property property. * * <p> * For example, to add a new item, do as follows: * <pre> * getProperty().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link PropertyType } * * */ public List<PropertyType> getProperty() { if (property == null) { property = new ArrayList<PropertyType>(); } return this.property; } /** * 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; } }