BeanIO 2.0.4

org.beanio.internal.config
Class ConstantConfig

java.lang.Object
  extended by org.beanio.internal.util.TreeNode<ComponentConfig>
      extended by org.beanio.internal.config.ComponentConfig
          extended by org.beanio.internal.config.PropertyConfig
              extended by org.beanio.internal.config.SimplePropertyConfig
                  extended by 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

Field Summary
 
Fields inherited from class org.beanio.internal.config.PropertyConfig
JSON_TYPE_ARRAY, JSON_TYPE_BOOLEAN, JSON_TYPE_NONE, JSON_TYPE_NUMBER, JSON_TYPE_OBJECT, JSON_TYPE_STRING
 
Fields inherited from class org.beanio.internal.config.ComponentConfig
CONSTANT, FIELD, GROUP, RECORD, SEGMENT, STREAM, WRAPPER
 
Constructor Summary
ConstantConfig()
          Constructs a new ConstantConfig.
 
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.SimplePropertyConfig
getFormat, getTypeHandler, setFormat, setTypeHandler
 
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.config.ComponentConfig
getXmlName, getXmlNamespace, getXmlPrefix, isXmlNamespaceAware, setXmlName, setXmlNamespace, setXmlNamespaceAware, setXmlPrefix
 
Methods inherited from class org.beanio.internal.util.TreeNode
add, clone, find, getChildren, getFirst, getName, iterator, print, setName, size, sort, toParamString, toString, updateReferences
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantConfig

public ConstantConfig()
Constructs a new ConstantConfig.

Method Detail

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

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim