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
public class ResourceSchemaImpl
extends com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
implements MutableResourceSchema
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, prismContextFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRINGFields 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 LayerTypeGets the current point-of-view: on which layer do we look at the data?voidThis 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()voidvalidate()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, serializeToXsdMethods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods 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, findTypeDefinitionsByTypeMethods inherited from interface com.evolveum.midpoint.prism.schema.MutablePrismSchema
add, addDelayedItemDefinition, addSubstitution, createComplexTypeDefinition, createContainerDefinition, createContainerDefinition, createPropertyDefinition, createPropertyDefinition, parseThis, registerCompileTimeClassMethods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContextMethods inherited from interface com.evolveum.midpoint.prism.schema.PrismSchema
getComplexTypeDefinitions, getDefinitions, getDefinitions, getObjectDefinitions, getSubstitutions, isEmpty, serializeToXsdMethods 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:MutableResourceSchemaCreates 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:
createObjectClassDefinitionin interfaceMutableResourceSchema- Parameters:
typeName- type QName- Returns:
- new resource object definition
-
toMutable
Description copied from interface:ResourceSchemaReturns an interface to mutate this schema.- Specified by:
toMutablein interfaceResourceSchema
-
toString
- Overrides:
toStringin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
validate
Description copied from interface:ResourceSchemaTODO description- Specified by:
validatein interfaceResourceSchema- Throws:
SchemaException
-
clone
- Specified by:
clonein interfaceResourceSchema- Overrides:
clonein classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
forLayerImmutable
Description copied from interface:ResourceSchemaReturns a representation of the schema for given layer (immutable).- Specified by:
forLayerImmutablein 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:
performFreezein classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
getCurrentLayer
Description copied from interface:LayeredDefinitionGets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayerin interfaceLayeredDefinition
-