Class ResourceSchemaImpl
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.impl.schema.SchemaRegistryStateAware
com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
com.evolveum.midpoint.schema.processor.ResourceSchemaImpl
- All Implemented Interfaces:
Freezable
,DefinitionSearchImplementation
,DefinitionsStore
,GlobalDefinitionsStore
,PrismSchema
,PrismSchema.PrismSchemaMutator
,SchemaBuilder
,SchemaLookup.Aware
,SerializableSchema
,LayeredDefinition
,ResourceSchema
,ResourceSchema.ResourceSchemaMutator
,DebugDumpable
,Cloneable
- Direct Known Subclasses:
BareResourceSchemaImpl
,CompleteResourceSchemaImpl
public class ResourceSchemaImpl
extends com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
implements ResourceSchema, ResourceSchema.ResourceSchemaMutator
Direct implementation of
ResourceSchema
interface.
It contains only the "prismified" (refined) object classes and types definitions.
Native definitions were moved out to NativeResourceSchema
objects.- Author:
- semancik
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.schema.PrismSchema
PrismSchema.PrismSchemaMutator
Nested classes/interfaces inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchema
ResourceSchema.ResourceSchemaMutator
-
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 TypeMethodDescriptionvoid
add
(@NotNull Definition def) Adds any definition (item or type).void
add
(@NotNull Definition.DefinitionBuilder builder) Adds the definition corresponding to provided builder - potentially incomplete - to the schema.clone()
protected void
extendDebugDump
(StringBuilder sb, int indent) findComplexTypeDefinitionByType
(@NotNull QName typeName) 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?@NotNull NativeResourceSchema
mutator()
Returns an interface to mutate this schema.newComplexTypeDefinitionLikeBuilder
(String localTypeName) Returns the builder for complex type definition; does not add anything to the schema (yet).void
This is just a reminder - here we should put any freezing calls to own properties, should there be any.@NotNull Document
@NotNull Document
We do not want to serialize this schema to XSD.toString()
void
validate()
TODO descriptionMethods inherited from class com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
addDelayedItemDefinition, assertNoDelayedDefinitionsOnClone, builder, copyContent, debugDump, findComplexTypeDefinitionByCompileTimeClass, findItemDefinitionByType, findItemDefinitionsByCompileTimeClass, findItemDefinitionsByElementName, findTypeDefinitionByCompileTimeClass, findTypeDefinitionByType, findTypeDefinitionByType, findTypeDefinitionsByType, getCompileTimePackage, getDefinitions, getDefinitions, getDefinitionsToSerialize, getNamespace, getSourceDescription, getSubstitutions, isRuntime, qualify, schemaLookup, setRuntime, setSourceDescription
Methods inherited from class com.evolveum.midpoint.prism.impl.schema.SchemaRegistryStateAware
setSchemaLookup
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, findContainerDefinitionByCompileTimeClass, findContainerDefinitionByElementName, findContainerDefinitionByType, findItemDefinitionByCompileTimeClass, findItemDefinitionByElementName, findItemDefinitionByElementName, findItemDefinitionByType, findItemDefinitionByType, findItemDefinitionsByCompileTimeClass, findItemDefinitionsByElementName, findItemDefinitionsByElementName, findObjectDefinitionByCompileTimeClass, findObjectDefinitionByElementName, findObjectDefinitionByType, findPropertyDefinitionByElementName, findReferenceDefinitionByElementName, findSimpleTypeDefinitionByType, findTypeDefinitionByCompileTimeClass, findTypeDefinitionByType, findTypeDefinitionByType, findTypeDefinitionsByElementName, findTypeDefinitionsByType, findTypeDefinitionsByType
Methods inherited from interface com.evolveum.midpoint.prism.schema.PrismSchema
builder, getComplexTypeDefinitions, getDefinitions, getDefinitions, getObjectDefinitions, getSourceDescription, getSubstitutions, isEmpty, isRuntime, size
Methods inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchema
findDefaultDefinitionForKind, findDefaultDefinitionForKindRequired, findDefinitionForConstruction, findDefinitionForConstructionRequired, findDefinitionForObjectClass, findDefinitionForObjectClassRequired, findDefinitionForShadow, findDefinitionForShadow, findObjectClassDefinition, findObjectClassDefinitionRequired, findObjectClassDefinitionRequired, findObjectDefinition, findObjectDefinition, findObjectDefinition, findObjectDefinitionRequired, findObjectDefinitionRequired, getIntentsForKind, getNamespace, getObjectClassDefinitions, getObjectClassDefinitionsCount, getObjectClassNames, getObjectTypeDefinition, getObjectTypeDefinition, getObjectTypeDefinitionRequired, getObjectTypeDefinitions, getObjectTypeDefinitions, getObjectTypeDefinitions, getResourceObjectDefinitions, isRaw
-
Method Details
-
newComplexTypeDefinitionLikeBuilder
@NotNull public @NotNull NativeObjectClassDefinition.NativeObjectClassDefinitionBuilder newComplexTypeDefinitionLikeBuilder(String localTypeName) Description copied from interface:SchemaBuilder
Returns the builder for complex type definition; does not add anything to the schema (yet). We use this one instead of simply creating a newComplexTypeDefinition
using theDefinitionFactory
in order to be able to build non-prism definitions, i.e., ones that are not ofDefinition
type.- Specified by:
newComplexTypeDefinitionLikeBuilder
in interfaceResourceSchema.ResourceSchemaMutator
- Specified by:
newComplexTypeDefinitionLikeBuilder
in interfaceSchemaBuilder
- Overrides:
newComplexTypeDefinitionLikeBuilder
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
add
Description copied from interface:SchemaBuilder
Adds the definition corresponding to provided builder - potentially incomplete - to the schema.- Specified by:
add
in interfaceSchemaBuilder
- Overrides:
add
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
add
Description copied from interface:PrismSchema.PrismSchemaMutator
Adds any definition (item or type).- Specified by:
add
in interfacePrismSchema.PrismSchemaMutator
- Overrides:
add
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
mutator
Description copied from interface:ResourceSchema
Returns an interface to mutate this schema.- Specified by:
mutator
in interfacePrismSchema
- Specified by:
mutator
in interfaceResourceSchema
- Overrides:
mutator
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
serializeToXsd
We do not want to serialize this schema to XSD.- Specified by:
serializeToXsd
in interfacePrismSchema
- Overrides:
serializeToXsd
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
- Throws:
SchemaException
-
serializeNativeToXsd
- Specified by:
serializeNativeToXsd
in interfaceResourceSchema
- Throws:
SchemaException
-
extendDebugDump
- Overrides:
extendDebugDump
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
toString
- Overrides:
toString
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
validate
Description copied from interface:ResourceSchema
TODO description- Specified by:
validate
in interfaceResourceSchema
- Throws:
SchemaException
-
clone
- Specified by:
clone
in interfaceResourceSchema
- Overrides:
clone
in classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
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 classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
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
-
getNativeSchema
- Specified by:
getNativeSchema
in interfaceResourceSchema
-
findComplexTypeDefinitionByType
- Specified by:
findComplexTypeDefinitionByType
in interfaceGlobalDefinitionsStore
-