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
,LayeredDefinition
,MutableResourceSchema
,ResourceSchema
,DebugDumpable
,Cloneable
Direct implementation of
ResourceSchema
interface.
Definitions are stored in PrismSchemaImpl.definitions
.
Besides that, it has no own state.- 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
Fields inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchema
LOGGER
-
Method Summary
Modifier and TypeMethodDescriptionclone()
createObjectClassDefinition
(QName typeName) Creates a new resource object class definition and adds it to the schema.forLayerImmutable
(@NotNull LayerType layer) Returns a representation of the schema for given layer (immutable).@NotNull LayerType
Gets the current point-of-view: on which layer do we look at the data?void
This is just a reminder - here we should put any freezing calls to own properties, should there be any.Returns an interface to mutate this schema.toString()
void
validate()
TODO descriptionMethods inherited from class com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
add, addDelayedItemDefinition, addSubstitution, assertNoDelayedDefinitionsOnClone, copyContent, createComplexTypeDefinition, createContainerDefinition, createContainerDefinition, createPropertyDefinition, createPropertyDefinition, debugDump, findComplexTypeDefinitionByCompileTimeClass, findItemDefinitionByType, findItemDefinitionsByCompileTimeClass, findItemDefinitionsByElementName, findTypeDefinitionByCompileTimeClass, findTypeDefinitionByType, findTypeDefinitionsByType, getDefinitions, getDefinitions, getNamespace, getPrismContext, getSubstitutions, isEmpty, parse, parse, parseThis, registerCompileTimeClass, serializeToXsd
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
Methods inherited from class java.lang.Object
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, createContainerDefinition, createContainerDefinition, createPropertyDefinition, createPropertyDefinition, parseThis, registerCompileTimeClass
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
Methods inherited from interface com.evolveum.midpoint.prism.schema.PrismSchema
getComplexTypeDefinitions, getDefinitions, getDefinitions, getObjectDefinitions, getSubstitutions, isEmpty, serializeToXsd
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchema
findDefaultDefinitionForKind, findDefaultDefinitionForKindRequired, findDefinitionForConstruction, findDefinitionForConstructionRequired, findDefinitionForObjectClass, findDefinitionForObjectClassRequired, findDefinitionForShadow, findDefinitionForShadow, findObjectClassDefinition, findObjectClassDefinitionRequired, findObjectDefinition, findObjectDefinition, findObjectDefinition, findObjectDefinitionRequired, findObjectDefinitionRequired, getIntentsForKind, getNamespace, getObjectClassDefinitions, getObjectClassNames, getObjectTypeDefinition, getObjectTypeDefinition, getObjectTypeDefinitions, getObjectTypeDefinitions, getResourceObjectDefinitions, isRaw
-
Method Details
-
createObjectClassDefinition
@VisibleForTesting public MutableResourceObjectClassDefinition createObjectClassDefinition(QName typeName) Description copied from interface:MutableResourceSchema
Creates a new resource object class 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
Description copied from interface:ResourceSchema
Returns an interface to mutate this schema.- Specified by:
toMutable
in interfaceResourceSchema
-
toString
- Overrides:
toString
in classPrismSchemaImpl
-
validate
Description copied from interface:ResourceSchema
TODO description- Specified by:
validate
in interfaceResourceSchema
- Throws:
SchemaException
-
clone
- Specified by:
clone
in interfaceResourceSchema
- Overrides:
clone
in classPrismSchemaImpl
-
forLayerImmutable
Description copied from interface:ResourceSchema
Returns a representation of the schema for given layer (immutable).- Specified by:
forLayerImmutable
in interfaceResourceSchema
-
performFreeze
public void performFreeze()This is just a reminder - here we should put any freezing calls to own properties, should there be any.- Overrides:
performFreeze
in classPrismSchemaImpl
-
getCurrentLayer
Description copied from interface:LayeredDefinition
Gets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayer
in interfaceLayeredDefinition
-