Package com.evolveum.midpoint.prism.impl
Class TypeDefinitionImpl
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.impl.DefinitionImpl
com.evolveum.midpoint.prism.impl.TypeDefinitionImpl
- All Implemented Interfaces:
Definition
,Freezable
,MutableDefinition
,PrismContextSensitive
,Revivable
,SmartVisitable<Definition>
,TypeDefinition
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
ComplexTypeDefinitionImpl
,SimpleTypeDefinitionImpl
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Class<?>
protected Integer
protected final SerializationProxy
Fields inherited from class com.evolveum.midpoint.prism.impl.DefinitionImpl
deprecated, deprecatedSince, displayName, displayOrder, documentation, elaborate, emphasized, experimental, help, isAbstract, isRuntimeSchema, plannedRemoval, processing, removed, removedSince, typeName
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStaticSubType
(TypeDefinition subtype) boolean
canRepresent
(QName typeName) protected void
copyDefinitionDataFrom
(TypeDefinition source) boolean
Class<?>
Returns compile-time class, if this type has any.@NotNull Collection<TypeDefinition>
Subtypes - but only these that are a part of the static schema.Name of super type of this complex type definition.int
hashCode()
boolean
isAssignableFrom
(TypeDefinition other, SchemaRegistry schemaRegistry) Crawls up the type hierarchy and looks for type name equivalence.void
setCompileTimeClass
(Class<?> compileTimeClass) void
setInstantiationOrder
(Integer instantiationOrder) void
setSuperType
(QName superType) protected static boolean
useSerializationProxy
(boolean localeEnabled) protected Object
Methods inherited from class com.evolveum.midpoint.prism.impl.DefinitionImpl
accept, accept, addDiagram, addSchemaMigration, checkMutableOnExposing, clone, copyDefinitionDataFrom, debugDump, extendDumpHeader, getAnnotation, getAnnotations, getDebugDumpClassName, getDeprecatedSince, getDiagrams, getDisplayName, getDisplayOrder, getDocClassName, getDocumentation, getDocumentationPreview, getHelp, getPlannedRemoval, getPrismContext, getProcessing, getRemovedSince, getSchemaMigrations, getTypeClass, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRemoved, isRuntimeSchema, revive, setAbstract, setAnnotation, setDeprecated, setDeprecatedSince, setDisplayName, setDisplayOrder, setDocumentation, setElaborate, setEmphasized, setExperimental, setHelp, setPlannedRemoval, setProcessing, setRemoved, setRemovedSince, setRuntimeSchema, setTypeName, toString
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable, performFreeze
Methods inherited from class java.lang.Object
finalize, getClass, 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.Definition
clone, debugDump, getAnnotation, getAnnotations, getDeprecatedSince, getDiagrams, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getProcessing, getRemovedSince, getSchemaMigrations, getSchemaRegistry, getTypeClass, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRemoved, isRuntimeSchema, setAnnotation, toMutable
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
Methods inherited from interface com.evolveum.midpoint.prism.SmartVisitable
accept
-
Field Details
-
compileTimeClass
-
instantiationOrder
-
serializationProxy
-
-
Method Details
-
useSerializationProxy
protected static boolean useSerializationProxy(boolean localeEnabled) -
getSuperType
Description copied from interface:TypeDefinition
Name of super type of this complex type definition. E.g. c:ObjectType is a super type for c:FocusType which is a super type for c:UserType. Or (more complex example) ri:ShadowAttributesType is a super type of ri:AccountObjectClass. (TODO is this really true?)- Specified by:
getSuperType
in interfaceTypeDefinition
-
setSuperType
-
getStaticSubTypes
Description copied from interface:TypeDefinition
Subtypes - but only these that are a part of the static schema. A little bit experimental. :)- Specified by:
getStaticSubTypes
in interfaceTypeDefinition
-
addStaticSubType
-
getInstantiationOrder
- Specified by:
getInstantiationOrder
in interfaceTypeDefinition
-
setInstantiationOrder
-
getCompileTimeClass
Description copied from interface:TypeDefinition
Returns compile-time class, if this type has any. For example, UserType.class, ObjectType.class, ExtensionType.class.- Specified by:
getCompileTimeClass
in interfaceTypeDefinition
-
setCompileTimeClass
-
copyDefinitionDataFrom
-
canRepresent
- Specified by:
canRepresent
in interfaceTypeDefinition
-
equals
- Overrides:
equals
in classDefinitionImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefinitionImpl
-
isAssignableFrom
Crawls up the type hierarchy and looks for type name equivalence.- Specified by:
isAssignableFrom
in interfaceTypeDefinition
- Returns:
- True if variables of this type can be assigned value of specified other type, i.e. if this type is equal or supertype of the other type.
-
writeReplace
-