public class SimpleSerializer extends Object implements SimpleValueSerializer
Modifier and Type | Field and Description |
---|---|
Class |
javaType |
static String |
VALUE_PROPERTY |
QName |
xmlType |
Constructor and Description |
---|
SimpleSerializer(Class javaType,
QName xmlType) |
SimpleSerializer(Class javaType,
QName xmlType,
TypeDesc typeDesc) |
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 primitive or simple value.
|
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 QName xmlType
public Class javaType
public static final String VALUE_PROPERTY
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.