BeanIO 1.2.3

org.beanio.config
Class NodeConfig

java.lang.Object
  extended by org.beanio.config.NodeConfig
Direct Known Subclasses:
GroupConfig, RecordConfig

public abstract class NodeConfig
extends Object

Base class for record and record group configuration settings.

Since:
1.0
Author:
Kevin Seim

Field Summary
static char GROUP
          The node type of a record group
static char RECORD
          The node type of a record
 
Constructor Summary
NodeConfig()
           
 
Method Summary
 Integer getMaxOccurs()
          Returns the maximum number of times this node may appear in an input stream.
 Integer getMinOccurs()
          Returns the minimum number of times this node must appear in an input stream.
 String getName()
          Returns the name of this node.
 int getOrder()
          Returns this node's order.
abstract  char getType()
          Returns the type of this node.
 void setMaxOccurs(Integer maxOccurs)
          Sets the maximum number of times this nodes must appear in an input stream.
 void setMinOccurs(Integer minOccurs)
          Sets the minimum number of times this nodes must appear in an input stream.
 void setName(String name)
          Sets the name of this node.
 void setOrder(int order)
          Sets the order of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECORD

public static final char RECORD
The node type of a record

See Also:
Constant Field Values

GROUP

public static final char GROUP
The node type of a record group

See Also:
Constant Field Values
Constructor Detail

NodeConfig

public NodeConfig()
Method Detail

getType

public abstract char getType()
Returns the type of this node.

Returns:
RECORD or GROUP

getName

public String getName()
Returns the name of this node.

Returns:
the node name

setName

public void setName(String name)
Sets the name of this node.

Parameters:
name -

getOrder

public int getOrder()
Returns this node's order. Defaults to 0.

Returns:
the node order

setOrder

public void setOrder(int order)
Sets the order of this node.

Parameters:
order - the node order

getMinOccurs

public Integer getMinOccurs()
Returns the minimum number of times this node must appear in an input stream. Returns null if not configured.

Returns:
the minimum occurrences of this node

setMinOccurs

public void setMinOccurs(Integer minOccurs)
Sets the minimum number of times this nodes must appear in an input stream.

Parameters:
minOccurs - the minimum occurrences of this node

getMaxOccurs

public Integer getMaxOccurs()
Returns the maximum number of times this node may appear in an input stream. Returns null if not configured.

Returns:
the maximum occurrences of this node

setMaxOccurs

public void setMaxOccurs(Integer maxOccurs)
Sets the maximum number of times this nodes must appear in an input stream.

Parameters:
maxOccurs - the maximum occurrences of this node

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim