Package com.evolveum.midpoint.prism.impl
Class TypeDefinitionImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.DefinitionImpl
-
- com.evolveum.midpoint.prism.impl.TypeDefinitionImpl
-
- All Implemented Interfaces:
Definition
,MutableDefinition
,Revivable
,TypeDefinition
,DebugDumpable
,Serializable
,Cloneable
- Direct Known Subclasses:
ComplexTypeDefinitionImpl
,SimpleTypeDefinitionImpl
public abstract class TypeDefinitionImpl extends DefinitionImpl implements TypeDefinition
- Author:
- mederly
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>
compileTimeClass
protected Integer
instantiationOrder
protected Set<TypeDefinition>
staticSubTypes
protected QName
superType
-
Fields inherited from class com.evolveum.midpoint.prism.impl.DefinitionImpl
deprecated, deprecatedSince, displayName, displayOrder, documentation, elaborate, emphasized, experimental, help, inherited, isAbstract, isRuntimeSchema, plannedRemoval, prismContext, processing, typeName
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description TypeDefinitionImpl(QName typeName, PrismContext prismContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStaticSubType(TypeDefinition subtype)
boolean
canRepresent(QName typeName)
protected void
copyDefinitionData(TypeDefinitionImpl clone)
boolean
equals(Object o)
Class<?>
getCompileTimeClass()
Returns compile-time class, if this type has any.Integer
getInstantiationOrder()
Collection<TypeDefinition>
getStaticSubTypes()
Subtypes - but only these that are a part of the static schema.QName
getSuperType()
Name of super type of this complex type definition.int
hashCode()
void
setCompileTimeClass(Class<?> compileTimeClass)
void
setInstantiationOrder(Integer instantiationOrder)
void
setSuperType(QName superType)
-
Methods inherited from class com.evolveum.midpoint.prism.impl.DefinitionImpl
addSchemaMigration, clone, copyDefinitionData, debugDump, extendDumpHeader, getAnnotation, getDebugDumpClassName, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocClassName, getDocumentation, getDocumentationPreview, getHelp, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getTypeClass, getTypeClassIfKnown, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, revive, setAbstract, setAnnotation, setDeprecated, setDeprecatedSince, setDisplayName, setDisplayOrder, setDocumentation, setElaborate, setEmphasized, setExperimental, setHelp, setInherited, setPlannedRemoval, setProcessing, setRuntimeSchema, setTypeName, toString
-
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, getDeprecatedSince, getDisplayName, getDisplayOrder, getDocumentation, getDocumentationPreview, getHelp, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getSchemaRegistry, getTypeClass, getTypeClassIfKnown, getTypeName, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, setAnnotation, toMutable
-
-
-
-
Field Detail
-
superType
protected QName superType
-
compileTimeClass
protected Class<?> compileTimeClass
-
staticSubTypes
@NotNull protected final Set<TypeDefinition> staticSubTypes
-
instantiationOrder
protected Integer instantiationOrder
-
-
Constructor Detail
-
TypeDefinitionImpl
public TypeDefinitionImpl(QName typeName, PrismContext prismContext)
-
-
Method Detail
-
getSuperType
public QName 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
public void setSuperType(QName superType)
-
getStaticSubTypes
@NotNull public Collection<TypeDefinition> 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
public void addStaticSubType(TypeDefinition subtype)
-
getInstantiationOrder
public Integer getInstantiationOrder()
- Specified by:
getInstantiationOrder
in interfaceTypeDefinition
-
setInstantiationOrder
public void setInstantiationOrder(Integer instantiationOrder)
-
getCompileTimeClass
public Class<?> 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
public void setCompileTimeClass(Class<?> compileTimeClass)
-
copyDefinitionData
protected void copyDefinitionData(TypeDefinitionImpl clone)
-
canRepresent
public boolean canRepresent(QName typeName)
- Specified by:
canRepresent
in interfaceTypeDefinition
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDefinitionImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefinitionImpl
-
-