
ihe.iti.svs._2008.ENXP Maven / Gradle / Ivy
Show all versions of ihe-iti Show documentation
package ihe.iti.svs._2008;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
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;
/**
*
* A character string token representing a part of a name.
* May have a type code signifying the role of the part in
* the whole entity name, and a qualifier code for more detail
* about the name part type. Typical name parts for person
* names are given names, and family names, titles, etc.
*
*
* Java class for ENXP complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ENXP">
* <complexContent>
* <extension base="{urn:ihe:iti:svs:2008}ST">
* <attribute name="partType" type="{urn:ihe:iti:svs:2008}EntityNamePartType" />
* <attribute name="qualifier" type="{urn:ihe:iti:svs:2008}set_EntityNamePartQualifier" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ENXP")
@XmlSeeAlso({
EnFamily.class,
EnPrefix.class,
EnGiven.class,
EnSuffix.class,
EnDelimiter.class
})
public class ENXP
extends ST
{
@XmlAttribute(name = "partType")
protected String partType;
@XmlAttribute(name = "qualifier")
protected List qualifier;
/**
* Gets the value of the partType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPartType() {
return partType;
}
/**
* Sets the value of the partType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPartType(String value) {
this.partType = value;
}
/**
* Gets the value of the qualifier 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 qualifier property.
*
*
* For example, to add a new item, do as follows:
*
* getQualifier().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getQualifier() {
if (qualifier == null) {
qualifier = new ArrayList();
}
return this.qualifier;
}
public ENXP withPartType(String value) {
setPartType(value);
return this;
}
public ENXP withQualifier(String... values) {
if (values!= null) {
for (String value: values) {
getQualifier().add(value);
}
}
return this;
}
public ENXP withQualifier(Collection values) {
if (values!= null) {
getQualifier().addAll(values);
}
return this;
}
@Override
public ENXP withReference(TEL value) {
setReference(value);
return this;
}
@Override
public ENXP withThumbnail(Thumbnail value) {
setThumbnail(value);
return this;
}
@Override
public ENXP withMediaType(String value) {
setMediaType(value);
return this;
}
@Override
public ENXP withLanguage(String value) {
setLanguage(value);
return this;
}
@Override
public ENXP withCompression(CompressionAlgorithm value) {
setCompression(value);
return this;
}
@Override
public ENXP withIntegrityCheck(byte[] value) {
setIntegrityCheck(value);
return this;
}
@Override
public ENXP withIntegrityCheckAlgorithm(IntegrityCheckAlgorithm value) {
setIntegrityCheckAlgorithm(value);
return this;
}
@Override
public ENXP withRepresentation(BinaryDataEncoding value) {
setRepresentation(value);
return this;
}
@Override
public ENXP withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public ENXP withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
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);
}
}