| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.util.TreeNode<Component>
org.beanio.internal.parser.Component
org.beanio.internal.parser.PropertyComponent
public abstract class PropertyComponent
Base class for Property implementations that hold other properties (e.g. a bean object or collection).
 
 
A PropertyComponent may only hold Property children.
| Field Summary | |
|---|---|
| protected static boolean | createMissingBeans | 
| Fields inherited from interface org.beanio.internal.parser.Property | 
|---|
| AGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE | 
| Constructor Summary | |
|---|---|
| PropertyComponent()Constructs a new PropertyComponent. | |
| Method Summary | |
|---|---|
|  PropertyAccessor | getAccessor() | 
|  Class<?> | getType() | 
|  boolean | isIdentifier()Returns whether this property or any of its descendants are used to identify a bean object. | 
|  boolean | isRequired()Returns whether this property should always be instantiated when Property.createValue(ParsingContext)is invoked. | 
| protected  boolean | isSupportedChild(Component child)Returns whether a node is a supported child of this node. | 
|  void | setAccessor(PropertyAccessor accessor) | 
|  void | setIdentifier(boolean identifier) | 
|  void | setRequired(boolean required)Sets whether this property should always be instantiated when Property.createValue(ParsingContext)is invoked. | 
|  void | setType(Class<?> type) | 
| protected  void | toParamString(StringBuilder s)Called by TreeNode.toString()to append node parameters to the output. | 
| 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, 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, getValue, setValue, type | 
| Field Detail | 
|---|
protected static boolean createMissingBeans
| Constructor Detail | 
|---|
public PropertyComponent()
| Method Detail | 
|---|
public boolean isIdentifier()
Property
isIdentifier in interface Propertypublic void setIdentifier(boolean identifier)
setIdentifier in interface Propertypublic PropertyAccessor getAccessor()
getAccessor in interface Propertypublic void setAccessor(PropertyAccessor accessor)
setAccessor in interface Propertypublic Class<?> getType()
getType in interface Propertypublic void setType(Class<?> type)
setType in interface Propertypublic boolean isRequired()
Property.createValue(ParsingContext) is invoked.
public void setRequired(boolean required)
Property.createValue(ParsingContext) is invoked.
required - true to always instantiate this property, false otherwiseprotected boolean isSupportedChild(Component child)
TreeNodeTreeNode.add(TreeNode).
isSupportedChild in class TreeNode<Component>child - the node to test
protected void toParamString(StringBuilder s)
TreeNodeTreeNode.toString() to append node parameters to the output.
toParamString in class TreeNode<Component>s - the output to append| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||