|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.parser.NodeDefinition
public abstract class NodeDefinition
The NodeDefinition is the base class for classes used to make up a stream definition's internal tree structure.
All classes and subclasses used to define a stream may be shared across multiple threads and must be thread-safe.
| Constructor Summary | |
|---|---|
NodeDefinition()
|
|
| Method Summary | |
|---|---|
abstract NodeDefinition |
findDefinitionFor(Object bean)
Returns a record definition (i.e. |
abstract Collection<NodeDefinition> |
getChildren()
Returns a list of this node's children. |
int |
getMaxOccurs()
Returns the maximum number of time this node must appear within the context of its parent, or -1 for unbounded. |
int |
getMinOccurs()
Returns the minimum number of times this node must appear within the context of its parent. |
String |
getName()
Returns the name of the node. |
int |
getOrder()
Returns the order in which this node must appear within the context of its parent. |
abstract boolean |
isRecordDefinition()
Returns true if this node is a leaf node, or in this case a record definition. |
void |
setMaxOccurs(int maxOccurs)
Sets the maximum number of times this node must appear within the context of its parent. |
void |
setMinOccurs(int minOccurs)
Sets the minimum number of times this node must appear within the context of its parent. |
void |
setName(String name)
Sets the name of this node. |
void |
setOrder(int order)
Sets the order in which this node must appear within the context of its parent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeDefinition()
| Method Detail |
|---|
public abstract Collection<NodeDefinition> getChildren()
public abstract boolean isRecordDefinition()
public abstract NodeDefinition findDefinitionFor(Object bean)
bean - the bean to format
public String getName()
public void setName(String name)
name - the new name of this nodepublic int getMinOccurs()
public void setMinOccurs(int minOccurs)
minOccurs - the new minimum number of occurrencespublic int getMaxOccurs()
public void setMaxOccurs(int maxOccurs)
maxOccurs - the maximum number of occurrencespublic int getOrder()
public void setOrder(int order)
order -
|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||