public class PrismTestUtil extends Object
Constructor and Description |
---|
PrismTestUtil() |
public static void resetPrismContext(PrismContextFactory newPrismContextFactory) throws SchemaException, SAXException, IOException
SchemaException
SAXException
IOException
public static void setFactory(PrismContextFactory newPrismContextFactory)
public static void resetPrismContext() throws SchemaException, SAXException, IOException
SchemaException
SAXException
IOException
public static PrismContext createPrismContext() throws SchemaException, FileNotFoundException
SchemaException
FileNotFoundException
public static PrismContext createInitializedPrismContext() throws SchemaException, SAXException, IOException
SchemaException
SAXException
IOException
public static PrismContext getPrismContext()
public static SchemaRegistry getSchemaRegistry()
public static <T extends Objectable> PrismObject<T> parseObject(File file) throws SchemaException
SchemaException
public static <T extends Objectable> PrismObject<T> parseObject(String xmlString) throws SchemaException
SchemaException
public static <T extends Objectable> PrismObject<T> parseObject(Element element) throws SchemaException
SchemaException
public static List<PrismObject<? extends Objectable>> parseObjects(File file) throws SchemaException
SchemaException
public static <T extends Objectable> ObjectDelta<T> parseDelta(File file) throws SchemaException
SchemaException
public static String serializeObjectToString(PrismObject<? extends Objectable> object) throws SchemaException
SchemaException
public static void marshalElementToDom(JAXBElement<?> jaxbElement, Node parentNode) throws JAXBException
JAXBException
public static <T> JAXBElement<T> unmarshalElement(String xmlString, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public static <T> T unmarshalObject(File file, Class<T> type) throws JAXBException, SchemaException, FileNotFoundException
public static <T> T unmarshalObject(String stringXml, Class<T> type) throws JAXBException, SchemaException
JAXBException
SchemaException
public static <T> JAXBElement<T> unmarshalElement(File xmlFile, Class<T> type) throws JAXBException, SchemaException, FileNotFoundException
public static <T> Element marshalObjectToDom(T jaxbObject, QName elementQName, Document doc) throws JAXBException
JAXBException
public static Element toDomElement(Object element) throws JAXBException
JAXBException
public static Element toDomElement(Object jaxbElement, Document doc) throws JAXBException
JAXBException
public static Element toDomElement(Object jaxbElement, Document doc, boolean adopt, boolean clone, boolean deep) throws JAXBException
JAXBException
public static String marshalToString(Objectable objectable) throws JAXBException
JAXBException
public static String marshalElementToString(JAXBElement<?> jaxbElement) throws JAXBException
JAXBException
public static String marshalElementToString(Object element) throws JAXBException
JAXBException
public static String marshalWrap(Object jaxbObject) throws JAXBException
JAXBException
public static <T extends Objectable> PrismObjectDefinition<T> getObjectDefinition(Class<T> compileTimeClass)
public static PolyString createPolyString(String orig)
public static PolyStringType createPolyStringType(String string)
Copyright © 2013 evolveum. All rights reserved.