Package ca.uhn.hl7v2.conf.spec.message
Class StaticDef
java.lang.Object
ca.uhn.hl7v2.conf.spec.message.AbstractSegmentContainer
ca.uhn.hl7v2.conf.spec.message.StaticDef
- All Implemented Interfaces:
Iterable<ProfileStructure>
A "static message profile" (see HL7 2.5 section 2.12). Message profiles are a precise method of documenting message constraints, using a standard XML syntax defined by HL7 (introduced in version 2.5). XML message profiles define constraints on message content and structure in a well-defined manner, so that the conformance of a certain message to a certain profile can be tested automatically. There are several types of profiles:
- HL7 Profiles - the standard messages (relatively loosely constrained)
- Implementable Profiles - profiles with additional constraints such that all optionality has been removed (e.g. optional fields marked as "required" or "not supported").
- Constrainable Profiles - any profile with optionality that can be further constrained.
The MessageProfile class is a parsed object representation of the XML 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.Getter for property eventDesc.Getter for property eventType.Getter for property identifier.Getter for property metaData.Getter for property msgStructID.Getter for property msgType.Getter for property orderControl.getRole()Getter for property role.voidRemoves a PropertyChangeListener from the listener list.voidRemoves a VetoableChangeListener from the listener list.voidsetEventDesc(String eventDesc) Setter for property eventDesc.voidsetEventType(String eventType) Setter for property eventType.voidsetIdentifier(String identifier) Setter for property identifier.voidsetMetaData(MetaData metaData) voidsetMsgStructID(String msgStructID) Setter for property msgStructID.voidsetMsgType(String msgType) Setter for property msgType.voidsetOrderControl(String orderControl) Setter for property orderControl.voidSetter for property role.Methods inherited from class ca.uhn.hl7v2.conf.spec.message.AbstractSegmentContainer
getChild, getChildren, getChildrenAsList, getDescription, getImpNote, getReference, iterator, setChild, setDescription, setImpNote, setReferenceMethods 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
-
StaticDef
public StaticDef()Creates a new instance of MessageProfile
-
-
Method Details
-
addPropertyChangeListener
Adds a PropertyChangeListener to the listener list.- Overrides:
addPropertyChangeListenerin classAbstractSegmentContainer- Parameters:
l- The listener to add.
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list.- Overrides:
removePropertyChangeListenerin classAbstractSegmentContainer- Parameters:
l- The listener to remove.
-
addVetoableChangeListener
Adds a VetoableChangeListener to the listener list.- Overrides:
addVetoableChangeListenerin classAbstractSegmentContainer- Parameters:
l- The listener to add.
-
removeVetoableChangeListener
Removes a VetoableChangeListener from the listener list.- Overrides:
removeVetoableChangeListenerin classAbstractSegmentContainer- Parameters:
l- The listener to remove.
-
getMetaData
Getter for property metaData.- Returns:
- Value of property metaData.
-
setMetaData
- Throws:
ProfileException
-
getMsgType
Getter for property msgType.- Returns:
- Value of property msgType.
-
setMsgType
Setter for property msgType.- Parameters:
msgType- New value of property msgType.- Throws:
ProfileException
-
getEventType
Getter for property eventType.- Returns:
- Value of property eventType.
-
setEventType
Setter for property eventType.- Parameters:
eventType- New value of property eventType.- Throws:
ProfileException
-
getMsgStructID
Getter for property msgStructID.- Returns:
- Value of property msgStructID.
-
setMsgStructID
Setter for property msgStructID.- Parameters:
msgStructID- New value of property msgStructID.- Throws:
ProfileException
-
getOrderControl
Getter for property orderControl.- Returns:
- Value of property orderControl.
-
setOrderControl
Setter for property orderControl.- Parameters:
orderControl- New value of property orderControl.- Throws:
ProfileException
-
getEventDesc
Getter for property eventDesc.- Returns:
- Value of property eventDesc.
-
setEventDesc
Setter for property eventDesc.- Parameters:
eventDesc- New value of property eventDesc.- Throws:
ProfileException
-
getIdentifier
Getter for property identifier.- Returns:
- Value of property identifier.
-
setIdentifier
Setter for property identifier.- Parameters:
identifier- New value of property identifier.- Throws:
ProfileException
-
getRole
Getter for property role.- Returns:
- Value of property role.
-
setRole
Setter for property role.- Parameters:
eventDesc- New value of property role.- Throws:
ProfileException
-