local.tomas.common.xml.impl
Class DateTypeHandler
java.lang.Object
local.tomas.common.xml.XMLTypeHandler
local.tomas.common.xml.impl.DefaultTypeHandler
local.tomas.common.xml.impl.DateTypeHandler
public class DateTypeHandler
- extends DefaultTypeHandler
Type handler for java.util.Date.
- Author:
- tomas
- See Also:
Date
| Methods inherited from class local.tomas.common.xml.XMLTypeHandler |
getArrayType, getArrayTypeHandler, getName, getType, marshall, marshall, marshallNullPrefix, marshallNullSuffix, marshallPrefix, marshallRef, marshallSuffix, match, newArray, newInstance, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALENDAR_FIELD
public static final String CALENDAR_FIELD
- Field name of calendar.
- See Also:
- Constant Field Values
DateTypeHandler
public DateTypeHandler()
- Default constructor.
newInstance
public Object newInstance(Class<?> type)
throws XMLException
- Description copied from class:
XMLTypeHandler
- Create an instance of the type handled.
- Overrides:
newInstance in class XMLTypeHandler
- Parameters:
type - - type of instance
- Returns:
- the instance
- Throws:
XMLException
marshallValue
protected void marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
- Description copied from class:
XMLTypeHandler
- Generate XML description of object value.
- Overrides:
marshallValue in class DefaultTypeHandler
- Parameters:
type - - object typesrc - - the objectgen - - used to generate XML tokens
- Throws:
XMLException
setProperty
public void setProperty(Object dest,
String name,
int index,
Object value)
throws XMLException
- Description copied from class:
XMLTypeHandler
- Set property of an object.
- Overrides:
setProperty in class XMLTypeHandler
- Parameters:
dest - - the objectname - - the property nameindex - - a property indexvalue - - the new property value
- Throws:
XMLException
Copyright © 2007 null. All Rights Reserved.