public abstract class SerializerSupport extends Object implements Serializer
Constructor and Description |
---|
SerializerSupport() |
Modifier and Type | Method and Description |
---|---|
String |
getMechanismType() |
abstract Result |
serialize(QName xmlName,
QName xmlType,
Object value,
SerializationContext serContext,
NamedNodeMap attributes)
Serialize an object value to an XML fragment
|
Result |
serialize(SOAPContentElement soapElement,
SerializationContext serContext) |
protected String |
wrapValueStr(QName xmlName,
String valueStr,
org.jboss.xb.binding.NamespaceRegistry nsRegistry,
Set<String> nsExtras,
NamedNodeMap attributes,
boolean normalize)
Wrap the value string in a XML fragment with the given name
|
public Result serialize(SOAPContentElement soapElement, SerializationContext serContext) throws BindingException
BindingException
public abstract Result serialize(QName xmlName, QName xmlType, Object value, SerializationContext serContext, NamedNodeMap attributes) throws BindingException
xmlName
- The root element name of the resulting fragmentxmlType
- The associated schema typevalue
- The value to serializeserContext
- The serialization contextattributes
- The attributes on this elementBindingException
protected String wrapValueStr(QName xmlName, String valueStr, org.jboss.xb.binding.NamespaceRegistry nsRegistry, Set<String> nsExtras, NamedNodeMap attributes, boolean normalize)
public String getMechanismType()
getMechanismType
in interface Serializer
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.