
com.github.rahulsom.cda.StrucDocColgroup 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.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.07.06 at 04:34:47 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.Colgroup complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StrucDoc.Colgroup">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="col" type="{urn:hl7-org:v3}StrucDoc.Col"/>
* </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="span" type="{http://www.w3.org/2001/XMLSchema}string" default="1" />
* <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="align">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="left"/>
* <enumeration value="center"/>
* <enumeration value="right"/>
* <enumeration value="justify"/>
* <enumeration value="char"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="char" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="charoff" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="valign">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="top"/>
* <enumeration value="middle"/>
* <enumeration value="bottom"/>
* <enumeration value="baseline"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StrucDoc.Colgroup", namespace = "urn:hl7-org:v3", propOrder = {
"col"
})
public class StrucDocColgroup {
@XmlElement(namespace = "urn:hl7-org:v3")
protected List col;
@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 = "span")
protected String span;
@XmlAttribute(name = "width")
protected String width;
@XmlAttribute(name = "align")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String align;
@XmlAttribute(name = "char")
protected String _char;
@XmlAttribute(name = "charoff")
protected String charoff;
@XmlAttribute(name = "valign")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String valign;
/**
* 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 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 span property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSpan() {
if (span == null) {
return "1";
} else {
return span;
}
}
/**
* Sets the value of the span property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSpan(String value) {
this.span = 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 align property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlign() {
return align;
}
/**
* Sets the value of the align property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlign(String value) {
this.align = value;
}
/**
* Gets the value of the char property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getChar() {
return _char;
}
/**
* Sets the value of the char property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setChar(String value) {
this._char = value;
}
/**
* Gets the value of the charoff property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCharoff() {
return charoff;
}
/**
* Sets the value of the charoff property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCharoff(String value) {
this.charoff = value;
}
/**
* Gets the value of the valign property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValign() {
return valign;
}
/**
* Sets the value of the valign property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValign(String value) {
this.valign = value;
}
public StrucDocColgroup withCol(StrucDocCol... values) {
if (values!= null) {
for (StrucDocCol value: values) {
getCol().add(value);
}
}
return this;
}
public StrucDocColgroup withCol(Collection values) {
if (values!= null) {
getCol().addAll(values);
}
return this;
}
public StrucDocColgroup withID(String value) {
setID(value);
return this;
}
public StrucDocColgroup withLanguage(String value) {
setLanguage(value);
return this;
}
public StrucDocColgroup withStyleCode(String... values) {
if (values!= null) {
for (String value: values) {
getStyleCode().add(value);
}
}
return this;
}
public StrucDocColgroup withStyleCode(Collection values) {
if (values!= null) {
getStyleCode().addAll(values);
}
return this;
}
public StrucDocColgroup withSpan(String value) {
setSpan(value);
return this;
}
public StrucDocColgroup withWidth(String value) {
setWidth(value);
return this;
}
public StrucDocColgroup withAlign(String value) {
setAlign(value);
return this;
}
public StrucDocColgroup withChar(String value) {
setChar(value);
return this;
}
public StrucDocColgroup withCharoff(String value) {
setCharoff(value);
return this;
}
public StrucDocColgroup withValign(String value) {
setValign(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);
}
}