ca.infoway.messagebuilder.datatype
Interface ANY<V>

Package class diagram package ANY
Type Parameters:
V - the underlying java datatype
All Superinterfaces:
BareANY, NullFlavorSupport
All Known Subinterfaces:
AD, BL, CD, CE, COLLECTION<T>, CS, CV, ED<V>, EN<V>, GTS, II, INT, IVL<T,V>, LIST<T,V>, MO, ON, PIVL, PN, PQ, QTY<V>, REAL, RTO<N,D>, SC<V>, SET<T,V>, ST, SXCM<T>, SXPR<T>, TEL, TN, TS, URG<T,V>, URL
All Known Implementing Classes:
ADImpl, ANYImpl, BLImpl, CDImpl, CEImpl, CSImpl, CVImpl, EDImpl, ENImpl, GTSImpl, IIImpl, INTImpl, IVLImpl, LISTImpl, MOImpl, ONImpl, PIVLImpl, PNImpl, PQImpl, QTYImpl, REALImpl, RTOImpl, SCImpl, SETImpl, STImpl, SXCMImpl, SXPRImpl, TELImpl, TNImpl, TSImpl, URGImpl, URLImpl

public interface ANY<V>
extends BareANY

ANY Hl7 datatype.

Defines the basic properties of every data value.

This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type.

Author:
Intelliware Development

Method Summary
 NullFlavor getNullFlavor()
          If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
 V getValue()
          Returns the value.
 boolean isNull()
          Indicates that a value is an exceptional value, or a NULL-value.
 boolean nonNull()
          Indicates that a value is a non-exceptional value of the data type.
 boolean notApplicable()
          A predicate indicating that this exceptional value is of nullFlavor not-applicable (NA), i.e., that a proper value is not meaningful in the given context.
 boolean other()
          A predicate indicating that this exceptional value is of nullFlavor other (OTH), i.e., that the required value domain does not contain the appropriate value.
 void setNullFlavor(NullFlavor nullFlavor)
          Sets a null flavor on the object.
 void setValue(V value)
          Sets a value on the ANY object.
 boolean unknown()
          A predicate indicating that this exceptional value is of nullFlavor unknown (UNK).
 
Methods inherited from interface ca.infoway.messagebuilder.datatype.BareANY
getBareValue, getDataType, setDataType
 
Methods inherited from interface ca.infoway.messagebuilder.datatype.nullflavor.NullFlavorSupport
hasNullFlavor
 

Method Detail

getValue

V getValue()

Returns the value.

Returns:
the underlying java datatype value

setValue

void setValue(V value)

Sets a value on the ANY object.

Parameters:
value - the value to set on this ANY object

nonNull

boolean nonNull()

Indicates that a value is a non-exceptional value of the data type.

When a property, RIM attribute, or message field is called mandatory this means that any non-NULL value of the type to which the property belongs has a non-NULL value for that property, in other words, a field may not be NULL, providing that its container (object, segment, etc.) is to have a non-NULL value.

Returns:
whether this object has no null flavor

getNullFlavor

NullFlavor getNullFlavor()

If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.

The null flavors are a general domain extension of all normal data types. Note the distinction between value domain of any data type and the vocabulary domain of coded data types. A vocabulary domain is a value domain for coded values, but not all value domains are vocabulary domains.

The null flavor "other" is used whenever the actual value is not in the required value domain, this may be, for example, when the value exceeds some constraints that are defined too restrictive (e.g., age less than 100 years.)

NOTE: NULL-flavors are applicable to any property of a data value or a higher-level object attribute. Where the difference of null flavors is not significant, ITS are not required to represent them. If nothing else is noted in this specification, ITS need not represent general NULL-flavors for data-value properties.

Some of these null flavors are associated with named properties that can be used as simple predicates for all data values. This is done to simplify the formulation of invariants in the remainder of this specification.

Remember the difference between semantic properties and representational "components" of data values. An ITS must only represent those components that are needed to infer the semantic properties.

The null-flavor predicates nonNull, isNull, notApplicable, unknown, and other can all be inferred from the nullFlavor property.

Specified by:
getNullFlavor in interface NullFlavorSupport
Returns:
the null flavor

setNullFlavor

void setNullFlavor(NullFlavor nullFlavor)

Sets a null flavor on the object.

Specified by:
setNullFlavor in interface NullFlavorSupport
Parameters:
nullFlavor - the null flavor to set

isNull

boolean isNull()

Indicates that a value is an exceptional value, or a NULL-value. A null value means that the information does not exist, is not available or cannot be expressed in the data type's normal value set.

Every data element has either a proper value or it is considered NULL. If (and only if) it is NULL, the isNull provides more detail as to in what way or why no proper value is supplied.

Returns:
whether this object has a null flavor

notApplicable

boolean notApplicable()

A predicate indicating that this exceptional value is of nullFlavor not-applicable (NA), i.e., that a proper value is not meaningful in the given context.

Returns:
whether this ANY object has a null flavor of "Not applicable"

unknown

boolean unknown()

A predicate indicating that this exceptional value is of nullFlavor unknown (UNK).

Returns:
whether this ANY object has a null flavor of "unknown"

other

boolean other()

A predicate indicating that this exceptional value is of nullFlavor other (OTH), i.e., that the required value domain does not contain the appropriate value.

Returns:
whether this ANY object has a null flavor of "other"


Copyright © 2013. All Rights Reserved.