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 Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.schema.processor.NativeResourceSchema
NativeResourceSchema.NativeResourceSchemaBuilder -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutableMethods inherited from interface com.evolveum.midpoint.schema.processor.NativeResourceSchema
isEmpty
-
Constructor Details
-
NativeResourceSchemaImpl
public NativeResourceSchemaImpl()
-
-
Method Details
-
findObjectClassDefinition
public NativeObjectClassDefinition findObjectClassDefinition(@NotNull @NotNull QName objectClassName) - Specified by:
findObjectClassDefinitionin interfaceNativeResourceSchema
-
findReferenceTypeDefinition
- Specified by:
findReferenceTypeDefinitionin interfaceNativeResourceSchema
-
getObjectClassDefinitions
@NotNull public @NotNull Collection<? extends NativeObjectClassDefinition> getObjectClassDefinitions()- Specified by:
getObjectClassDefinitionsin interfaceNativeResourceSchema
-
getReferenceTypeDefinitions
@NotNull public @NotNull Collection<? extends NativeReferenceTypeDefinition> getReferenceTypeDefinitions()- Specified by:
getReferenceTypeDefinitionsin interfaceNativeResourceSchema
-
getDefinitionsToSerialize
- Specified by:
getDefinitionsToSerializein interfaceSerializableSchema
-
size
public int size()- Specified by:
sizein interfaceNativeResourceSchema
-
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 interfaceNativeResourceSchema.NativeResourceSchemaBuilder- Specified by:
newComplexTypeDefinitionLikeBuilderin interfaceSchemaBuilder
-
getObjectBuilt
- Specified by:
getObjectBuiltin interfaceNativeResourceSchema.NativeResourceSchemaBuilder
-
computeReferenceTypes
Transforms references between object classes into a collection of reference types.- Specified by:
computeReferenceTypesin interfaceNativeResourceSchema.NativeResourceSchemaBuilder- Throws:
SchemaException
-
add
Description copied from interface:SchemaBuilderAdds the definition corresponding to provided builder - potentially incomplete - to the schema.- Specified by:
addin interfaceSchemaBuilder
-
clone
- Specified by:
clonein interfaceNativeResourceSchema- Overrides:
clonein classObject
-
serializeToXsd
- Specified by:
serializeToXsdin interfaceNativeResourceSchema- Throws:
SchemaException
-
getNamespace
Description copied from interface:SerializableSchemaAll top-level definitions (types, items) are in this namespace.- Specified by:
getNamespacein interfaceSchemaBuilder- Specified by:
getNamespacein interfaceSerializableSchema
-
findTypeDefinitionByType
Description 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 interfaceSchemaBuilder
-
isRuntime
public boolean isRuntime()- Specified by:
isRuntimein interfaceSchemaBuilder
-
setRuntime
public void setRuntime(boolean value) - Specified by:
setRuntimein interfaceSchemaBuilder
-
addDelayedItemDefinition
Description 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 interfaceSchemaBuilder
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
toString
-
performFreeze
protected void performFreeze()- Overrides:
performFreezein classAbstractFreezable
-