public interface PrismContext extends ProtectorCreator
Modifier and Type | Field and Description |
---|---|
static String |
LANG_JSON |
static String |
LANG_XML |
static String |
LANG_YAML |
createInitializedProtector, createProtector
static final String LANG_XML
static final String LANG_JSON
static final String LANG_YAML
void initialize() throws SchemaException, SAXException, IOException
SchemaException
SAXException
IOException
void configurePolyStringNormalizer(PolyStringNormalizerConfigurationType configuration) throws ClassNotFoundException, InstantiationException, IllegalAccessException
@NotNull SchemaRegistry getSchemaRegistry()
@NotNull PolyStringNormalizer getDefaultPolyStringNormalizer()
Protector getDefaultProtector()
@NotNull QueryConverter getQueryConverter()
@NotNull PrismParser parserFor(@NotNull File file)
file
- File to be parsed.@NotNull PrismParser parserFor(@NotNull InputStream stream)
stream
- Input stream to be parsed.@NotNull PrismParserNoIO parserFor(@NotNull String data)
data
- String with the data to be parsed. It has be in UTF-8 encoding.
(For other encodings please use InputStream or File source.)@NotNull PrismParserNoIO parserFor(@NotNull RootXNode xnode)
xnode
- XNode tree with the data to be parsed.@NotNull PrismParserNoIO parserFor(@NotNull Element element)
element
- Element with the data to be parsed.@NotNull String detectLanguage(@NotNull File file) throws IOException
IOException
default <T extends Objectable> PrismObject<T> parseObject(File file) throws SchemaException, IOException
SchemaException
IOException
default <T extends Objectable> PrismObject<T> parseObject(String dataString) throws SchemaException
SchemaException
ParsingMigrator getParsingMigrator()
void setParsingMigrator(ParsingMigrator migrator)
<C extends Containerable> void adopt(PrismContainer<C> object, Class<C> declaredType) throws SchemaException
SchemaException
<T extends Containerable> void adopt(PrismContainer<T> object) throws SchemaException
SchemaException
void adopt(Objectable objectable) throws SchemaException
SchemaException
void adopt(Containerable containerable) throws SchemaException
SchemaException
void adopt(PrismContainerValue value) throws SchemaException
SchemaException
<T extends Objectable> void adopt(ObjectDelta<T> delta) throws SchemaException
SchemaException
<C extends Containerable,O extends Objectable> void adopt(C containerable, Class<O> type, ItemPath path) throws SchemaException
SchemaException
<C extends Containerable,O extends Objectable> void adopt(PrismContainerValue<C> prismContainerValue, Class<O> type, ItemPath path) throws SchemaException
SchemaException
<C extends Containerable,O extends Objectable> void adopt(PrismContainerValue<C> prismContainerValue, QName typeName, ItemPath path) throws SchemaException
SchemaException
@NotNull PrismSerializer<String> serializerFor(@NotNull String language)
language
- Language (like xml, json, yaml).@NotNull PrismSerializer<String> xmlSerializer()
@NotNull PrismSerializer<String> jsonSerializer()
@NotNull PrismSerializer<String> yamlSerializer()
@NotNull PrismSerializer<Element> domSerializer()
@NotNull PrismSerializer<RootXNode> xnodeSerializer()
@Deprecated <O extends Objectable> String serializeObjectToString(PrismObject<O> object, String language) throws SchemaException
SchemaException
boolean canSerialize(Object value)
value
- @NotNull <O extends Objectable> PrismObject<O> createObject(@NotNull Class<O> clazz) throws SchemaException
clazz
- Static type of the object to be created.SchemaException
- If a definition for the given class couldn't be found.@NotNull <O extends Objectable> O createObjectable(@NotNull Class<O> clazz) throws SchemaException
clazz
- Static type of the object to be created.SchemaException
- If a definition for the given class couldn't be found.@NotNull <O extends Objectable> PrismObject<O> createKnownObject(@NotNull Class<O> clazz)
clazz
- Static type of the object to be created.@NotNull <O extends Objectable> O createKnownObjectable(@NotNull Class<O> clazz)
clazz
- Static type of the object to be created.@Deprecated LSResourceResolver getEntityResolver()
@NotNull @Deprecated JaxbDomHack getJaxbDomHack()
PrismMonitor getMonitor()
void setMonitor(PrismMonitor monitor)
QName getDefaultRelation()
void setDefaultRelation(QName name)
QName getObjectsElementName()
boolean isDefaultRelation(QName relation)
boolean relationMatches(@NotNull List<QName> relationQuery, QName relation)
ParsingContext getDefaultParsingContext()
ParsingContext createParsingContextForAllowMissingRefTypes()
ParsingContext createParsingContextForCompatibilityMode()
UniformItemPath emptyPath()
UniformItemPath path(Object... namesOrIdsOrSegments)
Hacks hacks()
XNodeFactory xnodeFactory()
XNodeMutator xnodeMutator()
@NotNull UniformItemPath toUniformPath(ItemPath path)
@Nullable UniformItemPath toUniformPathKeepNull(ItemPath path)
UniformItemPath toUniformPath(ItemPathType path)
default ItemPath toPath(ItemPathType path)
CanonicalItemPath createCanonicalItemPath(ItemPath itemPath, Class<? extends Containerable> clazz)
CanonicalItemPath createCanonicalItemPath(ItemPath itemPath)
<C extends Containerable> S_ItemEntry deltaFor(Class<C> objectClass) throws SchemaException
SchemaException
S_FilterEntryOrEmpty queryFor(Class<? extends Containerable> queryClass)
@NotNull DeltaFactory deltaFactory()
@NotNull QueryFactory queryFactory()
@NotNull ItemFactory itemFactory()
@NotNull DefinitionFactory definitionFactory()
@NotNull ItemPathParser itemPathParser()
void setExtraValidation(boolean value)
@NotNull SchemaFactory schemaFactory()
Copyright © 2019 Evolveum. All rights reserved.