// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.08.29 at 11:50:06 AM CEST // package gazz.trifolia.parser; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlElementRefs; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element ref="{http://www.lantanagroup.com}Constraint"/>
 *         <element ref="{http://www.lantanagroup.com}CodeSystem"/>
 *         <element ref="{http://www.lantanagroup.com}Label"/>
 *         <element ref="{http://www.lantanagroup.com}NarrativeText"/>
 *         <element ref="{http://www.lantanagroup.com}SingleValueCode"/>
 *         <element ref="{http://www.lantanagroup.com}ValueSet"/>
 *       </choice>
 *       <attribute name="cardinality" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       <attribute name="conformance" type="{http://www.w3.org/2001/XMLSchema}NCName" />
 *       <attribute name="containedTemplateOid" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
 *       <attribute name="context" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *       <attribute name="dataType" type="{http://www.w3.org/2001/XMLSchema}NCName" />
 *       <attribute name="isBranchIdentifier" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="number" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "constraintOrCodeSystemOrLabel" }) @XmlRootElement(name = "Constraint") public class Constraint { @XmlElementRefs({ @XmlElementRef(name = "CodeSystem", namespace = "http://www.lantanagroup.com", type = CodeSystem.class, required = false), @XmlElementRef(name = "ValueSet", namespace = "http://www.lantanagroup.com", type = ValueSet.class, required = false), @XmlElementRef(name = "SingleValueCode", namespace = "http://www.lantanagroup.com", type = SingleValueCode.class, required = false), @XmlElementRef(name = "NarrativeText", namespace = "http://www.lantanagroup.com", type = JAXBElement.class, required = false), @XmlElementRef(name = "Label", namespace = "http://www.lantanagroup.com", type = JAXBElement.class, required = false), @XmlElementRef(name = "Constraint", namespace = "http://www.lantanagroup.com", type = Constraint.class, required = false) }) protected List constraintOrCodeSystemOrLabel; @XmlAttribute(name = "cardinality", required = true) @XmlSchemaType(name = "anySimpleType") protected String cardinality; @XmlAttribute(name = "conformance") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String conformance; @XmlAttribute(name = "containedTemplateOid") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String containedTemplateOid; @XmlAttribute(name = "context", required = true) @XmlSchemaType(name = "anySimpleType") protected String context; @XmlAttribute(name = "dataType") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String dataType; @XmlAttribute(name = "isBranchIdentifier") protected Boolean isBranchIdentifier; @XmlAttribute(name = "number", required = true) protected BigInteger number; @XmlTransient private Constraint __parentConstraint; public Constraint get__parentConstraint() { return __parentConstraint; } public void set__parentConstraint(Constraint __parentConstraint) { this.__parentConstraint = __parentConstraint; } void afterUnmarshal( javax.xml.bind.Unmarshaller u, Object parent ){ if (parent instanceof Constraint){ this.__parentConstraint = (Constraint)parent; } } /** * Return delimiter. * @return delimiter */ public String getNarrativeText() { for(Object obj : this.getConstraintOrCodeSystemOrLabel()){ if (obj instanceof javax.xml.bind.JAXBElement){ if (((javax.xml.bind.JAXBElement)obj).getName().getLocalPart().equals("NarrativeText")){ return (String) ((javax.xml.bind.JAXBElement)obj).getValue() ; } } } return null; } public gazz.trifolia.parser.CodeSystem getCodeSystem() { for(Object obj : this.getConstraintOrCodeSystemOrLabel()){ if (obj instanceof gazz.trifolia.parser.CodeSystem){ return (gazz.trifolia.parser.CodeSystem) obj; } } return null; } public gazz.trifolia.parser.ValueSet getValueSet() { for(Object obj : this.getConstraintOrCodeSystemOrLabel()){ if (obj instanceof gazz.trifolia.parser.ValueSet){ return (gazz.trifolia.parser.ValueSet) obj; } } return null; } public List getConstraint() { List delimiter_el = new ArrayList(); for(Object obj : this.getConstraintOrCodeSystemOrLabel()){ if (obj instanceof gazz.trifolia.parser.Constraint){ delimiter_el.add( (gazz.trifolia.parser.Constraint) obj ); } } return delimiter_el; } public gazz.trifolia.parser.SingleValueCode getSingleValueCode() { for(Object obj : this.getConstraintOrCodeSystemOrLabel()){ if (obj instanceof gazz.trifolia.parser.SingleValueCode){ return (gazz.trifolia.parser.SingleValueCode) obj; } } return null; } /** * Gets the value of the constraintOrCodeSystemOrLabel property. * *

* 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 set method for the constraintOrCodeSystemOrLabel property. * *

* For example, to add a new item, do as follows: *

     *    getConstraintOrCodeSystemOrLabel().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SingleValueCode } * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link CodeSystem } * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link ValueSet } * {@link Constraint } * * */ public List getConstraintOrCodeSystemOrLabel() { if (constraintOrCodeSystemOrLabel == null) { constraintOrCodeSystemOrLabel = new ArrayList(); } return this.constraintOrCodeSystemOrLabel; } /** * Gets the value of the cardinality property. * * @return * possible object is * {@link String } * */ public String getCardinality() { return cardinality; } /** * Sets the value of the cardinality property. * * @param value * allowed object is * {@link String } * */ public void setCardinality(String value) { this.cardinality = value; } /** * Gets the value of the conformance property. * * @return * possible object is * {@link String } * */ public String getConformance() { return conformance; } /** * Sets the value of the conformance property. * * @param value * allowed object is * {@link String } * */ public void setConformance(String value) { this.conformance = value; } /** * Gets the value of the containedTemplateOid property. * * @return * possible object is * {@link String } * */ public String getContainedTemplateOid() { return containedTemplateOid; } /** * Sets the value of the containedTemplateOid property. * * @param value * allowed object is * {@link String } * */ public void setContainedTemplateOid(String value) { this.containedTemplateOid = value; } /** * Gets the value of the context property. * * @return * possible object is * {@link String } * */ public String getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link String } * */ public void setContext(String value) { this.context = value; } /** * Gets the value of the dataType property. * * @return * possible object is * {@link String } * */ public String getDataType() { return dataType; } /** * Sets the value of the dataType property. * * @param value * allowed object is * {@link String } * */ public void setDataType(String value) { this.dataType = value; } /** * Gets the value of the isBranchIdentifier property. * * @return * possible object is * {@link Boolean } * */ public Boolean isIsBranchIdentifier() { return isBranchIdentifier; } /** * Sets the value of the isBranchIdentifier property. * * @param value * allowed object is * {@link Boolean } * */ public void setIsBranchIdentifier(Boolean value) { this.isBranchIdentifier = value; } /** * Gets the value of the number property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getNumber() { return number; } /** * Sets the value of the number property. * * @param value * allowed object is * {@link BigInteger } * */ public void setNumber(BigInteger value) { this.number = value; } }