public class TimeSerializer extends Object implements SimpleValueSerializer
Constructor and Description |
---|
TimeSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
getMechanismType()
Gets the type of the XML processing mechanism and representation used by this Serializer.
|
String |
getValueAsString(Object value,
SerializationContext context)
Return an XML compatible representation of the value.
|
void |
serialize(QName name,
Attributes attributes,
Object value,
SerializationContext context)
Serialize a Time.
|
Element |
writeSchema(Class javaType,
Types types)
Return XML schema for the specified type, suitable for insertion into
the <types> element of a WSDL document, or underneath an
<element> or <attribute> declaration.
|
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException
name
- is the element nameattributes
- are the attributes...serialize is free to add more.value
- is the valuecontext
- is the SerializationContextIOException
public String getValueAsString(Object value, SerializationContext context)
SimpleValueSerializer
getValueAsString
in interface SimpleValueSerializer
public String getMechanismType()
Serializer
getMechanismType
in interface Serializer
Copyright © The Apache Software Foundation. All Rights Reserved.