org.vmdb.hl7
Class SNElement

java.lang.Object
  |
  +--org.vmdb.hl7.HL7Object
        |
        +--org.vmdb.hl7.HL7Element
              |
              +--org.vmdb.hl7.SNElement

public class SNElement
extends HL7Element

Structured Numeric (SN) Element.

Description: HL7 Network Connectivity For VMDB.

Copyright: Copyright (c) 2002-2003.

Company: Veterinary Medical Database (VMDB).

Used for numeric ranges and open ranges like > 100


Constructor Summary
SNElement()
          Construct a Structured Numeric Element using the default name and type constants at the default level FIELD.
SNElement(int iLevel)
          Construct a Structured Numeric Element using the default name and type constants.
 
Method Summary
 java.lang.String getComparator()
           
 java.lang.String getNum1()
           
 java.lang.String getNum2()
           
 java.lang.String getSeparator()
           
 java.lang.String getValue()
          Get the first component value.
 void setComparator(java.lang.String sComparator)
           
 void setNum1(java.lang.String sNum1)
           
 void setNum2(java.lang.String sNum2)
           
 void setSeparator(java.lang.String sSeparator)
           
 
Methods inherited from class org.vmdb.hl7.HL7Element
clear, empty, getComponent, getLevel, getType, initialize, iterator, makeElement, setComponent, setLevel, setType, setValue, size, toHL7String, toString, toXML
 
Methods inherited from class org.vmdb.hl7.HL7Object
getRule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SNElement

public SNElement(int iLevel)
Construct a Structured Numeric Element using the default name and type constants.

Parameters:
iLevel - One of the constants for specifying level as FIELD, COMPONENT, or SUBCOMPONENT. Default FIELD.

SNElement

public SNElement()
Construct a Structured Numeric Element using the default name and type constants at the default level FIELD.

Method Detail

getValue

public java.lang.String getValue()
Description copied from class: HL7Element
Get the first component value.

Many complex element types are commonly populated in only the first component. This method allows them to be accessed as if they were a simple element.

Overrides:
getValue in class HL7Element
Returns:
String value from first component.

setComparator

public void setComparator(java.lang.String sComparator)

getComparator

public java.lang.String getComparator()

setNum1

public void setNum1(java.lang.String sNum1)

getNum1

public java.lang.String getNum1()

setSeparator

public void setSeparator(java.lang.String sSeparator)

getSeparator

public java.lang.String getSeparator()

setNum2

public void setNum2(java.lang.String sNum2)

getNum2

public java.lang.String getNum2()

SourceForge.net Logo