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
JAXBExceptionClassNotFoundExceptionpublic static void addExtensions(ExtensionRegistry registry, String parentType, String elementType, String namespace) throws JAXBException, ClassNotFoundException
JAXBExceptionClassNotFoundExceptionpublic static void addExtensions(ExtensionRegistry registry, Class<?> parentType, Class<? extends ExtensibilityElement> cls) throws JAXBException
JAXBExceptionpublic static void addExtensions(ExtensionRegistry registry, Class<?> parentType, Class<? extends ExtensibilityElement> cls, String namespace) throws JAXBException
JAXBExceptionpublic void marshall(Class parent, QName qname, ExtensibilityElement obj, PrintWriter pw, Definition wsdl, ExtensionRegistry registry) throws WSDLException
ExtensionSerializermarshall in interface ExtensionSerializerparent - 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)WSDLExceptionpublic ExtensibilityElement unmarshall(Class parent, QName qname, Element element, Definition wsdl, ExtensionRegistry registry) throws WSDLException
ExtensionDeserializerunmarshall in interface ExtensionDeserializerparent - 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)WSDLExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.