Package ca.uhn.hl7v2.conf.spec.message
Class Seg
java.lang.Object
ca.uhn.hl7v2.conf.spec.message.Seg
- All Implemented Interfaces:
ProfileStructure
A specification for a message segment in a conformance profile.
- Author:
- Bryan Tripp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener to the listener list.voidAdds a VetoableChangeListener to the listener list.Returns the number of fields in the segmentGetter for property description.getField(int index) Indexed getter for property field (index starts at 1 following HL7 convention).intReturns the number of fields in the segmentReturns the number of fields in the segmentGetter for property impNote.Getter for property longName.shortgetMax()Getter for property max.shortgetMin()Getter for property min.getName()Getter for property name.Getter for property predicate.Getter for property reference.getUsage()Getter for property usage.voidRemoves a PropertyChangeListener from the listener list.voidRemoves a VetoableChangeListener from the listener list.voidsetDescription(String description) Setter for property description.voidIndexed setter for property field (index starts at 1 following HL7 convention).voidsetImpNote(String impNote) Setter for property impNote.voidsetLongName(String longName) Setter for property longName.voidsetMax(short max) Setter for property max.voidsetMin(short min) Setter for property min.voidSetter for property name.voidsetPredicate(String predicate) Setter for property predicate.voidsetReference(String reference) Setter for property reference.voidSetter for property usage.
-
Constructor Details
-
Seg
public Seg()Creates a new instance of Segment
-
-
Method Details
-
addPropertyChangeListener
Adds a PropertyChangeListener to the listener list.- Parameters:
l- The listener to add.
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list.- Parameters:
l- The listener to remove.
-
addVetoableChangeListener
Adds a VetoableChangeListener to the listener list.- Parameters:
l- The listener to add.
-
removeVetoableChangeListener
Removes a VetoableChangeListener from the listener list.- Parameters:
l- The listener to remove.
-
getImpNote
Getter for property impNote.- Specified by:
getImpNotein interfaceProfileStructure- Returns:
- Value of property impNote.
-
setImpNote
Setter for property impNote.- Specified by:
setImpNotein interfaceProfileStructure- Parameters:
impNote- New value of property impNote.- Throws:
ProfileException
-
getDescription
Getter for property description.- Specified by:
getDescriptionin interfaceProfileStructure- Returns:
- Value of property description.
-
setDescription
Setter for property description.- Specified by:
setDescriptionin interfaceProfileStructure- Parameters:
description- New value of property description.- Throws:
ProfileException
-
getReference
Getter for property reference.- Specified by:
getReferencein interfaceProfileStructure- Returns:
- Value of property reference.
-
setReference
Setter for property reference.- Specified by:
setReferencein interfaceProfileStructure- Parameters:
reference- New value of property reference.- Throws:
ProfileException
-
getPredicate
Getter for property predicate.- Specified by:
getPredicatein interfaceProfileStructure- Returns:
- Value of property predicate.
-
setPredicate
Setter for property predicate.- Specified by:
setPredicatein interfaceProfileStructure- Parameters:
predicate- New value of property predicate.- Throws:
ProfileException
-
getField
Indexed getter for property field (index starts at 1 following HL7 convention).- Parameters:
index- Index of the property (starts at 1 following HL7 convention).- Returns:
- Value of the property at
index.
-
setField
Indexed setter for property field (index starts at 1 following HL7 convention).- Parameters:
index- Index of the property (starts at 1 following HL7 convention).field- New value of the property atindex.- Throws:
ProfileException
-
getName
Getter for property name.- Specified by:
getNamein interfaceProfileStructure- Returns:
- Value of property name.
-
setName
Setter for property name.- Specified by:
setNamein interfaceProfileStructure- Parameters:
name- New value of property name.- Throws:
ProfileException
-
getLongName
Getter for property longName.- Specified by:
getLongNamein interfaceProfileStructure- Returns:
- Value of property longName.
-
setLongName
Setter for property longName.- Specified by:
setLongNamein interfaceProfileStructure- Parameters:
longName- New value of property longName.- Throws:
ProfileException
-
getUsage
Getter for property usage.- Specified by:
getUsagein interfaceProfileStructure- Returns:
- Value of property usage.
-
setUsage
Setter for property usage.- Specified by:
setUsagein interfaceProfileStructure- Parameters:
usage- New value of property usage.- Throws:
ProfileException
-
getMin
Getter for property min.- Specified by:
getMinin interfaceProfileStructure- Returns:
- Value of property min.
-
setMin
Setter for property min.- Specified by:
setMinin interfaceProfileStructure- Parameters:
min- New value of property min.- Throws:
ProfileException
-
getMax
Getter for property max.- Specified by:
getMaxin interfaceProfileStructure- Returns:
- Value of property max.
-
setMax
Setter for property max.- Specified by:
setMaxin interfaceProfileStructure- Parameters:
max- New value of property max.- Throws:
ProfileException
-
getFields
Returns the number of fields in the segment -
getFieldsAsList
Returns the number of fields in the segment -
getChildrenAsList
Returns the number of fields in the segment
-