package org.hl7.v3; 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.XmlID; 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; /** * <p>Java class for StrucDoc.List complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="StrucDoc.List"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="caption" type="{urn:hl7-org:v3}StrucDoc.Caption" minOccurs="0"/> * <element name="item" type="{urn:hl7-org:v3}StrucDoc.Item" maxOccurs="unbounded"/> * </sequence> * <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" /> * <attribute name="language" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> * <attribute name="styleCode" type="{http://www.w3.org/2001/XMLSchema}NMTOKENS" /> * <attribute name="listType" default="unordered"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> * <enumeration value="ordered"/> * <enumeration value="unordered"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StrucDoc.List", propOrder = { "caption", "item" }) public class StrucDocList { protected StrucDocCaption caption; @XmlElement(required = true) protected List<StrucDocItem> item; @XmlAttribute(name = "ID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String attributeId; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NMTOKEN") protected String language; @XmlAttribute @XmlSchemaType(name = "NMTOKENS") protected List<String> styleCode; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String listType; /** * Gets the value of the caption property. * * @return * possible object is * {@link StrucDocCaption } * */ public StrucDocCaption getCaption() { return caption; } /** * Sets the value of the caption property. * * @param value * allowed object is * {@link StrucDocCaption } * */ public void setCaption(StrucDocCaption value) { this.caption = value; } /** * Gets the value of the item 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 item property. * * <p> * For example, to add a new item, do as follows: * <pre> * getItem().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link StrucDocItem } * * */ public List<StrucDocItem> getItem() { if (item == null) { item = new ArrayList<StrucDocItem>(); } return this.item; } /** * Gets the value of the attributeId property. * * @return * possible object is * {@link String } * */ public String getAttributeId() { return attributeId; } /** * Sets the value of the attributeId property. * * @param value * allowed object is * {@link String } * */ public void setAttributeId(String value) { this.attributeId = value; } /** * Gets the value of the language property. * * @return * possible object is * {@link String } * */ public String getLanguage() { return language; } /** * Sets the value of the language property. * * @param value * allowed object is * {@link String } * */ public void setLanguage(String value) { this.language = value; } /** * Gets the value of the styleCode 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 styleCode property. * * <p> * For example, to add a new item, do as follows: * <pre> * getStyleCode().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getStyleCode() { if (styleCode == null) { styleCode = new ArrayList<String>(); } return this.styleCode; } /** * Gets the value of the listType property. * * @return * possible object is * {@link String } * */ public String getListType() { if (listType == null) { return "unordered"; } else { return listType; } } /** * Sets the value of the listType property. * * @param value * allowed object is * {@link String } * */ public void setListType(String value) { this.listType = value; } }