|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.common.xml.XMLTypeHandler
local.tomas.common.xml.impl.DefaultTypeHandler
public class DefaultTypeHandler
Default type handler. This class provides default implementations of type handler methods.
| Field Summary |
|---|
| Fields inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
arrayType, arrayTypeHandler, name, type |
| Constructor Summary | |
|---|---|
DefaultTypeHandler(Class type)
Constructor. |
|
| Method Summary | |
|---|---|
protected int |
getArraySize(Object src)
Get size of array. |
protected void |
marshallArrayElements(Class type,
Object src,
XMLTokenGenerator gen)
Generate XML description of array elements. |
protected void |
marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
Generate XML description of object value. |
protected void |
setArrayElement(Object dest,
int index,
Object value)
Set array component. |
| Methods inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
getArrayType, getArrayTypeHandler, getName, getType, marshall, marshall, marshallNullPrefix, marshallNullSuffix, marshallPrefix, marshallRef, marshallSuffix, match, newArray, newInstance, newInstance, newInstance, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTypeHandler(Class type)
type - type handled| Method Detail |
|---|
protected void marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
XMLTypeHandler
marshallValue in class XMLTypeHandlertype - - object typesrc - - the objectgen - - used to generate XML tokens
XMLExceptionprotected int getArraySize(Object src)
XMLTypeHandler
getArraySize in class XMLTypeHandlersrc - - the array
protected void marshallArrayElements(Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
XMLTypeHandler
marshallArrayElements in class XMLTypeHandlertype - - the array typesrc - - the arraygen - - used to generate XML tokens
XMLException
protected void setArrayElement(Object dest,
int index,
Object value)
throws XMLException
XMLTypeHandler
setArrayElement in class XMLTypeHandlerdest - - the arrayindex - - the index within the arrayvalue - - the value to assign
XMLException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||