public class GenericSegment extends AbstractSegment
log| Constructor and Description |
|---|
GenericSegment(Group parent,
String name)
Creates a genric segment
|
| Modifier and Type | Method and Description |
|---|---|
protected Type |
createNewTypeWithoutReflection(int field)
Attempts to create an instance of a field type without using reflection.
|
String |
getName()
Returns the name specified at construction time.
|
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitiongetMessage, getParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessage, getParentpublic GenericSegment(Group parent, String name)
parent - parent groupname - name of the segmentpublic String getName()
getName in interface StructuregetName in class AbstractSegmentStructure.getName()protected Type createNewTypeWithoutReflection(int field)
Attempts to create an instance of a field type without using reflection.
Note that the default implementation just returns null, and
it is not neccesary to override this method to provide any particular
behaviour. When a new field instance is needed within a segment, this
method is tried first, and if it returns null, reflection is
used instead. Implementations of this method is auto-generated by the
source generator module.
createNewTypeWithoutReflection in class AbstractSegmentfield - Field number - Note that this is zero indexed!null if not
possibleCopyright © 2001–2017 University Health Network. All rights reserved.