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, IOException
SchemaException
IOException
public static <T extends Objectable> PrismObject<T> parseObject(String xmlString) throws SchemaException
SchemaException
@Deprecated public static <T extends Objectable> PrismObject<T> parseObject(Element element) throws SchemaException
SchemaException
public static <T extends Objectable> T parseObjectable(File file, Class<T> clazz) throws SchemaException, IOException
SchemaException
IOException
public static List<PrismObject<? extends Objectable>> parseObjects(File file) throws SchemaException, IOException
SchemaException
IOException
public static String serializeObjectToString(PrismObject<? extends Objectable> object, String language) throws SchemaException
SchemaException
public static String serializeObjectToString(PrismObject<? extends Objectable> object) throws SchemaException
SchemaException
public static String serializeAtomicValue(Object object, QName elementName) throws SchemaException
SchemaException
public static String serializeAnyData(Object o, QName defaultRootElementName) throws SchemaException
SchemaException
public static String serializeJaxbElementToString(JAXBElement element) throws SchemaException
SchemaException
public static String serializeAnyDataWrapped(Object o) throws SchemaException
SchemaException
public static <T> T parseAtomicValue(File file, QName type) throws SchemaException, IOException
SchemaException
IOException
public static <T> T parseAtomicValue(String data, QName type) throws SchemaException
SchemaException
public static <T> T parseAnyValue(File file) throws SchemaException, IOException
SchemaException
IOException
public static <T extends Objectable> PrismObjectDefinition<T> getObjectDefinition(Class<T> compileTimeClass)
public static PolyString createPolyString(String orig)
public static PolyString createPolyString(String orig, String norm)
public static PolyStringType createPolyStringType(String string)
public static PolyStringType createPolyStringType(String orig, String norm)
public static void displayTestTitle(String testName)
public static SearchFilterType unmarshalFilter(File file) throws Exception
Exception
public static ObjectFilter getFilterCondition(ObjectFilter filter, int index)
public static void displayQuery(ObjectQuery query)
public static void displayQueryXml(String xml)
public static void displayText(String text)
public static void displayQueryType(QueryType queryType) throws SchemaException
SchemaException
public static void displaySearchFilterType(SearchFilterType filterType) throws SchemaException
SchemaException
Copyright © 2016 evolveum. All rights reserved.