biz.c24.io.api.data
Class BooleanDataType

java.lang.Object
  extended by biz.c24.io.api.data.DataType
      extended by biz.c24.io.api.data.SimpleDataType
          extended by biz.c24.io.api.data.AtomicDataType
              extended by biz.c24.io.api.data.BooleanDataType
All Implemented Interfaces:
ModelComponent, Serializable

public class BooleanDataType
extends AtomicDataType

A simple data type representing a primitive boolean.

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
The W3C Schema Specification, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class biz.c24.io.api.data.AtomicDataType
AtomicDataType.FinalEnum
 
Field Summary
 
Fields inherited from class biz.c24.io.api.data.DataType
duringParsing, hasEnumerations, hasPatternMatching, qualifierValidation
 
Constructor Summary
BooleanDataType()
          Constructs a new instance.
 
Method Summary
 String formatObjectOverride(Object obj)
           
 int getBitLength()
          Returns the bit length.
 String getFalseValue()
          Get the String value representating 'false'.
static DataType getInstance()
          Returns a singleton instance.
 int getMaxSize()
          Returns the maximum allowable size of the value.
 int getMinSize()
          Returns the minimum allowable size of the value.
 String getTrueValue()
          Get the String value representing 'true'.
 Class getValidObjectClass()
          Returns the class of valid objects of this type.
 Object parseObject(String str, ParsePosition pp)
          Parses the supplied str into an object.
 void setBitLength(int bitLength)
          Sets the bit length.
 void setFalseValue(String falseValue)
          Set the value representating 'false'.
 void setTrueValue(String trueValue)
          Set the value representating 'true'.
 
Methods inherited from class biz.c24.io.api.data.AtomicDataType
formatObject, getFinal, getLocale, getPad, getPadAmount, getPadJustification, getWhiteSpace, parseObject, setFinal, setLocale, setPad, setPadAmount, setPadJustification, setWhiteSpace
 
Methods inherited from class biz.c24.io.api.data.SimpleDataType
formatObject, formatObjectExternal, getMaxExclusive, getMaxInclusive, getMinExclusive, getMinInclusive, isComplex, isSimple, isSizeFixed, parseObject, parseObjectExternal, setMaxExclusive, setMaxInclusive, setMinExclusive, setMinInclusive, validateProperties
 
Methods inherited from class biz.c24.io.api.data.DataType
addDerivedType, addValidator, addValidator, derivedTypeKeySet, getAnnotation, getDatabaseColumnName, getDerivedType, getDerivedType, getDerivedTypes, getDescription, getEnumeration, getInitiator, getModel, getName, getNullDefiningElementDecl, getOriginalName, getOriginalPatternMatch, getPatternMatch, getPatternType, getTerminator, getValidator, getValidatorCount, getValidatorIndex, hasDerivedTypes, isLocal, isValidObjectClass, removeDerivedType, removeValidator, setAnnotation, setDatabaseColumnName, setInitiator, setLocal, setModel, setName, setOriginalName, setOriginalPatternMatch, setPatternMatch, setPatternType, setTerminator, toString, validate, validateProperties, validateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanDataType

public BooleanDataType()
Constructs a new instance.

Method Detail

getInstance

public static DataType getInstance()
Returns a singleton instance.

Returns:
A singleton.

getMinSize

public int getMinSize()
Description copied from class: SimpleDataType
Returns the minimum allowable size of the value.

Overrides:
getMinSize in class SimpleDataType
Returns:
The minimum size.

getMaxSize

public int getMaxSize()
Description copied from class: SimpleDataType
Returns the maximum allowable size of the value.

Overrides:
getMaxSize in class SimpleDataType
Returns:
The maximum size or -1 if the size is unbounded.

getTrueValue

public String getTrueValue()
Get the String value representing 'true'.

Returns:
The 'true' value.

getFalseValue

public String getFalseValue()
Get the String value representating 'false'.

Returns:
The 'false' value.

setTrueValue

public void setTrueValue(String trueValue)
Set the value representating 'true'.

Parameters:
trueValue - The new value.

setFalseValue

public void setFalseValue(String falseValue)
Set the value representating 'false'.

Parameters:
falseValue - The new value.

getBitLength

public int getBitLength()
Returns the bit length.

Returns:
The bit length.

setBitLength

public void setBitLength(int bitLength)
Sets the bit length.

Parameters:
bitLength - The new value.

parseObject

public Object parseObject(String str,
                          ParsePosition pp)
Parses the supplied str into an object.

Parameters:
str - The string to be parsed.
pp - The index at which parsing should start and, on the methods return, either the index at which parsing finished or the index at which an error occurred.
Returns:
The object, or null if parsing failed.

formatObjectOverride

public String formatObjectOverride(Object obj)
Specified by:
formatObjectOverride in class AtomicDataType

getValidObjectClass

public Class getValidObjectClass()
Description copied from class: DataType
Returns the class of valid objects of this type.

Overrides:
getValidObjectClass in class SimpleDataType
Returns:
The class.


C24 Technologies © 2002-2012: All Rights Reserved.