|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.util.TreeNode<ComponentConfig> org.beanio.internal.config.ComponentConfig
public abstract class ComponentConfig
The base class for nodes that that make up a stream configuration- groups, records, segments, fields, constants and wrappers. Nodes are organized into a tree structure.
The following attributes apply to XML formatted streams only:
The following attributes are set during compilation, and are meant for internal use only:
Field Summary | |
---|---|
static char |
CONSTANT
Constant component type |
static char |
FIELD
Field component type |
static char |
GROUP
Group component type |
static char |
RECORD
Record component type |
static char |
SEGMENT
Segment component type |
static char |
STREAM
Stream component type |
static char |
WRAPPER
Wrapper component type |
Constructor Summary | |
---|---|
ComponentConfig()
Constucts a new ComponentConfig. |
Method Summary | |
---|---|
abstract char |
getComponentType()
Returns the component type. |
String |
getXmlName()
Returns XML element or attribute name of this component. |
String |
getXmlNamespace()
Returns the XML namespace of this component. |
String |
getXmlPrefix()
Returns the XML prefix for the namespace assigned to this component. |
boolean |
isXmlNamespaceAware()
Returns whetther this component is namespace aware. |
void |
setXmlName(String xmlName)
Sets the XML element or attribute name of this component. |
void |
setXmlNamespace(String xmlNamespace)
Sets the XML namespace of this component. |
void |
setXmlNamespaceAware(boolean xmlNamespaceAware)
Sets whether this component is namespace aware. |
void |
setXmlPrefix(String xmlPrefix)
Sets the XML prefix for the namespace assigned to this component. |
Methods inherited from class org.beanio.internal.util.TreeNode |
---|
add, clone, find, getChildren, getFirst, getName, isSupportedChild, iterator, print, setName, size, sort, toParamString, toString, updateReferences |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char GROUP
public static final char RECORD
public static final char SEGMENT
public static final char FIELD
public static final char CONSTANT
public static final char WRAPPER
public static final char STREAM
Constructor Detail |
---|
public ComponentConfig()
Method Detail |
---|
public abstract char getComponentType()
GROUP
, RECORD
, SEGMENT
, FIELD
,
CONSTANT
or WRAPPER
public String getXmlName()
public void setXmlName(String xmlName)
xmlName
- the XML element or attribute namepublic String getXmlNamespace()
public void setXmlNamespace(String xmlNamespace)
xmlNamespace
- the XML namespacepublic String getXmlPrefix()
public void setXmlPrefix(String xmlPrefix)
xmlPrefix
- the XML namespace prefixpublic boolean isXmlNamespaceAware()
public void setXmlNamespaceAware(boolean xmlNamespaceAware)
xmlNamespaceAware
- true if this component is namespace aware
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |