public class Group extends java.lang.Object implements IGroup
| Constructor and Description |
|---|
Group(ISegmentKey enumGroups,
IMap objMessageMap)
This constructor creates object of MultiValuedPairedCollection and initializes the Group Name with enumGroups.
|
| 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
|
public Group(ISegmentKey enumGroups, IMap objMessageMap)
enumGroups - Name of the Group.public ISingleCollection<IGroup> getGroup(ISegmentKey enumGroup)
public ISegmentKey getName()
public void setName(ISegmentKey enumName)
public ISingleCollection<ISegment> getSegment(ISegmentKey enumSegments)
getSegment in interface IGroupenumSegments - Name of Segment.public void addGroup(ISegmentKey enumSegments, IGroup objGroup)
public void addSegment(ISegmentKey enumSegments, ISegment objSegment)
addSegment in interface IGroupenumSegments - Key that is to be added to collectionobjSegment - Value of the key.public ISegmentSet getSegmentSet()
getSegmentSet in interface IGrouppublic ISingleCollection<ISegment> getSegmentCollection()
getSegmentCollection in interface IGrouppublic int populate(ISegmentSet objSegmentSet) throws GroupMissingException
populate in interface IGroupGroupMissingExceptionpublic boolean validate()
throws InvalidMessageException
validate in interface IGroupInvalidMessageException - Thrown when Message validation fails.public IMap getGroupMap(ISegmentKey enumGroupName)
getGroupMap in interface IGroupenumGroupName - Object of ISegmentKey provides name of Group.public int size()
public int writeToXML(javax.xml.stream.XMLEventWriter eventWriter)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
writeToXML in interface IGroupeventWriter - object of eventWriter.java.io.IOExceptionjavax.xml.stream.XMLStreamException