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.PrismSchemaMutatorNested 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, 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 TypeMethodDescriptionvoidadd(@NotNull Definition def) Adds any definition (item or type).voidadd(@NotNull Definition.DefinitionBuilder builder) Adds the definition corresponding to provided builder - potentially incomplete - to the schema.clone()protected voidextendDebugDump(StringBuilder sb, int indent) findComplexTypeDefinitionByType(@NotNull QName typeName) 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?@NotNull NativeResourceSchemamutator()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).voidThis is just a reminder - here we should put any freezing calls to own properties, should there be any.@NotNull Document@NotNull DocumentWe do not want to serialize this schema to XSD.toString()voidvalidate()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, setSourceDescriptionMethods inherited from class com.evolveum.midpoint.prism.impl.schema.SchemaRegistryStateAware
setSchemaLookupMethods 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, findContainerDefinitionByCompileTimeClass, findContainerDefinitionByElementName, findContainerDefinitionByType, findItemDefinitionByCompileTimeClass, findItemDefinitionByElementName, findItemDefinitionByElementName, findItemDefinitionByType, findItemDefinitionByType, findItemDefinitionsByCompileTimeClass, findItemDefinitionsByElementName, findItemDefinitionsByElementName, findObjectDefinitionByCompileTimeClass, findObjectDefinitionByElementName, findObjectDefinitionByType, findPropertyDefinitionByElementName, findReferenceDefinitionByElementName, findSimpleTypeDefinitionByType, findTypeDefinitionByCompileTimeClass, findTypeDefinitionByType, findTypeDefinitionByType, findTypeDefinitionsByElementName, findTypeDefinitionsByType, findTypeDefinitionsByTypeMethods inherited from interface com.evolveum.midpoint.prism.schema.PrismSchema
builder, getComplexTypeDefinitions, getDefinitions, getDefinitions, getObjectDefinitions, getSourceDescription, getSubstitutions, isEmpty, isRuntime, sizeMethods 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:SchemaBuilderReturns the builder for complex type definition; does not add anything to the schema (yet). We use this one instead of simply creating a newComplexTypeDefinitionusing theDefinitionFactoryin order to be able to build non-prism definitions, i.e., ones that are not ofDefinitiontype.- Specified by:
newComplexTypeDefinitionLikeBuilderin interfaceResourceSchema.ResourceSchemaMutator- Specified by:
newComplexTypeDefinitionLikeBuilderin interfaceSchemaBuilder- Overrides:
newComplexTypeDefinitionLikeBuilderin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
add
Description copied from interface:SchemaBuilderAdds the definition corresponding to provided builder - potentially incomplete - to the schema.- Specified by:
addin interfaceSchemaBuilder- Overrides:
addin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
add
Description copied from interface:PrismSchema.PrismSchemaMutatorAdds any definition (item or type).- Specified by:
addin interfacePrismSchema.PrismSchemaMutator- Overrides:
addin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
mutator
Description copied from interface:ResourceSchemaReturns an interface to mutate this schema.- Specified by:
mutatorin interfacePrismSchema- Specified by:
mutatorin interfaceResourceSchema- Overrides:
mutatorin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
serializeToXsd
We do not want to serialize this schema to XSD.- Specified by:
serializeToXsdin interfacePrismSchema- Overrides:
serializeToXsdin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl- Throws:
SchemaException
-
serializeNativeToXsd
- Specified by:
serializeNativeToXsdin interfaceResourceSchema- Throws:
SchemaException
-
extendDebugDump
- Overrides:
extendDebugDumpin classcom.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
-
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
-
getNativeSchema
- Specified by:
getNativeSchemain interfaceResourceSchema
-
findComplexTypeDefinitionByType
- Specified by:
findComplexTypeDefinitionByTypein interfaceGlobalDefinitionsStore
-