|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.DataType
biz.c24.io.api.data.SimpleDataType
public class SimpleDataType
A simple data type.
This is the most basic level of the structure tree.
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.
Field Summary |
---|
Fields inherited from class biz.c24.io.api.data.DataType |
---|
duringParsing, hasEnumerations, hasPatternMatching, qualifierValidation |
Method Summary | |
---|---|
String |
formatObject(Object obj)
Formats the supplied obj into a string. |
String |
formatObject(Object obj,
boolean external)
Formats the supplied obj into a string, possibly using the protected formatObjectExternal(Object) method. |
protected String |
formatObjectExternal(Object obj)
Overridden by subclasses to implement special formatting of the supplied obj into a string. |
static DataType |
getInstance()
Returns a singleton instance. |
Object |
getMaxExclusive()
Returns the maximum exclusive value (optional operation). |
Object |
getMaxInclusive()
Returns the maximum inclusive value (optional operation). |
int |
getMaxSize()
Returns the maximum allowable size of the value. |
Object |
getMinExclusive()
Returns the minimum exclusive value (optional operation). |
Object |
getMinInclusive()
Returns the minimum inclusive value (optional operation). |
int |
getMinSize()
Returns the minimum allowable size of the value. |
Class |
getValidObjectClass()
Returns the class of valid objects of this type. |
boolean |
isComplex()
Returns whether this type is complex. |
boolean |
isSimple()
Returns whether this type is simple. |
boolean |
isSizeFixed()
Returns whether the size is fixed. |
Object |
parseObject(String str)
Parses the supplied str into an object. |
Object |
parseObject(String str,
boolean external)
Parses the supplied str into an object, possibly using the protected parseObjectExternal(String, java.text.ParsePosition) method. |
protected Object |
parseObjectExternal(String str,
ParsePosition pp)
Overridden by subclasses to implement special parsing of the supplied str into an object
The parse position is used to determine where parsing should start and to notify the calling method of where
parsing finished. |
void |
setMaxExclusive(Object maxExclusive)
Sets the maximum exclusive value (optional operation). |
void |
setMaxInclusive(Object maxInclusive)
Sets the maximum inclusive value (optional operation). |
void |
setMinExclusive(Object minExclusive)
Sets the minimum exclusive value (optional operation). |
void |
setMinInclusive(Object minInclusive)
Sets the minimum inclusive value (optional operation). |
boolean |
validateProperties(Object object,
DataComponent comp,
ComplexDataObject context,
ValidationManager manager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static DataType getInstance()
public boolean isComplex()
DataType
isComplex
in class DataType
public boolean isSimple()
DataType
true
from this method if it is derived from a simple type.
isSimple
in class DataType
public Class getValidObjectClass()
DataType
getValidObjectClass
in class DataType
public int getMinSize()
public int getMaxSize()
-1
if the size is unbounded.public boolean isSizeFixed()
== #getMaxSize()
.public Object getMaxInclusive()
UnsupportedOperationException
- if this type does not represent ranged data.public void setMaxInclusive(Object maxInclusive)
maxInclusive
- The maximum inclusive value.
UnsupportedOperationException
- if this type does not represent ranged data.public Object getMinInclusive()
UnsupportedOperationException
- if this type does not represent ranged data.public void setMinInclusive(Object minInclusive)
minInclusive
- The minimum inclusive value.
UnsupportedOperationException
- if this type does not represent ranged data.public Object getMaxExclusive()
UnsupportedOperationException
- if this type does not represent ranged data.public void setMaxExclusive(Object maxExclusive)
maxExclusive
- The maximum exclusive value.
UnsupportedOperationException
- if this type does not represent ranged data.public Object getMinExclusive()
UnsupportedOperationException
- if this type does not represent ranged data.public void setMinExclusive(Object minExclusive)
minExclusive
- The minimum exclusive value.
UnsupportedOperationException
- if this type does not represent ranged data.public String formatObject(Object obj)
obj
into a string.
obj
- The object to be formatted.
public String formatObject(Object obj, boolean external)
obj
into a string, possibly using the protected formatObjectExternal(Object) method.
obj
- The object to be formatted.external
- Whether the formatObjectExternal(Object) method should be used.
public Object parseObject(String str) throws ParserException
str
into an object.
str
- The string to be parsed.
ParserException
- If the parsing failed.public Object parseObject(String str, boolean external) throws ParserException
str
into an object, possibly using the protected parseObjectExternal(String, java.text.ParsePosition) method.
str
- The string to be parsed.external
- Whether the parseObjectExternal(String, java.text.ParsePosition) method should be used.
ParserException
- If the parsing failed.protected String formatObjectExternal(Object obj)
obj
into a string.
obj
- The object to be formatter.
protected Object parseObjectExternal(String str, ParsePosition pp)
str
into an object
The parse position is used to determine where parsing should start and to notify the calling method of where
parsing finished. Note: this method does not force the parse process to use the entire input string.
str
- The string to be parsed.pp
- The parse position
public boolean validateProperties(Object object, DataComponent comp, ComplexDataObject context, ValidationManager manager) throws ValidationException
validateProperties
in class DataType
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |