|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.SIFSimpleType<T>
T - The datatype that the SIFSimpleType wraps, such as
Integer, Calendar, String, etc.public abstract class SIFSimpleType<T>
Wraps a Java Simple Type in an immutable instance that can be used to construct SimpleFields that represent properties in SIF data objects.
| Method Summary | |
|---|---|
SimpleField<T> |
createField(SIFElement parent,
ElementDef id)
Create a SimpleField from the value that this type represents |
boolean |
equals(java.lang.Object o)
Evaluates the native wrapped value of this object to see if it equals the value of the compared object |
SIFDataType |
getDataType()
|
int |
getSQLType()
Returns a value from the |
abstract SIFTypeConverter<T> |
getTypeConverter()
Returns a type converter that can be used to create an instance of the datatype from a string |
T |
getValue()
|
int |
hashCode()
|
boolean |
isDoNotEncode()
Should the XML writer encode the value that this datatype produces? Encoding is usually only necessary for string-based datatypes |
java.lang.String |
toString()
Returns the text representation of this value in 1.x format by default. |
java.lang.String |
toString(SIFFormatter formatter)
Returns the string representation of this data field, using the specified formatter |
java.lang.String |
toString(SIFVersion version)
Returns a string in the format for the designated version |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public T getValue()
public SimpleField<T> createField(SIFElement parent,
ElementDef id)
parent - The Element that will be the parent of the fieldid - The ElementDef representing the field
public java.lang.String toString(SIFFormatter formatter)
formatter -
public java.lang.String toString(SIFVersion version)
version - The SIF Version to render this value in
public java.lang.String toString()
ADK.setTextFormatter(SIFFormatter)
toString in class java.lang.ObjectObject.toString()public abstract SIFTypeConverter<T> getTypeConverter()
public SIFDataType getDataType()
SIFDataType enumpublic int getSQLType()
Typespublic boolean isDoNotEncode()
public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||