Class NativeResourceSchemaImpl
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.schema.processor.NativeResourceSchemaImpl
- All Implemented Interfaces:
- Freezable,- SchemaBuilder,- SerializableSchema,- NativeResourceSchema,- NativeResourceSchema.NativeResourceSchemaBuilder,- DebugDumpable,- Serializable,- Cloneable
public class NativeResourceSchemaImpl
extends AbstractFreezable
implements NativeResourceSchema, NativeResourceSchema.NativeResourceSchemaBuilder
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.schema.processor.NativeResourceSchemaNativeResourceSchema.NativeResourceSchemaBuilder
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(@NotNull Definition.DefinitionBuilder builder) Adds the definition corresponding to provided builder - potentially incomplete - to the schema.voidSome containers cannot be added to the schema immediately, because their CTD is not yet parsed.@NotNull NativeResourceSchemaImplclone()voidTransforms references between object classes into a collection of reference types.debugDump(int indent) findObjectClassDefinition(@NotNull QName objectClassName) findReferenceTypeDefinition(@NotNull QName name) findTypeDefinitionByType(@NotNull QName typeName) Returns existing type definition (if there's one) in the schema being built.@NotNull Collection<? extends SerializableDefinition>@NotNull StringAll top-level definitions (types, items) are in this namespace.@NotNull NativeResourceSchema@NotNull Collection<? extends NativeObjectClassDefinition>@NotNull Collection<? extends NativeReferenceTypeDefinition>booleannewComplexTypeDefinitionLikeBuilder(String localTypeName) Returns the builder for complex type definition; does not add anything to the schema (yet).protected void@NotNull DocumentvoidsetRuntime(boolean value) intsize()toString()Methods 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, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.schema.processor.NativeResourceSchemaisEmpty
- 
Constructor Details- 
NativeResourceSchemaImplpublic NativeResourceSchemaImpl()
 
- 
- 
Method Details- 
findObjectClassDefinitionpublic NativeObjectClassDefinition findObjectClassDefinition(@NotNull @NotNull QName objectClassName) - Specified by:
- findObjectClassDefinitionin interface- NativeResourceSchema
 
- 
findReferenceTypeDefinition- Specified by:
- findReferenceTypeDefinitionin interface- NativeResourceSchema
 
- 
getObjectClassDefinitions@NotNull public @NotNull Collection<? extends NativeObjectClassDefinition> getObjectClassDefinitions()- Specified by:
- getObjectClassDefinitionsin interface- NativeResourceSchema
 
- 
getReferenceTypeDefinitions@NotNull public @NotNull Collection<? extends NativeReferenceTypeDefinition> getReferenceTypeDefinitions()- Specified by:
- getReferenceTypeDefinitionsin interface- NativeResourceSchema
 
- 
getDefinitionsToSerialize- Specified by:
- getDefinitionsToSerializein interface- SerializableSchema
 
- 
sizepublic int size()- Specified by:
- sizein interface- NativeResourceSchema
 
- 
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- NativeResourceSchema.NativeResourceSchemaBuilder
- Specified by:
- newComplexTypeDefinitionLikeBuilderin interface- SchemaBuilder
 
- 
getObjectBuilt- Specified by:
- getObjectBuiltin interface- NativeResourceSchema.NativeResourceSchemaBuilder
 
- 
computeReferenceTypesTransforms references between object classes into a collection of reference types.- Specified by:
- computeReferenceTypesin interface- NativeResourceSchema.NativeResourceSchemaBuilder
- Throws:
- SchemaException
 
- 
addDescription copied from interface:SchemaBuilderAdds the definition corresponding to provided builder - potentially incomplete - to the schema.- Specified by:
- addin interface- SchemaBuilder
 
- 
clone- Specified by:
- clonein interface- NativeResourceSchema
- Overrides:
- clonein class- Object
 
- 
serializeToXsd- Specified by:
- serializeToXsdin interface- NativeResourceSchema
- Throws:
- SchemaException
 
- 
getNamespaceDescription copied from interface:SerializableSchemaAll top-level definitions (types, items) are in this namespace.- Specified by:
- getNamespacein interface- SchemaBuilder
- Specified by:
- getNamespacein interface- SerializableSchema
 
- 
findTypeDefinitionByTypeDescription copied from interface:SchemaBuilderReturns existing type definition (if there's one) in the schema being built. This is used when types can be referenced by other types, e.g., in the case of complex types. Its implementation is optional; currently, it is used only in genuine prism schemas.- Specified by:
- findTypeDefinitionByTypein interface- SchemaBuilder
 
- 
isRuntimepublic boolean isRuntime()- Specified by:
- isRuntimein interface- SchemaBuilder
 
- 
setRuntimepublic void setRuntime(boolean value) - Specified by:
- setRuntimein interface- SchemaBuilder
 
- 
addDelayedItemDefinitionDescription copied from interface:SchemaBuilderSome containers cannot be added to the schema immediately, because their CTD is not yet parsed. This can occur when multiple schemas with circular dependencies are present. So we add them only after all the schemas are parsed.- Specified by:
- addDelayedItemDefinitionin interface- SchemaBuilder
 
- 
debugDump- Specified by:
- debugDumpin interface- DebugDumpable
 
- 
toString
- 
performFreezeprotected void performFreeze()- Overrides:
- performFreezein class- AbstractFreezable
 
 
-