public class PrismJaxbProcessor extends Object
Constructor and Description |
---|
PrismJaxbProcessor(PrismContext prismContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class<?> clazz) |
boolean |
canConvert(QName xsdType) |
boolean |
compareAny(List<Object> a,
List<Object> b) |
<T> T |
fromElement(Object element,
Class<T> type) |
<T> Class<T> |
getCompileTimeClass(QName xsdType) |
JAXBContext |
getContext() |
PrismContext |
getPrismContext() |
void |
initialize() |
boolean |
isJaxbClass(Class<?> clazz) |
void |
marshalElementToDom(JAXBElement<?> jaxbElement,
Node parentNode) |
<T> Element |
marshalElementToDom(JAXBElement<T> jaxbElement,
Document doc) |
String |
marshalElementToString(JAXBElement<?> jaxbElement) |
String |
marshalElementToString(JAXBElement<?> jaxbElement,
Map<String,Object> properties) |
String |
marshalElementToString(Object element) |
String |
marshalElementToString(Object element,
Map<String,Object> properties)
Serializes DOM or JAXB element to string
|
String |
marshalElementToString(Object element,
QName elementName)
Serializes DOM or JAXB element to string, using specified elementName if needed.
|
<T> Element |
marshalObjectToDom(T jaxbObject,
QName elementQName) |
<T> Element |
marshalObjectToDom(T jaxbObject,
QName elementQName,
Document doc) |
<T> void |
marshalObjectToDom(T jaxbObject,
QName elementQName,
Element parentElement) |
void |
marshalToDom(Objectable objectable,
Node parentNode) |
String |
marshalToString(Objectable objectable) |
String |
marshalToString(Objectable objectable,
Map<String,Object> properties) |
void |
setContext(JAXBContext context) |
Object |
toAny(PrismValue value,
Document document) |
Element |
toDomElement(Object element) |
Element |
toDomElement(Object jaxbElement,
Document doc) |
Element |
toDomElement(Object jaxbElement,
Document doc,
boolean adopt,
boolean clone,
boolean deep) |
<T> T |
toJavaValue(Element element,
Class<T> typeClass) |
Object |
toJavaValue(Element element,
QName xsdType)
Used to convert property values from DOM
|
<T> JAXBElement<T> |
unmarshalElement(File file,
Class<T> type) |
<T> JAXBElement<T> |
unmarshalElement(InputStream input,
Class<T> type) |
<T> JAXBElement<T> |
unmarshalElement(Node node,
Class<T> type) |
<T> JAXBElement<T> |
unmarshalElement(Reader reader,
Class<T> type) |
<T> JAXBElement<T> |
unmarshalElement(String xmlString,
Class<T> type) |
<T> T |
unmarshalObject(File file,
Class<T> type) |
<T> T |
unmarshalObject(Object domOrJaxbElement,
Class<T> type) |
<T> T |
unmarshalObject(String stringXml,
Class<T> type) |
<T> T |
unmarshalRootObject(File file,
Class<T> type) |
<T> T |
unmarshalToObject(Node node,
Class<T> type) |
public PrismJaxbProcessor(PrismContext prismContext)
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 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 <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> JAXBElement<T> unmarshalElement(InputStream input, Class<T> type) 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 <T> T unmarshalObject(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> T unmarshalRootObject(File file, Class<T> type) throws JAXBException, FileNotFoundException, SchemaException
public <T> T fromElement(Object element, Class<T> type) throws SchemaException
SchemaException
public Object toAny(PrismValue value, Document document) throws SchemaException
SchemaException
Copyright © 2013 evolveum. All rights reserved.