public class HexSerializer extends Object implements SimpleValueSerializer
Constructor and Description |
---|
HexSerializer(Class javaType,
QName xmlType) |
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 HexBinary quantity.
|
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.