public class PrismContext extends Object
Modifier and Type | Method and Description |
---|---|
<C extends Containerable,O extends Objectable> |
adopt(C containerable,
Class<O> type,
ItemPath path) |
void |
adopt(Objectable objectable) |
<T extends Objectable> |
adopt(ObjectDelta<T> delta) |
<C extends Containerable,O extends Objectable> |
adopt(PrismContainerValue<C> prismContainerValue,
Class<O> type,
ItemPath path) |
<T extends Objectable> |
adopt(PrismObject<T> object) |
<T extends Objectable> |
adopt(PrismObject<T> object,
Class<T> declaredType)
Set up the specified object with prism context instance and schema definition.
|
static PrismContext |
create(SchemaRegistry schemaRegistry) |
PolyStringNormalizer |
getDefaultPolyStringNormalizer() |
SchemaDefinitionFactory |
getDefinitionFactory() |
PrismDomProcessor |
getPrismDomProcessor() |
PrismJaxbProcessor |
getPrismJaxbProcessor() |
SchemaRegistry |
getSchemaRegistry() |
void |
initialize() |
<T extends Objectable> |
parseObject(Element objectElement)
Parses a DOM object and creates a prism from it.
|
<T extends Objectable> |
parseObject(File file)
Parses a file and creates a prism from it.
|
<T extends Objectable> |
parseObject(String xmlString)
Parses a string and creates a prism from it.
|
void |
setDefaultPolyStringNormalizer(PolyStringNormalizer defaultPolyStringNormalizer) |
void |
setDefinitionFactory(SchemaDefinitionFactory definitionFactory) |
void |
setPrismDomProcessor(PrismDomProcessor prismDomProcessor) |
void |
setPrismJaxbProcessor(PrismJaxbProcessor prismJaxbProcessor) |
void |
setSchemaRegistry(SchemaRegistry schemaRegistry) |
String |
silentMarshalObject(Object object,
Trace logger)
Method used to marshal objects to xml in debug messages.
|
public static PrismContext create(SchemaRegistry schemaRegistry)
public void initialize() throws SchemaException, SAXException, IOException
SchemaException
SAXException
IOException
public SchemaRegistry getSchemaRegistry()
public void setSchemaRegistry(SchemaRegistry schemaRegistry)
public PrismJaxbProcessor getPrismJaxbProcessor()
public void setPrismJaxbProcessor(PrismJaxbProcessor prismJaxbProcessor)
public PrismDomProcessor getPrismDomProcessor()
public void setPrismDomProcessor(PrismDomProcessor prismDomProcessor)
public SchemaDefinitionFactory getDefinitionFactory()
public void setDefinitionFactory(SchemaDefinitionFactory definitionFactory)
public PolyStringNormalizer getDefaultPolyStringNormalizer()
public void setDefaultPolyStringNormalizer(PolyStringNormalizer defaultPolyStringNormalizer)
public <T extends Objectable> PrismObject<T> parseObject(Element objectElement) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(File file) throws SchemaException
SchemaException
public <T extends Objectable> PrismObject<T> parseObject(String xmlString) throws SchemaException
SchemaException
public <T extends Objectable> void adopt(PrismObject<T> object, Class<T> declaredType) throws SchemaException
SchemaException
public <T extends Objectable> void adopt(PrismObject<T> object) throws SchemaException
SchemaException
public void adopt(Objectable objectable) throws SchemaException
SchemaException
public <T extends Objectable> void adopt(ObjectDelta<T> delta) throws SchemaException
SchemaException
public <C extends Containerable,O extends Objectable> void adopt(C containerable, Class<O> type, ItemPath path) throws SchemaException
SchemaException
public <C extends Containerable,O extends Objectable> void adopt(PrismContainerValue<C> prismContainerValue, Class<O> type, ItemPath path) throws SchemaException
SchemaException
Copyright © 2013 evolveum. All rights reserved.