public interface Group extends Structure
Modifier and Type | Method and Description |
---|---|
String |
addNonstandardSegment(String name)
Expands the group definition to include a segment that is not
defined by HL7 to be part of this group (eg an unregistered Z segment).
|
String |
addNonstandardSegment(String name,
int theIndex)
Expands the group definition to include a segment that is not
defined by HL7 to be part of this group (eg an unregistered Z segment).
|
Structure |
get(String name)
Returns the named structure.
|
Structure |
get(String name,
int rep)
Returns a particular repetition of the named Structure.
|
Structure[] |
getAll(String name)
Returns an array of Structure objects by name.
|
Class<? extends Structure> |
getClass(String name)
Returns the Class of the Structure at the given name index.
|
String[] |
getNames()
Returns an ordered array of the names of the Structures in this
Group.
|
boolean |
isChoiceElement(String name)
Returns true if the named structure is a "choice element".
|
boolean |
isGroup(String name)
Returns true if the named structure is a group.
|
boolean |
isRepeating(String name)
Returns true if the named structure is repeating.
|
boolean |
isRequired(String name)
Returns true if the named structure is required.
|
getMessage, getName, getParent
accept, isEmpty, provideLocation
Structure[] getAll(String name) throws HL7Exception
name
- of the structureHL7Exception
- if the named Structure is not part of this Group.Structure get(String name) throws HL7Exception
name
- of the structureHL7Exception
- if the named Structure is not part of this Group.Structure get(String name, int rep) throws HL7Exception
name
- name of the structurerep
- repetition (zero-based)HL7Exception
- if the named Structure is not part of this group,
if the structure is not repeatable and the given rep is > 0,
or if the given repetition number is more than one greater than the
existing number of repetitions.boolean isRequired(String name) throws HL7Exception
name
- name of the structure nested in this groupHL7Exception
- if the named Structure is not part of this groupboolean isRepeating(String name) throws HL7Exception
name
- name of the structure nested in this groupHL7Exception
- if the named Structure is not part of this groupboolean isChoiceElement(String name) throws HL7Exception
name
- name of the structure nested in this groupHL7Exception
- if the named Structure is not part of this groupboolean isGroup(String name) throws HL7Exception
name
- name of the structure nested in this groupHL7Exception
- if the named Structure is not part of this groupString[] getNames()
get(name)
.Class<? extends Structure> getClass(String name)
name
- name of the structure nested in this groupString addNonstandardSegment(String name) throws HL7Exception
name
- name of the segmentHL7Exception
- if the segment could not be addedString addNonstandardSegment(String name, int theIndex) throws HL7Exception
name
- name of the segmenttheIndex
- index (zero-based) at which to insert this segmentHL7Exception
- if the segment could not be addedCopyright © 2001–2017 University Health Network. All rights reserved.