local.tomas.common.xml.impl
Class PrimitiveTypeHandler
java.lang.Object
local.tomas.common.xml.XMLTypeHandler
local.tomas.common.xml.impl.PrimitiveTypeHandler
- Direct Known Subclasses:
- BooleanTypeHandler, ByteTypeHandler, CharacterTypeHandler, DoubleTypeHandler, FloatTypeHandler, IntegerTypeHandler, LongTypeHandler, ShortTypeHandler
public abstract class PrimitiveTypeHandler
- extends XMLTypeHandler
Base class for type handlers.
- Author:
- tomas
| Methods inherited from class local.tomas.common.xml.XMLTypeHandler |
getArraySize, getArrayType, getArrayTypeHandler, getName, getType, marshall, marshall, marshallArrayElements, marshallNullPrefix, marshallNullSuffix, marshallPrefix, marshallRef, marshallSuffix, match, newArray, newInstance, newInstance, newInstance, setArrayElement, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimitiveTypeHandler
protected PrimitiveTypeHandler(Class<?> type,
Class<?> arrayType)
- Constructor.
- Parameters:
type - class handledarrayType - array type of class handled
marshallValue
protected void marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
- Description copied from class:
XMLTypeHandler
- Generate XML description of object value.
- Specified by:
marshallValue in class XMLTypeHandler
- Parameters:
type - - object typesrc - - the objectgen - - used to generate XML tokens
- Throws:
XMLException
Copyright © 2007 null. All Rights Reserved.