
com.github.rahulsom.cda.BN 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.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.09 at 07:53:51 PM PDT
//
package com.github.rahulsom.cda;
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 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;
/**
* The BooleanNonNull type is used where a Boolean cannot have a null value. A Boolean value can be either true or false.
*
* Java class for BN complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="BN">
* <complexContent>
* <extension base="{urn:hl7-org:v3}ANYNonNull">
* <attribute name="value" type="{urn:hl7-org:v3}bn" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BN", namespace = "urn:hl7-org:v3")
public class BN
extends ANYNonNull
{
@XmlAttribute(name = "value")
protected Boolean value;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setValue(Boolean value) {
this.value = value;
}
public BN withValue(Boolean value) {
setValue(value);
return this;
}
@Override
public BN withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public BN 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