Package ca.uhn.hl7v2.conf.spec.message
Class AbstractSegmentContainer
java.lang.Object
ca.uhn.hl7v2.conf.spec.message.AbstractSegmentContainer
- All Implemented Interfaces:
Iterable<ProfileStructure>
An abstraction of SegGroup and MessageProfile (both are containers for segment specs).
- Author:
- Bryan Tripp
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of AbstractSegmentContainer -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener to the listener list.voidAdds a VetoableChangeListener to the listener list.getChild(int index) Indexed getter for property structure (index starts at 1 following HL7 convention).intReturns the number of childrenGetter for property description.Getter for property impNote.Getter for property reference.iterator()voidRemoves a PropertyChangeListener from the listener list.voidRemoves a VetoableChangeListener from the listener list.voidsetChild(int index, ProfileStructure structure) Indexed setter for property structure.voidsetDescription(String description) Setter for property description.voidsetImpNote(String impNote) Setter for property impNote.voidsetReference(String reference) Setter for property reference.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractSegmentContainer
public AbstractSegmentContainer()Creates a new instance of AbstractSegmentContainer
-
-
Method Details
-
getChildrenAsList
-
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.
-
getDescription
Getter for property description.- Returns:
- Value of property description.
-
setDescription
Setter for property description.- Parameters:
description- New value of property description.- Throws:
ProfileException
-
getReference
Getter for property reference.- Returns:
- Value of property reference.
-
setReference
Setter for property reference.- Parameters:
reference- New value of property reference.- Throws:
ProfileException
-
getImpNote
Getter for property impNote.- Returns:
- Value of property impNote.
-
setImpNote
Setter for property impNote.- Parameters:
impNote- New value of property impNote.- Throws:
ProfileException
-
getChild
Indexed getter for property structure (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.
-
setChild
Indexed setter for property structure. Lengthens child list if necessary.- Parameters:
index- Index of the property (starts at 1 following HL7 convention).structure- New value of the property atindex.- Throws:
ProfileException
-
getChildren
Returns the number of children -
iterator
- Specified by:
iteratorin interfaceIterable<ProfileStructure>
-