|
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.PrimitiveTypeHandler
local.tomas.common.xml.impl.BooleanTypeHandler
public class BooleanTypeHandler
Type handler for boolean.
| Field Summary |
|---|
| Fields inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
arrayType, arrayTypeHandler, name, type |
| Constructor Summary | |
|---|---|
BooleanTypeHandler()
Default 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. |
Object |
newInstance(Class<?> type,
String value)
Create an instance of the type handled initialized with a string value. |
protected void |
setArrayElement(Object dest,
int index,
Object value)
Set array component. |
| Methods inherited from class local.tomas.common.xml.impl.PrimitiveTypeHandler |
|---|
marshallValue |
| Methods inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
getArrayType, getArrayTypeHandler, getName, getType, marshall, marshall, marshallNullPrefix, marshallNullSuffix, marshallPrefix, marshallRef, marshallSuffix, match, newArray, newInstance, newInstance, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanTypeHandler()
| Method Detail |
|---|
public Object newInstance(Class<?> type,
String value)
throws XMLException
XMLTypeHandler
newInstance in class XMLTypeHandlertype - - type of instancevalue - - the string value
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 | |||||||||