@Deprecated public class JaxbTestUtil extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class<?> clazz)
Deprecated.
|
boolean |
canConvert(QName xsdType)
Deprecated.
|
boolean |
compareAny(List<Object> a,
List<Object> b)
Deprecated.
|
<T> T |
fromElement(Object element,
Class<T> type)
Deprecated.
|
<T> Class<T> |
getCompileTimeClass(QName xsdType)
Deprecated.
|
JAXBContext |
getContext()
Deprecated.
|
static JaxbTestUtil |
getInstance()
Deprecated.
|
PrismContext |
getPrismContext()
Deprecated.
|
Unmarshaller |
getUnmarshaller()
Deprecated.
Allow for pooling and other fancy stuff.
|
void |
initialize()
Deprecated.
|
boolean |
isJaxbClass(Class<?> clazz)
Deprecated.
|
String |
marshalContainerableToString(Containerable containerable)
Deprecated.
|
void |
marshalElementToDom(JAXBElement<?> jaxbElement,
Node parentNode)
Deprecated.
|
<T> Element |
marshalElementToDom(JAXBElement<T> jaxbElement,
Document doc)
Deprecated.
|
String |
marshalElementToString(JAXBElement<?> jaxbElement)
Deprecated.
|
String |
marshalElementToString(JAXBElement<?> jaxbElement,
Map<String,Object> properties)
Deprecated.
|
String |
marshalElementToString(Object element)
Deprecated.
|
String |
marshalElementToString(Object element,
Map<String,Object> properties)
Deprecated.
Serializes DOM or JAXB element to string
|
String |
marshalElementToString(Object element,
QName elementName)
Deprecated.
Serializes DOM or JAXB element to string, using specified elementName if needed.
|
<T> Element |
marshalObjectToDom(T jaxbObject,
QName elementQName)
Deprecated.
|
<T> Element |
marshalObjectToDom(T jaxbObject,
QName elementQName,
Document doc)
Deprecated.
|
<T> void |
marshalObjectToDom(T jaxbObject,
QName elementQName,
Element parentElement)
Deprecated.
|
<T> String |
marshalObjectToString(T jaxbObject,
QName elementQName)
Deprecated.
|
void |
marshalToDom(Objectable objectable,
Node parentNode)
Deprecated.
|
String |
marshalToString(Objectable objectable)
Deprecated.
|
String |
marshalToString(Objectable objectable,
Map<String,Object> properties)
Deprecated.
|
static String |
marshalWrap(Object jaxbObject)
Deprecated.
|
void |
setContext(JAXBContext context)
Deprecated.
|
Element |
toDomElement(Object element)
Deprecated.
|
Element |
toDomElement(Object jaxbElement,
Document doc)
Deprecated.
|
Element |
toDomElement(Object jaxbElement,
Document doc,
boolean adopt,
boolean clone,
boolean deep)
Deprecated.
|
<T> T |
toJavaValue(Element element,
Class<T> typeClass)
Deprecated.
|
Object |
toJavaValue(Element element,
QName xsdType)
Deprecated.
Used to convert property values from DOM
|
<T> JAXBElement<T> |
unmarshalElement(File file,
Class<T> type)
Deprecated.
|
<T> JAXBElement<T> |
unmarshalElement(InputStream is,
Class<T> type)
Deprecated.
|
<T> JAXBElement<T> |
unmarshalElement(Node node,
Class<T> type)
Deprecated.
|
<T> JAXBElement<T> |
unmarshalElement(Reader reader,
Class<T> type)
Deprecated.
|
<T> JAXBElement<T> |
unmarshalElement(String xmlString,
Class<T> type)
Deprecated.
|
<T> T |
unmarshalObject(File file,
Class<T> type)
Deprecated.
|
<T> T |
unmarshalObject(InputStream input)
Deprecated.
|
<T> T |
unmarshalObject(InputStream input,
Class<T> type)
Deprecated.
|
<T> T |
unmarshalObject(Object domOrJaxbElement,
Class<T> type)
Deprecated.
|
<T> T |
unmarshalObject(String stringXml,
Class<T> type)
Deprecated.
|
Object |
unmarshalObjects(File file)
Deprecated.
|
<T> T |
unmarshalRootObject(File file,
Class<T> type)
Deprecated.
|
<T extends Containerable> |
unmarshalSingleValueContainer(File file,
Class<T> type)
Deprecated.
|
<T extends Containerable> |
unmarshalSingleValueContainer(String stringXml,
Class<T> type)
Deprecated.
|
<T> T |
unmarshalToObject(Node node,
Class<T> type)
Deprecated.
|
public static JaxbTestUtil getInstance()
public PrismContext getPrismContext()
public void initialize()
public JAXBContext getContext()
public void setContext(JAXBContext context)
public boolean isJaxbClass(Class<?> clazz)
public boolean canConvert(Class<?> clazz)
public boolean canConvert(QName xsdType)
public <T> T toJavaValue(Element element, Class<T> typeClass) throws JAXBException
JAXBException
public Object toJavaValue(Element element, QName xsdType) throws JAXBException
JAXBException
public Unmarshaller getUnmarshaller() throws JAXBException
JAXBException
public String marshalToString(Objectable objectable) throws JAXBException
JAXBException
public String marshalToString(Objectable objectable, Map<String,Object> properties) throws JAXBException
JAXBException
public String marshalElementToString(JAXBElement<?> jaxbElement) throws JAXBException
JAXBException
public String marshalElementToString(JAXBElement<?> jaxbElement, Map<String,Object> properties) throws JAXBException
JAXBException
public String marshalElementToString(Object element) throws JAXBException
JAXBException
public String marshalElementToString(Object element, Map<String,Object> properties) throws JAXBException
JAXBException
public String marshalElementToString(Object element, QName elementName) throws JAXBException
JAXBException
public void marshalToDom(Objectable objectable, Node parentNode) throws JAXBException
JAXBException
public void marshalElementToDom(JAXBElement<?> jaxbElement, Node parentNode) throws JAXBException
JAXBException
public <T> Element marshalElementToDom(JAXBElement<T> jaxbElement, Document doc) throws JAXBException
JAXBException
public <T> Element marshalObjectToDom(T jaxbObject, QName elementQName) throws JAXBException
JAXBException
public String marshalContainerableToString(Containerable containerable) throws JAXBException
JAXBException
public <T> String marshalObjectToString(T jaxbObject, QName elementQName) throws JAXBException
JAXBException
public <T> Element marshalObjectToDom(T jaxbObject, QName elementQName, Document doc) throws JAXBException
JAXBException
public <T> void marshalObjectToDom(T jaxbObject, QName elementQName, Element parentElement) throws JAXBException
JAXBException
public Element toDomElement(Object element) throws JAXBException
JAXBException
public Element toDomElement(Object jaxbElement, Document doc) throws JAXBException
JAXBException
public Element toDomElement(Object jaxbElement, Document doc, boolean adopt, boolean clone, boolean deep) throws JAXBException
JAXBException
public <T> JAXBElement<T> unmarshalElement(String xmlString, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> T unmarshalObject(InputStream input, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> T unmarshalObject(InputStream input) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> JAXBElement<T> unmarshalElement(Reader reader, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> T unmarshalToObject(Node node, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> JAXBElement<T> unmarshalElement(Node node, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> T unmarshalObject(File file, Class<T> type) throws JAXBException, SchemaException, FileNotFoundException
public Object unmarshalObjects(File file) throws JAXBException
JAXBException
public <T> T unmarshalObject(String stringXml, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T extends Containerable> PrismContainer<T> unmarshalSingleValueContainer(File file, Class<T> type) throws JAXBException, SchemaException, FileNotFoundException
public <T extends Containerable> PrismContainer<T> unmarshalSingleValueContainer(String stringXml, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public <T> T unmarshalObject(Object domOrJaxbElement, Class<T> type) throws SchemaException
SchemaException
public <T> JAXBElement<T> unmarshalElement(File file, Class<T> type) throws SchemaException, FileNotFoundException, JAXBException
public <T> JAXBElement<T> unmarshalElement(InputStream is, Class<T> type) throws SchemaException, FileNotFoundException, JAXBException
public <T> T unmarshalRootObject(File file, Class<T> type) throws JAXBException, FileNotFoundException, SchemaException
public <T> T fromElement(Object element, Class<T> type) throws SchemaException
SchemaException
public static String marshalWrap(Object jaxbObject) throws JAXBException
JAXBException
Copyright © 2016 evolveum. All rights reserved.