
com.github.rahulsom.cda.StrucDocTable Maven / Gradle / Ivy
Show all versions of ihe-iti Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.09 at 07:53:51 PM PDT
//
package com.github.rahulsom.cda;
import java.util.ArrayList;
import java.util.Collection;
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;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Java class for StrucDoc.Table complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StrucDoc.Table">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="caption" type="{urn:hl7-org:v3}StrucDoc.Caption" minOccurs="0"/>
* <choice>
* <element name="col" type="{urn:hl7-org:v3}StrucDoc.Col" maxOccurs="unbounded" minOccurs="0"/>
* <element name="colgroup" type="{urn:hl7-org:v3}StrucDoc.Colgroup" maxOccurs="unbounded" minOccurs="0"/>
* </choice>
* <element name="thead" type="{urn:hl7-org:v3}StrucDoc.Thead" minOccurs="0"/>
* <element name="tfoot" type="{urn:hl7-org:v3}StrucDoc.Tfoot" minOccurs="0"/>
* <element name="tbody" type="{urn:hl7-org:v3}StrucDoc.Tbody" 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="summary" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="border" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="frame">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="void"/>
* <enumeration value="above"/>
* <enumeration value="below"/>
* <enumeration value="hsides"/>
* <enumeration value="lhs"/>
* <enumeration value="rhs"/>
* <enumeration value="vsides"/>
* <enumeration value="box"/>
* <enumeration value="border"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="rules">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="none"/>
* <enumeration value="groups"/>
* <enumeration value="rows"/>
* <enumeration value="cols"/>
* <enumeration value="all"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="cellspacing" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="cellpadding" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StrucDoc.Table", namespace = "urn:hl7-org:v3", propOrder = {
"caption",
"col",
"colgroup",
"thead",
"tfoot",
"tbody"
})
public class StrucDocTable {
@XmlElement(namespace = "urn:hl7-org:v3")
protected StrucDocCaption caption;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List col;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List colgroup;
@XmlElement(namespace = "urn:hl7-org:v3")
protected StrucDocThead thead;
@XmlElement(namespace = "urn:hl7-org:v3")
protected StrucDocTfoot tfoot;
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected List tbody;
@XmlAttribute(name = "ID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "language")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NMTOKEN")
protected String language;
@XmlAttribute(name = "styleCode")
@XmlSchemaType(name = "NMTOKENS")
protected List styleCode;
@XmlAttribute(name = "summary")
protected String summary;
@XmlAttribute(name = "width")
protected String width;
@XmlAttribute(name = "border")
protected String border;
@XmlAttribute(name = "frame")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String frame;
@XmlAttribute(name = "rules")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String rules;
@XmlAttribute(name = "cellspacing")
protected String cellspacing;
@XmlAttribute(name = "cellpadding")
protected String cellpadding;
/**
* 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 col 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 col property.
*
*
* For example, to add a new item, do as follows:
*
* getCol().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StrucDocCol }
*
*
*/
public List getCol() {
if (col == null) {
col = new ArrayList();
}
return this.col;
}
/**
* Gets the value of the colgroup 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 colgroup property.
*
*
* For example, to add a new item, do as follows:
*
* getColgroup().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StrucDocColgroup }
*
*
*/
public List getColgroup() {
if (colgroup == null) {
colgroup = new ArrayList();
}
return this.colgroup;
}
/**
* Gets the value of the thead property.
*
* @return
* possible object is
* {@link StrucDocThead }
*
*/
public StrucDocThead getThead() {
return thead;
}
/**
* Sets the value of the thead property.
*
* @param value
* allowed object is
* {@link StrucDocThead }
*
*/
public void setThead(StrucDocThead value) {
this.thead = value;
}
/**
* Gets the value of the tfoot property.
*
* @return
* possible object is
* {@link StrucDocTfoot }
*
*/
public StrucDocTfoot getTfoot() {
return tfoot;
}
/**
* Sets the value of the tfoot property.
*
* @param value
* allowed object is
* {@link StrucDocTfoot }
*
*/
public void setTfoot(StrucDocTfoot value) {
this.tfoot = value;
}
/**
* Gets the value of the tbody 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 tbody property.
*
*
* For example, to add a new item, do as follows:
*
* getTbody().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StrucDocTbody }
*
*
*/
public List getTbody() {
if (tbody == null) {
tbody = new ArrayList();
}
return this.tbody;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getID() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setID(String value) {
this.id = 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.
*
*
* 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 styleCode property.
*
*
* For example, to add a new item, do as follows:
*
* getStyleCode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getStyleCode() {
if (styleCode == null) {
styleCode = new ArrayList();
}
return this.styleCode;
}
/**
* Gets the value of the summary property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSummary() {
return summary;
}
/**
* Sets the value of the summary property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSummary(String value) {
this.summary = value;
}
/**
* Gets the value of the width property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getWidth() {
return width;
}
/**
* Sets the value of the width property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setWidth(String value) {
this.width = value;
}
/**
* Gets the value of the border property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBorder() {
return border;
}
/**
* Sets the value of the border property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBorder(String value) {
this.border = value;
}
/**
* Gets the value of the frame property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFrame() {
return frame;
}
/**
* Sets the value of the frame property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFrame(String value) {
this.frame = value;
}
/**
* Gets the value of the rules property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRules() {
return rules;
}
/**
* Sets the value of the rules property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRules(String value) {
this.rules = value;
}
/**
* Gets the value of the cellspacing property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCellspacing() {
return cellspacing;
}
/**
* Sets the value of the cellspacing property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCellspacing(String value) {
this.cellspacing = value;
}
/**
* Gets the value of the cellpadding property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCellpadding() {
return cellpadding;
}
/**
* Sets the value of the cellpadding property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCellpadding(String value) {
this.cellpadding = value;
}
public StrucDocTable withCaption(StrucDocCaption value) {
setCaption(value);
return this;
}
public StrucDocTable withCol(StrucDocCol... values) {
if (values!= null) {
for (StrucDocCol value: values) {
getCol().add(value);
}
}
return this;
}
public StrucDocTable withCol(Collection values) {
if (values!= null) {
getCol().addAll(values);
}
return this;
}
public StrucDocTable withColgroup(StrucDocColgroup... values) {
if (values!= null) {
for (StrucDocColgroup value: values) {
getColgroup().add(value);
}
}
return this;
}
public StrucDocTable withColgroup(Collection values) {
if (values!= null) {
getColgroup().addAll(values);
}
return this;
}
public StrucDocTable withThead(StrucDocThead value) {
setThead(value);
return this;
}
public StrucDocTable withTfoot(StrucDocTfoot value) {
setTfoot(value);
return this;
}
public StrucDocTable withTbody(StrucDocTbody... values) {
if (values!= null) {
for (StrucDocTbody value: values) {
getTbody().add(value);
}
}
return this;
}
public StrucDocTable withTbody(Collection values) {
if (values!= null) {
getTbody().addAll(values);
}
return this;
}
public StrucDocTable withID(String value) {
setID(value);
return this;
}
public StrucDocTable withLanguage(String value) {
setLanguage(value);
return this;
}
public StrucDocTable withStyleCode(String... values) {
if (values!= null) {
for (String value: values) {
getStyleCode().add(value);
}
}
return this;
}
public StrucDocTable withStyleCode(Collection values) {
if (values!= null) {
getStyleCode().addAll(values);
}
return this;
}
public StrucDocTable withSummary(String value) {
setSummary(value);
return this;
}
public StrucDocTable withWidth(String value) {
setWidth(value);
return this;
}
public StrucDocTable withBorder(String value) {
setBorder(value);
return this;
}
public StrucDocTable withFrame(String value) {
setFrame(value);
return this;
}
public StrucDocTable withRules(String value) {
setRules(value);
return this;
}
public StrucDocTable withCellspacing(String value) {
setCellspacing(value);
return this;
}
public StrucDocTable withCellpadding(String value) {
setCellpadding(value);
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}