Package ca.uhn.hl7v2.model
Class AbstractComposite
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
- Direct Known Subclasses:
GenericComposite
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(MessageVisitor visitor, Location location) Callback method for the visitor.voidclear()Clears all data from this typeprotected <T extends Type>
TbooleanisEmpty()Returns true if this Visitable has actual contentprovideLocation(Location location, int index, int repetition) Reusing the location of this object's parent, this method returns its own location within the message.Methods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, getName, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Composite
getComponent, getComponentsMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, getName, parse
-
Constructor Details
-
AbstractComposite
-
-
Method Details
-
clear
Description copied from class:AbstractTypeClears all data from this type- Specified by:
clearin interfaceType- Overrides:
clearin classAbstractType
-
getTyped
-
isEmpty
Description copied from class:AbstractTypeReturns true if this Visitable has actual content- Specified by:
isEmptyin interfaceVisitable- Overrides:
isEmptyin classAbstractType- Returns:
- true if Visitable is empty
- Throws:
HL7Exception- if an error occurred while determining emptiness
-
accept
Description copied from interface:VisitableCallback method for the visitor. This method is supposed to either directly call one of the visitors methods, passingthisas parameter, or traverse through a hierarchical substructure and call accept(MessageVisitor) for each visited element.- Specified by:
acceptin interfaceVisitable- Parameters:
visitor- MessageVisitor instance to be called backlocation- location of this object- Returns:
trueif the visit process shall continue- Throws:
HL7Exception- if a problem occurred during visiting
-
provideLocation
Description copied from interface:VisitableReusing the location of this object's parent, this method returns its own location within the message.- Specified by:
provideLocationin interfaceVisitable- Overrides:
provideLocationin classAbstractType- Parameters:
location- the parents locationindex- index of this objectrepetition- repetition of this object- Returns:
- this objects location
-