Class ResourceSchemaImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
- com.evolveum.midpoint.schema.processor.ResourceSchemaImpl
-
- All Implemented Interfaces:
Freezable
,PrismContextSensitive
,DefinitionSearchImplementation
,DefinitionsStore
,GlobalDefinitionsStore
,MutablePrismSchema
,PrismSchema
,MutableResourceSchema
,ResourceSchema
,DebugDumpable
public class ResourceSchemaImpl extends com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl implements MutableResourceSchema
- Author:
- semancik
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
definitions, namespace, prismContext
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ResourceSchemaImpl(String namespace, PrismContext prismContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableObjectClassComplexTypeDefinition
createObjectClassDefinition(String localTypeName)
Creates a new resource object definition and adds it to the schema.MutableObjectClassComplexTypeDefinition
createObjectClassDefinition(QName typeName)
Creates a new resource object definition and adds it to the schema.ObjectClassComplexTypeDefinition
findDefaultObjectClassDefinition(ShadowKindType kind)
ObjectClassComplexTypeDefinition
findObjectClassDefinition(ShadowKindType kind, String intent)
ObjectClassComplexTypeDefinition
findObjectClassDefinition(QName qName)
static ResourceSchemaImpl
parse(Element element, String shortDesc, PrismContext prismContext)
static ResourceSchemaImpl
parse(Element element, String namespace, String shortDesc, PrismContext prismContext)
void
parseThis(Element element, String shortDesc, PrismContext prismContext)
MutableResourceSchema
toMutable()
-
Methods inherited from class com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
add, addDelayedItemDefinition, addSubstitution, createComplexTypeDefinition, createPropertyContainerDefinition, createPropertyContainerDefinition, createPropertyDefinition, createPropertyDefinition, debugDump, findComplexTypeDefinitionByCompileTimeClass, findItemDefinitionByType, findItemDefinitionsByCompileTimeClass, findItemDefinitionsByElementName, findTypeDefinitionByCompileTimeClass, findTypeDefinitionByType, findTypeDefinitionsByType, getDefinitions, getDefinitions, getNamespace, getPrismContext, getSubstitutions, isEmpty, parse, parse, parseThis, performFreeze, serializeToXsd, toString
-
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
Methods inherited from interface com.evolveum.midpoint.prism.schema.GlobalDefinitionsStore
findComplexTypeDefinitionByCompileTimeClass, findComplexTypeDefinitionByType, findContainerDefinitionByCompileTimeClass, findContainerDefinitionByElementName, findContainerDefinitionByType, findItemDefinitionByCompileTimeClass, findItemDefinitionByElementName, findItemDefinitionByElementName, findItemDefinitionByType, findItemDefinitionByType, findItemDefinitionsByCompileTimeClass, findItemDefinitionsByElementName, findItemDefinitionsByElementName, findObjectDefinitionByCompileTimeClass, findObjectDefinitionByElementName, findObjectDefinitionByType, findPropertyDefinitionByElementName, findReferenceDefinitionByElementName, findSimpleTypeDefinitionByType, findTypeDefinitionByCompileTimeClass, findTypeDefinitionByType, findTypeDefinitionByType, findTypeDefinitionsByType, findTypeDefinitionsByType
-
Methods inherited from interface com.evolveum.midpoint.prism.schema.MutablePrismSchema
add, addDelayedItemDefinition, addSubstitution, createComplexTypeDefinition, createPropertyContainerDefinition, createPropertyContainerDefinition, createPropertyDefinition, createPropertyDefinition, parseThis
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Methods inherited from interface com.evolveum.midpoint.prism.schema.PrismSchema
getComplexTypeDefinitions, getDefinitions, getDefinitions, getNamespace, getObjectDefinitions, getSubstitutions, isEmpty, serializeToXsd
-
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchema
findObjectClassDefinition, findObjectClassDefinition, getObjectClassDefinitions, getObjectClassList
-
-
-
-
Constructor Detail
-
ResourceSchemaImpl
public ResourceSchemaImpl(String namespace, PrismContext prismContext)
-
-
Method Detail
-
parse
public static ResourceSchemaImpl parse(Element element, String shortDesc, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
parse
public static ResourceSchemaImpl parse(Element element, String namespace, String shortDesc, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
parseThis
public void parseThis(Element element, String shortDesc, PrismContext prismContext) throws SchemaException
- Specified by:
parseThis
in interfaceMutableResourceSchema
- Throws:
SchemaException
-
findObjectClassDefinition
public ObjectClassComplexTypeDefinition findObjectClassDefinition(QName qName)
- Specified by:
findObjectClassDefinition
in interfaceResourceSchema
-
findObjectClassDefinition
public ObjectClassComplexTypeDefinition findObjectClassDefinition(ShadowKindType kind, String intent)
- Specified by:
findObjectClassDefinition
in interfaceResourceSchema
-
findDefaultObjectClassDefinition
public ObjectClassComplexTypeDefinition findDefaultObjectClassDefinition(ShadowKindType kind)
- Specified by:
findDefaultObjectClassDefinition
in interfaceResourceSchema
-
createObjectClassDefinition
public MutableObjectClassComplexTypeDefinition createObjectClassDefinition(String localTypeName)
Creates a new resource object definition and adds it to the schema. This is a preferred way how to create definition in the schema.- Specified by:
createObjectClassDefinition
in interfaceMutableResourceSchema
- Parameters:
localTypeName
- type name "relative" to schema namespace- Returns:
- new resource object definition
-
createObjectClassDefinition
public MutableObjectClassComplexTypeDefinition createObjectClassDefinition(QName typeName)
Creates a new resource object definition and adds it to the schema. This is a preferred way how to create definition in the schema.- Specified by:
createObjectClassDefinition
in interfaceMutableResourceSchema
- Parameters:
typeName
- type QName- Returns:
- new resource object definition
-
toMutable
public MutableResourceSchema toMutable()
- Specified by:
toMutable
in interfaceResourceSchema
-
-