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 ofResourceSchema
interface. 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceSchemaImpl
clone()
MutableResourceObjectClassDefinition
createObjectClassDefinition(QName typeName)
Creates a new resource object class definition and adds it to the schema.ResourceSchema
forLayer(@NotNull LayerType layer)
Returns a representation of the schema for given layer.@NotNull LayerType
getCurrentLayer()
Gets the current point-of-view: on which layer do we look at the data?void
performFreeze()
This is just a reminder - here we should put any freezing calls to own properties, should there be any.MutableResourceSchema
toMutable()
Returns an interface to mutate this schema.String
toString()
void
validate(PrismObject<ResourceType> resource)
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
findDefaultObjectTypeDefinition, findDefaultOrAnyObjectTypeDefinition, findDefinitionForObjectClass, findDefinitionForObjectClassRequired, findObjectClassDefinition, findObjectClassDefinitionRequired, findObjectDefinition, findObjectDefinition, findObjectDefinitionRequired, findObjectTypeDefinitionForAnyMatchingIntent, findObjectTypeDefinitionRequired, getIntentsForKind, getNamespace, getObjectClassDefinitions, getObjectClassNames, getObjectTypeDefinitions, getObjectTypeDefinitions, isRaw
-
-
-
-
Method Detail
-
createObjectClassDefinition
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
public MutableResourceSchema toMutable()
Description copied from interface:ResourceSchema
Returns an interface to mutate this schema.- Specified by:
toMutable
in interfaceResourceSchema
-
toString
public String toString()
- Overrides:
toString
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
validate
public void validate(PrismObject<ResourceType> resource) throws SchemaException
Description copied from interface:ResourceSchema
TODO description- Specified by:
validate
in interfaceResourceSchema
- Throws:
SchemaException
-
clone
public ResourceSchemaImpl clone()
- Specified by:
clone
in interfaceResourceSchema
- Overrides:
clone
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
forLayer
public ResourceSchema forLayer(@NotNull @NotNull LayerType layer)
Description copied from interface:ResourceSchema
Returns a representation of the schema for given layer.- Specified by:
forLayer
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 classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
getCurrentLayer
@NotNull public @NotNull LayerType 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
-
-