BeanIO 2.0.4

org.beanio.internal.parser
Class ArrayParser

java.lang.Object
  extended by org.beanio.internal.util.TreeNode<Component>
      extended by org.beanio.internal.parser.Component
          extended by org.beanio.internal.parser.ParserComponent
              extended by org.beanio.internal.parser.DelegatingParser
                  extended by org.beanio.internal.parser.Aggregation
                      extended by org.beanio.internal.parser.CollectionParser
                          extended by org.beanio.internal.parser.ArrayParser
All Implemented Interfaces:
Cloneable, Iterable<Component>, Iteration, Parser, Property, Replicateable

public class ArrayParser
extends CollectionParser

Since:
2.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.internal.parser.Aggregation
maxOccurs, minOccurs
 
Fields inherited from interface org.beanio.internal.parser.Property
AGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE
 
Constructor Summary
ArrayParser()
          Constructs a new ArrayParser.
 
Method Summary
protected  Collection<Object> createCollection()
           
 Class<?> getArrayType()
           
 Object getValue(ParsingContext context)
          Returns the unmarshalled property value.
 boolean isProperty()
          Returns whether this iteration is a property of a bean object.
 void setArrayType(Class<?> arrayType)
           
 void setValue(ParsingContext context, Object value)
          Sets the property value for marshaling.
 int type()
          Returns the property type.
 
Methods inherited from class org.beanio.internal.parser.CollectionParser
clearValue, createValue, defines, getCollection, getIterationIndex, getIterationSize, getNullValue, getType, hasContent, isInvalid, marshal, matches, registerLocals, setType, toParamString, unmarshal
 
Methods inherited from class org.beanio.internal.parser.Aggregation
getAccessor, getMaxOccurs, getMinOccurs, isIdentifier, isLazy, setAccessor, setIdentifier, setMaxOccurs, setMinOccurs
 
Methods inherited from class org.beanio.internal.parser.DelegatingParser
getParser, getSize
 
Methods inherited from class org.beanio.internal.parser.ParserComponent
isSupportedChild
 
Methods inherited from class org.beanio.internal.util.TreeNode
add, clone, find, getChildren, getFirst, getName, iterator, print, setName, size, sort, toString, updateReferences
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.beanio.internal.parser.Property
getName
 
Methods inherited from interface org.beanio.internal.parser.Parser
getName
 

Constructor Detail

ArrayParser

public ArrayParser()
Constructs a new ArrayParser.

Method Detail

type

public int type()
Description copied from interface: Property
Returns the property type.

Specified by:
type in interface Property
Overrides:
type in class CollectionParser
Returns:
Property.SIMPLE, Property.COMPLEX, Property.AGGREGATION_ARRAY, Property.COLLECTION, Property.AGGREGATION_COLLECTION, or Property.MAP

isProperty

public boolean isProperty()
Description copied from class: CollectionParser
Returns whether this iteration is a property of a bean object.

Overrides:
isProperty in class CollectionParser
Returns:
true if this iteration is a property, false otherwise

getValue

public Object getValue(ParsingContext context)
Description copied from interface: Parser
Returns the unmarshalled property value.

Specified by:
getValue in interface Parser
Specified by:
getValue in interface Property
Overrides:
getValue in class CollectionParser
Parameters:
context - the ParsingContext
Returns:
the property value

setValue

public void setValue(ParsingContext context,
                     Object value)
Description copied from interface: Parser
Sets the property value for marshaling.

Specified by:
setValue in interface Parser
Specified by:
setValue in interface Property
Overrides:
setValue in class CollectionParser
Parameters:
context - the ParsingContext
value - the property value

createCollection

protected Collection<Object> createCollection()
Overrides:
createCollection in class CollectionParser

getArrayType

public Class<?> getArrayType()

setArrayType

public void setArrayType(Class<?> arrayType)

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim