org.beanio.internal.parser
Class Aggregation
java.lang.Object
org.beanio.internal.util.TreeNode<Component>
org.beanio.internal.parser.Component
org.beanio.internal.parser.ParserComponent
org.beanio.internal.parser.DelegatingParser
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
Constructor Summary |
Aggregation()
Constructs a new Aggregation. |
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 interface org.beanio.internal.parser.Parser |
getName |
minOccurs
protected int minOccurs
maxOccurs
protected int maxOccurs
Aggregation
public Aggregation()
- Constructs a new Aggregation.
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)
Copyright © 2010-2013 Kevin Seim