public class ArrayParser extends CollectionParser
Type | Property and Description |
---|---|
boolean |
is
Gets the value of the property property.
|
lazy, occurs
AGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE
Constructor and Description |
---|
ArrayParser()
Constructs a new ArrayParser.
|
Modifier and Type | Method and Description |
---|---|
protected Collection<Object> |
createCollection() |
Class<?> |
getArrayType() |
Object |
getValue(ParsingContext context)
Returns the unmarshalled property value.
|
boolean |
isProperty()
Gets the value of the property property.
|
void |
setArrayType(Class<?> arrayType) |
void |
setValue(ParsingContext context,
Object value)
Sets the property value for marshaling.
|
int |
type()
Returns the property type.
|
clearValue, createValue, defines, getCollection, getIterationSize, getType, hasContent, isInvalid, length, marshal, matches, registerLocals, setType, toParamString, unmarshal
getAccessor, getIterationIndex, getMaxOccurs, getMinOccurs, getOccurs, isDynamicIteration, isIdentifier, isLazy, isOptional, marshal, setAccessor, setIdentifier, setIterationIndex, setLazy, setMaxOccurs, setMinOccurs, setOccurs, unmarshal
getParser, getSize
isSupportedChild
add, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toString, updateReferences
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public boolean isProperty
isProperty
in class CollectionParser
public int type()
Property
type
in interface Property
type
in class CollectionParser
Property.SIMPLE
, Property.COMPLEX
, Property.AGGREGATION_ARRAY
, Property.COLLECTION
,
Property.AGGREGATION_COLLECTION
, or Property.MAP
public boolean isProperty()
isProperty
in class CollectionParser
public Object getValue(ParsingContext context)
Parser
getValue
in interface Parser
getValue
in interface Property
getValue
in class CollectionParser
context
- the ParsingContext
public void setValue(ParsingContext context, Object value)
Parser
setValue
in interface Parser
setValue
in interface Property
setValue
in class CollectionParser
context
- the ParsingContext
value
- the property valueprotected Collection<Object> createCollection()
createCollection
in class CollectionParser
public Class<?> getArrayType()
public void setArrayType(Class<?> arrayType)