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 PrismSchemaImpl implements MutableResourceSchema
Direct implementation ofResourceSchemainterface. Definitions are stored inPrismSchemaImpl.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceSchemaImplclone()MutableResourceObjectClassDefinitioncreateObjectClassDefinition(QName typeName)Creates a new resource object class definition and adds it to the schema.ResourceSchemaforLayer(@NotNull LayerType layer)Returns a representation of the schema for given layer.@NotNull LayerTypegetCurrentLayer()Gets the current point-of-view: on which layer do we look at the data?voidperformFreeze()This is just a reminder - here we should put any freezing calls to own properties, should there be any.MutableResourceSchematoMutable()Returns an interface to mutate this schema.StringtoString()voidvalidate()TODO description-
Methods 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, 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
-
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 Detail
-
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
public MutableResourceSchema toMutable()
Description copied from interface:ResourceSchemaReturns an interface to mutate this schema.- Specified by:
toMutablein interfaceResourceSchema
-
toString
public String toString()
- Overrides:
toStringin classPrismSchemaImpl
-
validate
public void validate() throws SchemaExceptionDescription copied from interface:ResourceSchemaTODO description- Specified by:
validatein interfaceResourceSchema- Throws:
SchemaException
-
clone
public ResourceSchemaImpl clone()
- Specified by:
clonein interfaceResourceSchema- Overrides:
clonein classPrismSchemaImpl
-
forLayer
public ResourceSchema forLayer(@NotNull @NotNull LayerType layer)
Description copied from interface:ResourceSchemaReturns a representation of the schema for given layer.- Specified by:
forLayerin 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 classPrismSchemaImpl
-
getCurrentLayer
@NotNull public @NotNull LayerType getCurrentLayer()
Description copied from interface:LayeredDefinitionGets the current point-of-view: on which layer do we look at the data?- Specified by:
getCurrentLayerin interfaceLayeredDefinition
-
-