|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Mapping purpose.
Used to mask attribute specific fucntions from the user.
Method Summary | |
java.lang.String |
encode(java.lang.Object obj)
encode purpose. |
java.lang.String |
getElementName()
getElementName purpose. |
java.lang.Object |
getInstance(org.w3c.dom.Element value)
getInstance purpose. |
java.lang.Object |
getInstance(java.lang.String value)
getInstance purpose. |
java.lang.String |
getType()
getType purpose. |
boolean |
isClass(java.lang.Class c)
|
boolean |
isClassInstance(java.lang.Object obj)
isClassInstance purpose. |
java.lang.String |
toString(java.lang.Object obj)
|
Method Detail |
public java.lang.String getType()
Returns a constant type name.
public java.lang.Object getInstance(org.w3c.dom.Element value) throws ValidationException
Creates an instance of the appropriate type for this Mapping. This is where type-dependant magic occurs
value
- The Element to interpret.
ValidationException
public java.lang.Object getInstance(java.lang.String value) throws ValidationException
Creates an instance of the appropriate type for this Mapping. This is where type-dependant magic occurs
value
- The Element to interpret.
ValidationException
public boolean isClassInstance(java.lang.Object obj)
Tests to see if this class is of the expected type.
obj
- The object to test.
public boolean isClass(java.lang.Class c)
public java.lang.String encode(java.lang.Object obj) throws ValidationException
Creates an XML String from the obj provided, if the object is of the expected type for this mapping.
obj
- The object to try and encode.
ValidationException
public java.lang.String toString(java.lang.Object obj)
public java.lang.String getElementName()
This is the name of the element represented.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |