org.beanio.internal.config
Class ConstantConfig
java.lang.Object
org.beanio.internal.util.TreeNode<ComponentConfig>
org.beanio.internal.config.ComponentConfig
org.beanio.internal.config.PropertyConfig
org.beanio.internal.config.SimplePropertyConfig
org.beanio.internal.config.ConstantConfig
- All Implemented Interfaces:
- Cloneable, Iterable<ComponentConfig>, Replicateable
public class ConstantConfig
- extends SimplePropertyConfig
A constant component is used to add a property value to a bean object that is
not bound to any field in a stream. During marshalling, constants can be
used to identify the record mapping for a bean object if identifier
is set to true.
- Since:
- 2.0
- Author:
- Kevin Seim
Method Summary |
char |
getComponentType()
Returns the component type. |
String |
getValue()
Returns the textual representation of this fixed property value. |
void |
setValue(String value)
Sets the textual representation of this fixed property value. |
Methods inherited from class org.beanio.internal.config.PropertyConfig |
getCollection, getGetter, getJsonArrayIndex, getJsonName, getJsonType, getKey, getMaxOccurs, getMaxSize, getMinOccurs, getMinSize, getPosition, getSetter, getType, getUntil, getXmlType, isBound, isCollection, isIdentifier, isJsonArray, isLazy, isNillable, isRepeating, isSupportedChild, setBound, setCollection, setGetter, setIdentifier, setJsonArray, setJsonArrayIndex, setJsonName, setJsonType, setMaxOccurs, setMaxSize, setMinOccurs, setMinSize, setNillable, setPosition, setSetter, setType, setUntil, setXmlType |
Methods inherited from class org.beanio.internal.util.TreeNode |
add, clone, find, getChildren, getFirst, getName, iterator, print, setName, size, sort, toParamString, toString, updateReferences |
ConstantConfig
public ConstantConfig()
- Constructs a new ConstantConfig.
getComponentType
public char getComponentType()
- Description copied from class:
ComponentConfig
- Returns the component type.
- Specified by:
getComponentType
in class ComponentConfig
- Returns:
- one of
ComponentConfig.GROUP
, ComponentConfig.RECORD
, ComponentConfig.SEGMENT
, ComponentConfig.FIELD
,
ComponentConfig.CONSTANT
or ComponentConfig.WRAPPER
getValue
public String getValue()
- Returns the textual representation of this fixed property value.
- Returns:
- the property value text
setValue
public void setValue(String value)
- Sets the textual representation of this fixed property value.
- Parameters:
value
- the property value text
Copyright © 2010-2013 Kevin Seim