public interface IGroup
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(ISegmentKey enumSegments,
IGroup objGroup)
Adds the group in Collection of data value.
|
void |
addSegment(ISegmentKey enumSegments,
ISegment objSegment)
Adds segment in multi valued paired collection.
|
ISingleCollection<IGroup> |
getGroup(ISegmentKey enumGroup)
Gives collection of group of name enumGroup as passed by user.
|
IMap |
getGroupMap(ISegmentKey enumGroupName)
Retrieves Map of specified Group name.
|
ISegmentKey |
getName()
Return SegmentKey.
|
ISingleCollection<ISegment> |
getSegment(ISegmentKey enumSegments)
Gives collection of segment of name enumSegments as passed by user.
|
ISingleCollection<ISegment> |
getSegmentCollection()
Retrieves collection of ISegment.
|
ISegmentSet |
getSegmentSet()
Retrieves all segments present in this group
|
int |
populate(ISegmentSet objSegmentSet)
Populates the Segment Set.
|
void |
setName(ISegmentKey enumName)
Sets the name of group.
|
int |
size()
Returns the size of the group
|
boolean |
validate()
Validates HL7 Message objects.
|
int |
writeToXML(javax.xml.stream.XMLEventWriter eventWriter)
Uses to write to XML
|
int populate(ISegmentSet objSegmentSet) throws GroupMissingException
GroupMissingExceptionvoid addSegment(ISegmentKey enumSegments, ISegment objSegment)
enumSegments - Key that is to be added to collectionobjSegment - Value of the key.void addGroup(ISegmentKey enumSegments, IGroup objGroup)
enumSegments - - object of enumSegment .objGroup - - object of Group.void setName(ISegmentKey enumName)
enumName - - object of enumName.ISegmentKey getName()
ISegmentSet getSegmentSet() throws InvalidMessageException
InvalidMessageExceptionISingleCollection<ISegment> getSegmentCollection()
ISingleCollection<IGroup> getGroup(ISegmentKey enumGroup)
enumGroup - Name of group.ISingleCollection<ISegment> getSegment(ISegmentKey enumSegments)
enumSegments - Name of Segment.boolean validate()
throws InvalidMessageException
InvalidMessageException - Thrown when Message validation fails.int writeToXML(javax.xml.stream.XMLEventWriter eventWriter)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
eventWriter - object of eventWriter.java.io.IOExceptionjavax.xml.stream.XMLStreamExceptionint size()
IMap getGroupMap(ISegmentKey enumGroupName)
enumGroupName - Object of ISegmentKey provides name of Group