|
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.CalendarTypeHandler
public class CalendarTypeHandler
Type handler for Calendar.
| Field Summary | |
|---|---|
static String |
DAY_FIELD
Field name for the day of month. |
static String |
HOUR_FIELD
Field name for the hour. |
static String |
MILLISECOND_FIELD
Field name for the milliseconds. |
static String |
MINUTE_FIELD
Field name for the minute. |
static String |
MONTH_FIELD
Field name for the month. |
static String |
SECOND_FIELD
Field name for the second. |
static String |
YEAR_FIELD
Field namd for the year. |
| Fields inherited from class local.tomas.common.xml.XMLTypeHandler |
|---|
arrayType, arrayTypeHandler, name, type |
| Constructor Summary | |
|---|---|
CalendarTypeHandler()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
marshallValue(Class type,
Object src,
XMLTokenGenerator gen)
Generate XML description of object value. |
Object |
newInstance(Class<?> type)
Create an instance of the type handled. |
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, 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 |
| Field Detail |
|---|
public static final String YEAR_FIELD
public static final String MONTH_FIELD
public static final String DAY_FIELD
public static final String HOUR_FIELD
public static final String MINUTE_FIELD
public static final String SECOND_FIELD
public static final String MILLISECOND_FIELD
| Constructor Detail |
|---|
public CalendarTypeHandler()
| Method Detail |
|---|
public Object newInstance(Class<?> type)
throws XMLException
XMLTypeHandler
newInstance in class XMLTypeHandlertype - - type of instance
XMLException
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
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 | |||||||||