BeanIO 2.0.4

org.beanio.internal.parser
Class Aggregation

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
All Implemented Interfaces:
Cloneable, Iterable<Component>, Iteration, Parser, Property, Replicateable
Direct Known Subclasses:
CollectionParser, MapParser

public abstract class Aggregation
extends DelegatingParser
implements Property, Iteration

Base class for parser components capable of aggregating descendant properties.

Since:
2.0.1
Author:
Kevin Seim

Field Summary
protected  int maxOccurs
           
protected  int minOccurs
           
 
Fields inherited from interface org.beanio.internal.parser.Property
AGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE
 
Constructor Summary
Aggregation()
          Constructs a new Aggregation.
 
Method Summary
 PropertyAccessor getAccessor()
           
 int getMaxOccurs()
           
 int getMinOccurs()
           
 boolean isIdentifier()
          Returns whether this parser or any descendant of this parser is used to identify a record during unmarshalling.
 boolean isLazy()
          Returns whether this node must exist during unmarshalling.
abstract  boolean isProperty()
          Returns whether this aggregation is a property of its parent bean object.
 void setAccessor(PropertyAccessor accessor)
           
 void setIdentifier(boolean identifier)
           
 void setMaxOccurs(int maxOccurs)
           
 void setMinOccurs(int minOccurs)
           
 
Methods inherited from class org.beanio.internal.parser.DelegatingParser
clearValue, getParser, getSize, getValue, hasContent, marshal, matches, setValue, unmarshal
 
Methods inherited from class org.beanio.internal.parser.ParserComponent
isSupportedChild
 
Methods inherited from class org.beanio.internal.parser.Component
registerLocals
 
Methods inherited from class org.beanio.internal.util.TreeNode
add, clone, find, getChildren, getFirst, getName, iterator, print, setName, size, sort, toParamString, 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
clearValue, createValue, defines, getName, getType, getValue, setType, setValue, type
 
Methods inherited from interface org.beanio.internal.parser.Iteration
getIterationIndex, getIterationSize
 
Methods inherited from interface org.beanio.internal.parser.Parser
getName
 

Field Detail

minOccurs

protected int minOccurs

maxOccurs

protected int maxOccurs
Constructor Detail

Aggregation

public Aggregation()
Constructs a new Aggregation.

Method Detail

isProperty

public abstract boolean isProperty()
Returns whether this aggregation is a property of its parent bean object.

Returns:
true if this a property, false otherwise

isLazy

public boolean isLazy()
Description copied from interface: Parser
Returns whether this node must exist during unmarshalling.

Specified by:
isLazy in interface Parser
Overrides:
isLazy in class DelegatingParser
Returns:
true if this node is optional during unmarshalling, false otherwise

isIdentifier

public boolean isIdentifier()
Description copied from interface: Parser
Returns whether this parser or any descendant of this parser is used to identify a record during unmarshalling.

Specified by:
isIdentifier in interface Parser
Specified by:
isIdentifier in interface Property
Overrides:
isIdentifier in class DelegatingParser
Returns:
true if this parser or any descendant is used to identify a record

setIdentifier

public void setIdentifier(boolean identifier)
Specified by:
setIdentifier in interface Property
Throws:
UnsupportedOperationException

getAccessor

public PropertyAccessor getAccessor()
Specified by:
getAccessor in interface Property

setAccessor

public void setAccessor(PropertyAccessor accessor)
Specified by:
setAccessor in interface Property

getMinOccurs

public int getMinOccurs()

setMinOccurs

public void setMinOccurs(int minOccurs)

getMaxOccurs

public int getMaxOccurs()

setMaxOccurs

public void setMaxOccurs(int maxOccurs)

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim