|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.SIFTypeConverter<T>
T - The datatype that the SIFSimpleType wraps, such as Integer, Calendar, String, etc.public abstract class SIFTypeConverter<T>
| Constructor Summary | |
|---|---|
SIFTypeConverter()
|
|
| Method Summary | |
|---|---|
abstract SIFDataType |
getDataType()
|
abstract SIFSimpleType<T> |
getSIFSimpleType(java.lang.Object nativeType)
Returns a SIFSimpleType that wraps the specified native value |
abstract int |
getSQLType()
Returns a value from the |
abstract SIFSimpleType<T> |
parse(SIFFormatter formatter,
java.lang.String xmlValue)
Parses the given XML string value to into a SIFSimpleType instance |
SimpleField |
parseField(SIFElement parent,
ElementDef id,
SIFFormatter formatter,
java.lang.String xmlValue)
Parses the XML String value and returns the proper SimpleField subclass to hold the element value |
abstract java.lang.String |
toString(SIFFormatter formatter,
SIFSimpleType<T> value)
Converts the given SIFSimpleType instance to an XML string value |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SIFTypeConverter()
| Method Detail |
|---|
public abstract SIFSimpleType<T> parse(SIFFormatter formatter,
java.lang.String xmlValue)
throws ADKParsingException
formatter - The formatter to use for the specific version of SIF
being parsedxmlValue - The XML string value
ADKParsingExceptionpublic abstract SIFSimpleType<T> getSIFSimpleType(java.lang.Object nativeType)
nativeType - The native Java type for this datatype, such as a String
or Calendar. If null is passed in, a SIFSimpleType with a null
value is returned.
public abstract java.lang.String toString(SIFFormatter formatter,
SIFSimpleType<T> value)
formatter - The formatter to use for the specific version of SIF being written tovalue - a SIFSimpleType instance
public abstract SIFDataType getDataType()
SIFDataType enumpublic abstract int getSQLType()
Types
public SimpleField parseField(SIFElement parent,
ElementDef id,
SIFFormatter formatter,
java.lang.String xmlValue)
throws ADKParsingException
parent - The parent SIFElement of the fieldid - The metadata definition of the fieldformatter - the formatter to use for the specific version of SIF in usexmlValue - a String representing the XML payload used for this version of SIF
ADKParsingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||