All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ihe.iti.svs._2008.BIN Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version

package ihe.iti.svs._2008;

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.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;


/**
 * 
 *             Binary data is a raw block of bits. Binary data is a
 *             protected type that MUST not be used outside the data
 *             type specification.
 *          
 * 
 * 

Java class for BIN complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="BIN">
 *   <complexContent>
 *     <extension base="{urn:ihe:iti:svs:2008}ANY">
 *       <attribute name="representation" type="{urn:ihe:iti:svs:2008}BinaryDataEncoding" default="TXT" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BIN") @XmlSeeAlso({ ED.class }) public abstract class BIN extends ANY { @XmlAttribute(name = "representation") 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; } public BIN withRepresentation(BinaryDataEncoding value) { setRepresentation(value); return this; } @Override public BIN withNullFlavor(String... values) { if (values!= null) { for (String value: values) { getNullFlavor().add(value); } } return this; } @Override public BIN 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