
org.hl7.v3.SC Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ihe-iti Show documentation
Show all versions of ihe-iti Show documentation
Codegen for IHE ITI Profiles.
//
// 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: 2013.12.15 at 11:19:24 AM PST
//
package org.hl7.v3;
import java.io.Serializable;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
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;
/**
*
* An ST that optionally may have a code attached.
* The text must always be present if a code is present. The
* code is often a local code.
*
*
* Java class for SC complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SC">
* <complexContent>
* <extension base="{urn:hl7-org:v3}ST">
* <attribute name="code" type="{urn:hl7-org:v3}cs" />
* <attribute name="codeSystem" type="{urn:hl7-org:v3}uid" />
* <attribute name="codeSystemName" type="{urn:hl7-org:v3}st" />
* <attribute name="codeSystemVersion" type="{urn:hl7-org:v3}st" />
* <attribute name="displayName" type="{urn:hl7-org:v3}st" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SC", namespace = "urn:hl7-org:v3")
public class SC
extends ST
{
@XmlAttribute(name = "code")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String code;
@XmlAttribute(name = "codeSystem")
protected String codeSystem;
@XmlAttribute(name = "codeSystemName")
protected String codeSystemName;
@XmlAttribute(name = "codeSystemVersion")
protected String codeSystemVersion;
@XmlAttribute(name = "displayName")
protected String displayName;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* Gets the value of the codeSystem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodeSystem() {
return codeSystem;
}
/**
* Sets the value of the codeSystem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodeSystem(String value) {
this.codeSystem = value;
}
/**
* Gets the value of the codeSystemName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodeSystemName() {
return codeSystemName;
}
/**
* Sets the value of the codeSystemName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodeSystemName(String value) {
this.codeSystemName = value;
}
/**
* Gets the value of the codeSystemVersion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodeSystemVersion() {
return codeSystemVersion;
}
/**
* Sets the value of the codeSystemVersion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodeSystemVersion(String value) {
this.codeSystemVersion = value;
}
/**
* Gets the value of the displayName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDisplayName() {
return displayName;
}
/**
* Sets the value of the displayName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDisplayName(String value) {
this.displayName = value;
}
public SC withCode(String value) {
setCode(value);
return this;
}
public SC withCodeSystem(String value) {
setCodeSystem(value);
return this;
}
public SC withCodeSystemName(String value) {
setCodeSystemName(value);
return this;
}
public SC withCodeSystemVersion(String value) {
setCodeSystemVersion(value);
return this;
}
public SC withDisplayName(String value) {
setDisplayName(value);
return this;
}
@Override
public SC withMediaType(String value) {
setMediaType(value);
return this;
}
@Override
public SC withLanguage(String value) {
setLanguage(value);
return this;
}
@Override
public SC withCompression(CompressionAlgorithm value) {
setCompression(value);
return this;
}
@Override
public SC withIntegrityCheck(byte[] value) {
setIntegrityCheck(value);
return this;
}
@Override
public SC withIntegrityCheckAlgorithm(IntegrityCheckAlgorithm value) {
setIntegrityCheckAlgorithm(value);
return this;
}
@Override
public SC withContent(Serializable... values) {
if (values!= null) {
for (Serializable value: values) {
getContent().add(value);
}
}
return this;
}
@Override
public SC withContent(Collection values) {
if (values!= null) {
getContent().addAll(values);
}
return this;
}
@Override
public SC withRepresentation(BinaryDataEncoding value) {
setRepresentation(value);
return this;
}
@Override
public SC withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public SC 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy