|
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
local.tomas.common.xml.impl.MapTypeHandler
public class MapTypeHandler
Type handler for java.util.Map.
Map| Field Summary | |
|---|---|
static String |
ENTRY_FIELD
Field name for entry. |
static String |
KEY_FIELD
Field name for key. |
static String |
VALUE_FIELD
Field name for value. |
| Fields inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
arrayType, arrayTypeHandler, name, type |
| Constructor Summary | |
|---|---|
MapTypeHandler()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
marshallPrefix(String name,
int index,
Class type,
Object src,
XMLTokenGenerator gen)
Generate start token. |
protected void |
marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
Generate XML description of object value. |
void |
setProperty(Object dest,
String name,
int index,
Object value)
Set property of an object. |
| Methods inherited from class local.tomas.common.xml.impl.DefaultTypeHandler |
|---|
getArraySize, marshallArrayElements, setArrayElement |
| Methods inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
getArrayType, getArrayTypeHandler, getName, getType, marshall, marshall, marshallNullPrefix, marshallNullSuffix, marshallRef, marshallSuffix, match, newArray, newInstance, newInstance, newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENTRY_FIELD
public static final String KEY_FIELD
public static final String VALUE_FIELD
| Constructor Detail |
|---|
public MapTypeHandler()
| Method Detail |
|---|
protected void marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
XMLTypeHandler
marshallValue in class DefaultTypeHandlertype - - object typesrc - - the objectgen - - used to generate XML tokens
XMLException
protected void marshallPrefix(String name,
int index,
Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
XMLTypeHandler
marshallPrefix in class XMLTypeHandlername - - token nameindex - - index attribute, negative values are omittedtype - - value typesrc - - valuegen - - used to generate XML tokens
XMLException
public void setProperty(Object dest,
String name,
int index,
Object value)
throws XMLException
XMLTypeHandler
setProperty in class XMLTypeHandlerdest - - the objectname - - the property nameindex - - a property indexvalue - - the new property value
XMLException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||