public class RecordMap extends RecordAggregation
lazy, valueAGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE| Constructor and Description |
|---|
RecordMap()
Constructs a new RecordMap.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
defines(Object value) |
Property |
getKey() |
protected Map<Object,Object> |
getMap(ParsingContext context)
Returns the collection value being parsed.
|
boolean |
hasContent(ParsingContext context)
Returns whether this parser or any of its descendant have content for marshalling.
|
boolean |
marshal(MarshallingContext context)
Marshals a record.
|
void |
setKey(Property key) |
void |
setValue(ParsingContext context,
Object value)
Sets the property value for marshaling.
|
protected void |
toParamString(StringBuilder s)
Called by
TreeNode.toString() to append node parameters to the output. |
int |
type()
Returns the property type.
|
boolean |
unmarshal(UnmarshallingContext context)
Unmarshals a record.
|
clearValue, close, createAggregationType, createValue, getAccessor, getCount, getMaxOccurs, getMinOccurs, getNullValue, getOrder, getProperty, getSelector, getType, getValue, isIdentifier, isLazy, isMaxOccursReached, isRecordGroup, isSupportedChild, matchAny, matchNext, matchNext, registerLocals, reset, restoreState, setAccessor, setCount, setIdentifier, setLazy, setType, skip, updateStategetParser, getSize, isOptional, matchesadd, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toString, updateReferencesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSize, isOptional, matchesforEach, spliteratorpublic boolean unmarshal(UnmarshallingContext context)
Parserunmarshal in interface Parserunmarshal in class DelegatingParsercontext - the UnmarshallingContextpublic boolean marshal(MarshallingContext context) throws IOException
Parsermarshal in interface Parsermarshal in class DelegatingParsercontext - the MarshallingContextIOException - if an I/O error occurspublic void setValue(ParsingContext context, Object value)
ParsersetValue in interface ParsersetValue in interface PropertysetValue in class RecordAggregationcontext - the ParsingContextvalue - the property valuepublic boolean hasContent(ParsingContext context)
ParserhasContent in interface ParserhasContent in class DelegatingParsercontext - the ParsingContextprotected Map<Object,Object> getMap(ParsingContext context)
context - the ParsingContextCollectionpublic int type()
Propertypublic boolean defines(Object value)
defines in interface Propertydefines in class RecordAggregationpublic Property getKey()
public void setKey(Property key)
protected void toParamString(StringBuilder s)
TreeNodeTreeNode.toString() to append node parameters to the output.toParamString in class RecordAggregations - the output to append