biz.c24.io.api.data
Class ListDataType

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.ListDataType
All Implemented Interfaces:
ModelComponent, Serializable
Direct Known Subclasses:
EntitiesDataType, IDRefsDataType, NMTokensDataType

public class ListDataType
extends SimpleDataType

A simple data type representing an array of another simple data type.

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:
Serialized Form

Field Summary
 
Fields inherited from class biz.c24.io.api.data.DataType
duringParsing, hasEnumerations, hasPatternMatching, qualifierValidation
 
Constructor Summary
ListDataType()
          Constructs a new instance.
 
Method Summary
 String formatObject(Object obj, boolean external)
          Formats the supplied obj into a string, possibly using the protected formatObjectExternal(Object) method.
 int getMaxSize()
          Returns the maximum allowable size of the value.
 SimpleDataType getMemberType()
          Returns the member type.
 int getMinSize()
          Returns the minimum allowable size of the value.
 Class getValidObjectClass()
          Returns the class of valid objects of this type.
 Object parseObject(String str, boolean external)
          Parses the supplied str into an object, possibly using the protected parseObjectExternal(String, java.text.ParsePosition) method.
 void setMemberType(SimpleDataType memberType)
          Sets the member type.
 
Methods inherited from class biz.c24.io.api.data.SimpleDataType
formatObject, formatObjectExternal, getInstance, 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

ListDataType

public ListDataType()
Constructs a new instance.

Method Detail

getMemberType

public SimpleDataType getMemberType()
Returns the member type.

Returns:
The member type

setMemberType

public void setMemberType(SimpleDataType memberType)
Sets the member type.

Parameters:
memberType - The member type.

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.

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.

parseObject

public Object parseObject(String str,
                          boolean external)
                   throws ParserException
Description copied from class: SimpleDataType
Parses the supplied str into an object, possibly using the protected parseObjectExternal(String, java.text.ParsePosition) method.

Overrides:
parseObject in class SimpleDataType
Parameters:
str - The string to be parsed.
external - Whether the parseObjectExternal(String, java.text.ParsePosition) method should be used.
Returns:
The object.
Throws:
ParserException - If the parsing failed.

formatObject

public String formatObject(Object obj,
                           boolean external)
Description copied from class: SimpleDataType
Formats the supplied obj into a string, possibly using the protected formatObjectExternal(Object) method.

Overrides:
formatObject in class SimpleDataType
Parameters:
obj - The object to be formatted.
external - Whether the formatObjectExternal(Object) method should be used.
Returns:
The string.


C24 Technologies © 2002-2012: All Rights Reserved.