Sun Adapter for TCP/IP HL7

com.stc.connector.hl7.framework.spec.component
Class ComponentSpec

java.lang.Object
  extended by com.stc.connector.hl7.framework.spec.component.ComponentSpec
Direct Known Subclasses:
DataTypeSpec, FieldSpec, MessageSpec, SegmentSpec, TableSpec

public class ComponentSpec
extends java.lang.Object

Version:
cvs revision: $Revision: 1.5 $ Last Modified: $Date: 2008/04/24 14:30:38 $
Author:
Harry Liu

Field Summary
static java.lang.String OPTIONALITY_BACKWARD
           
static java.lang.String OPTIONALITY_CONDITIONAL
           
static java.lang.String OPTIONALITY_NOT_USED
           
static java.lang.String OPTIONALITY_OPTIONAL
           
static java.lang.String OPTIONALITY_REQUIRED
           
static java.lang.String OPTIONALITY_WITHDRAWN
           
static java.lang.String REPETITION_NO_REPETITION
           
static java.lang.String REPETITION_REPEAT_UPTO_NUMBER
           
static java.lang.String REPETITION_REPEATED
           
static java.lang.String version
           
static java.lang.String VERSION_ID_21
           
static java.lang.String VERSION_ID_22
           
static java.lang.String VERSION_ID_23
           
static java.lang.String VERSION_ID_231
           
static java.lang.String VERSION_ID_24
           
static java.lang.String VERSION_ID_25
           
static java.lang.String VERSION_ID_251
           
 
Constructor Summary
ComponentSpec(java.lang.String versionID, java.lang.String name)
          Constructor for ComponentSpec.
ComponentSpec(java.lang.String versionID, java.lang.String name, int minLength, int maxLength, java.lang.String optionality, java.lang.String repetition)
          Constructor for ComponentSpec.
 
Method Summary
 int getMaxLength()
          Returns the maxLength.
 int getMinLength()
          Returns the minLength.
 java.lang.String getName()
          Returns the name.
 java.lang.String getOptionality()
          Returns the optionality.
 java.lang.String getRepetition()
          Returns the repetition.
 java.lang.String getVersionID()
          Returns the versionID.
 void setMaxLength(int maxLength)
          Sets the maxLength.
 void setMinLength(int minLength)
          Sets the minLength.
 void setName(java.lang.String name)
          Sets the name.
 void setOptionality(java.lang.String optionality)
          Sets the optionality.
 void setRepetition(java.lang.String repetition)
          Sets the repetition.
 void setVersionID(java.lang.String versionID)
          Sets the versionID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static final java.lang.String version
See Also:
Constant Field Values

VERSION_ID_21

public static final java.lang.String VERSION_ID_21
See Also:
Constant Field Values

VERSION_ID_22

public static final java.lang.String VERSION_ID_22
See Also:
Constant Field Values

VERSION_ID_23

public static final java.lang.String VERSION_ID_23
See Also:
Constant Field Values

VERSION_ID_231

public static final java.lang.String VERSION_ID_231
See Also:
Constant Field Values

VERSION_ID_24

public static final java.lang.String VERSION_ID_24
See Also:
Constant Field Values

VERSION_ID_25

public static final java.lang.String VERSION_ID_25
See Also:
Constant Field Values

VERSION_ID_251

public static final java.lang.String VERSION_ID_251
See Also:
Constant Field Values

OPTIONALITY_REQUIRED

public static final java.lang.String OPTIONALITY_REQUIRED
See Also:
Constant Field Values

OPTIONALITY_OPTIONAL

public static final java.lang.String OPTIONALITY_OPTIONAL
See Also:
Constant Field Values

OPTIONALITY_CONDITIONAL

public static final java.lang.String OPTIONALITY_CONDITIONAL
See Also:
Constant Field Values

OPTIONALITY_NOT_USED

public static final java.lang.String OPTIONALITY_NOT_USED
See Also:
Constant Field Values

OPTIONALITY_BACKWARD

public static final java.lang.String OPTIONALITY_BACKWARD
See Also:
Constant Field Values

OPTIONALITY_WITHDRAWN

public static final java.lang.String OPTIONALITY_WITHDRAWN
See Also:
Constant Field Values

REPETITION_NO_REPETITION

public static final java.lang.String REPETITION_NO_REPETITION
See Also:
Constant Field Values

REPETITION_REPEATED

public static final java.lang.String REPETITION_REPEATED
See Also:
Constant Field Values

REPETITION_REPEAT_UPTO_NUMBER

public static final java.lang.String REPETITION_REPEAT_UPTO_NUMBER
See Also:
Constant Field Values
Constructor Detail

ComponentSpec

public ComponentSpec(java.lang.String versionID,
                     java.lang.String name,
                     int minLength,
                     int maxLength,
                     java.lang.String optionality,
                     java.lang.String repetition)
Constructor for ComponentSpec.

Parameters:
versionID - The versionID to set
name - The name to set
minLength -
maxLength -
optionality -
repetition -

ComponentSpec

public ComponentSpec(java.lang.String versionID,
                     java.lang.String name)
Constructor for ComponentSpec.

Parameters:
versionID - The versionID to set
name - The name to set
Method Detail

getName

public java.lang.String getName()
Returns the name.

Returns:
String

getMaxLength

public int getMaxLength()
Returns the maxLength.

Returns:
int

getMinLength

public int getMinLength()
Returns the minLength.

Returns:
int

getOptionality

public java.lang.String getOptionality()
Returns the optionality.

Returns:
String

getRepetition

public java.lang.String getRepetition()
Returns the repetition.

Returns:
String

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

setMaxLength

public void setMaxLength(int maxLength)
Sets the maxLength.

Parameters:
maxLength - The maxLength to set

setMinLength

public void setMinLength(int minLength)
Sets the minLength.

Parameters:
minLength - The minLength to set

setOptionality

public void setOptionality(java.lang.String optionality)
Sets the optionality.

Parameters:
optionality - The optionality to set

setRepetition

public void setRepetition(java.lang.String repetition)
Sets the repetition.

Parameters:
repetition - The repetition to set

getVersionID

public java.lang.String getVersionID()
Returns the versionID.

Returns:
String

setVersionID

public void setVersionID(java.lang.String versionID)
Sets the versionID.

Parameters:
versionID - The versionID to set

Sun Adapter for TCP/IP HL7