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 SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.schema.PrismSchemaPrismSchema.PrismSchemaMutatorNested classes/interfaces inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchemaResourceSchema.ResourceSchemaMutator
- 
Field SummaryFields inherited from class com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpldefinitions, namespace, prismContextFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRINGFields inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchemaLOGGER
- 
Method SummaryModifier 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.PrismSchemaImpladdDelayedItemDefinition, 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.SchemaRegistryStateAwaresetSchemaLookupMethods inherited from class com.evolveum.midpoint.prism.AbstractFreezablefreeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.prism.schema.GlobalDefinitionsStorefindComplexTypeDefinitionByCompileTimeClass, 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.PrismSchemabuilder, getComplexTypeDefinitions, getDefinitions, getDefinitions, getObjectDefinitions, getSourceDescription, getSubstitutions, isEmpty, isRuntime, sizeMethods inherited from interface com.evolveum.midpoint.schema.processor.ResourceSchemafindDefaultDefinitionForKind, 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 interface- ResourceSchema.ResourceSchemaMutator
- Specified by:
- newComplexTypeDefinitionLikeBuilderin interface- SchemaBuilder
- Overrides:
- newComplexTypeDefinitionLikeBuilderin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
addDescription copied from interface:SchemaBuilderAdds the definition corresponding to provided builder - potentially incomplete - to the schema.- Specified by:
- addin interface- SchemaBuilder
- Overrides:
- addin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
addDescription copied from interface:PrismSchema.PrismSchemaMutatorAdds any definition (item or type).- Specified by:
- addin interface- PrismSchema.PrismSchemaMutator
- Overrides:
- addin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
mutatorDescription copied from interface:ResourceSchemaReturns an interface to mutate this schema.- Specified by:
- mutatorin interface- PrismSchema
- Specified by:
- mutatorin interface- ResourceSchema
- Overrides:
- mutatorin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
serializeToXsdWe do not want to serialize this schema to XSD.- Specified by:
- serializeToXsdin interface- PrismSchema
- Overrides:
- serializeToXsdin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
- Throws:
- SchemaException
 
- 
serializeNativeToXsd- Specified by:
- serializeNativeToXsdin interface- ResourceSchema
- Throws:
- SchemaException
 
- 
extendDebugDump- Overrides:
- extendDebugDumpin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
toString- Overrides:
- toStringin class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
validateDescription copied from interface:ResourceSchemaTODO description- Specified by:
- validatein interface- ResourceSchema
- Throws:
- SchemaException
 
- 
clone- Specified by:
- clonein interface- ResourceSchema
- Overrides:
- clonein class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
forLayerImmutableDescription copied from interface:ResourceSchemaReturns a representation of the schema for given layer (immutable).- Specified by:
- forLayerImmutablein interface- ResourceSchema
 
- 
performFreezepublic void performFreeze()This is just a reminder - here we should put any freezing calls to own properties, should there be any.- Overrides:
- performFreezein class- com.evolveum.midpoint.prism.impl.schema.PrismSchemaImpl
 
- 
getCurrentLayerDescription copied from interface:LayeredDefinitionGets the current point-of-view: on which layer do we look at the data?- Specified by:
- getCurrentLayerin interface- LayeredDefinition
 
- 
getNativeSchema- Specified by:
- getNativeSchemain interface- ResourceSchema
 
- 
findComplexTypeDefinitionByType- Specified by:
- findComplexTypeDefinitionByTypein interface- GlobalDefinitionsStore
 
 
-