public abstract class SegmentBuilderSupport<T extends SegmentBuilderSupport<T>> extends PropertyBuilderSupport<T>
Modifier and Type | Method and Description |
---|---|
T |
addField(FieldBuilder field)
Adds a field to this component.
|
T |
addSegment(SegmentBuilder segment)
Adds a segment to this component.
|
protected abstract SegmentConfig |
getConfig()
Returns the configuration settings.
|
T |
key(String name)
Sets the name of a child component to use as the key for an
inline map bound to this record or segment.
|
T |
value(String name)
Sets the name of a child component to return as the value for this
record or segment in lieu of a bound class.
|
collection, getter, lazy, maxOccurs, me, minOccurs, occurs, occurs, setter, type, xmlName, xmlNamespace, xmlPrefix, xmlType
protected abstract SegmentConfig getConfig()
PropertyBuilderSupport
getConfig
in class PropertyBuilderSupport<T extends SegmentBuilderSupport<T>>
public T key(String name)
name
- the component namepublic T value(String name)
name
- the component namepublic T addSegment(SegmentBuilder segment)
segment
- the segment to addpublic T addField(FieldBuilder field)
field
- the field to add