package org.hl7.v3;
import java.io.Serializable;
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 javax.xml.bind.annotation.XmlValue;
/**
*
* Binary data is a raw block of bits. Binary data is a
* protected type that MUST not be used outside the data
* type specification.
*
*
* <p>Java class for BIN complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="BIN">
* <complexContent>
* <extension base="{urn:hl7-org:v3}ANY">
* <attribute name="representation" type="{urn:hl7-org:v3}BinaryDataEncoding" default="TXT" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BIN")
@XmlSeeAlso({
ED.class
})
public abstract class BIN
implements Serializable
{
/**
*
*/
private static final long serialVersionUID = 1L;
@XmlValue
protected String content;
public void setContent(String content) {
content = content.replace((char) 26, ' ');
this.content = content;
}
public String content() {
return content;
}
@XmlAttribute
protected BinaryDataEncoding representation;
/**
* Gets the value of the representation property.
*
* @return
* possible object is
* {@link BinaryDataEncoding }
*
*/
public BinaryDataEncoding getRepresentation() {
if (representation == null) {
return BinaryDataEncoding.TXT;
} else {
return representation;
}
}
/**
* Sets the value of the representation property.
*
* @param value
* allowed object is
* {@link BinaryDataEncoding }
*
*/
public void setRepresentation(BinaryDataEncoding value) {
this.representation = value;
}
}