public class JAXBExtensionHelper extends Object implements ExtensionSerializer, ExtensionDeserializer
Constructor and Description |
---|
JAXBExtensionHelper(Class<? extends ExtensibilityElement> cls,
String ns) |
Modifier and Type | Method and Description |
---|---|
static void |
addExtensions(ExtensionRegistry registry,
Class<?> parentType,
Class<? extends ExtensibilityElement> cls) |
static void |
addExtensions(ExtensionRegistry registry,
Class<?> parentType,
Class<? extends ExtensibilityElement> cls,
String namespace) |
static void |
addExtensions(ExtensionRegistry registry,
String parentType,
String elementType) |
static void |
addExtensions(ExtensionRegistry registry,
String parentType,
String elementType,
String namespace) |
void |
marshall(Class parent,
QName qname,
ExtensibilityElement obj,
PrintWriter pw,
Definition wsdl,
ExtensionRegistry registry)
This method serializes extension-specific instances of
ExtensibilityElement into the PrintWriter.
|
ExtensibilityElement |
unmarshall(Class parent,
QName qname,
Element element,
Definition wsdl,
ExtensionRegistry registry)
This method deserializes elements into instances of classes
which implement the ExtensibilityElement interface.
|
public JAXBExtensionHelper(Class<? extends ExtensibilityElement> cls, String ns)
public static void addExtensions(ExtensionRegistry registry, String parentType, String elementType) throws JAXBException, ClassNotFoundException
JAXBException
ClassNotFoundException
public static void addExtensions(ExtensionRegistry registry, String parentType, String elementType, String namespace) throws JAXBException, ClassNotFoundException
JAXBException
ClassNotFoundException
public static void addExtensions(ExtensionRegistry registry, Class<?> parentType, Class<? extends ExtensibilityElement> cls) throws JAXBException
JAXBException
public static void addExtensions(ExtensionRegistry registry, Class<?> parentType, Class<? extends ExtensibilityElement> cls, String namespace) throws JAXBException
JAXBException
public void marshall(Class parent, QName qname, ExtensibilityElement obj, PrintWriter pw, Definition wsdl, ExtensionRegistry registry) throws WSDLException
ExtensionSerializer
marshall
in interface ExtensionSerializer
parent
- a class object indicating where in the WSDL
definition this extension was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this extensibility element was found in the list of
extensibility elements belonging to a javax.wsdl.Binding.qname
- the qname of the extensibility elementobj
- the extensibility element to serializewsdl
- the definition this extensibility element was
encountered inregistry
- the ExtensionRegistry to use (if needed again)WSDLException
public ExtensibilityElement unmarshall(Class parent, QName qname, Element element, Definition wsdl, ExtensionRegistry registry) throws WSDLException
ExtensionDeserializer
unmarshall
in interface ExtensionDeserializer
parent
- a class object indicating where in the WSDL
document this extensibility element was encountered. For
example, javax.wsdl.Binding.class would be used to indicate
this element was encountered as an immediate child of
a qname
- the qname of the extensibility elementelement
- the extensibility element to deserializewsdl
- the definition this extensibility element was
encountered inregistry
- the ExtensionRegistry to use (if needed again)WSDLException
Copyright © 2018 JBoss by Red Hat. All rights reserved.