public interface ClassDefinition
Modifier and Type | Method and Description |
---|---|
Map<String,Attribute> |
getAllAttributes()
The attributes defined for this type and its supertypes.
|
Map<String,Qualifier> |
getAllQualifiers()
The qualifiers defined for this type and its super-types.
|
Attribute |
getAttribute(String attributeName)
The Attribute object of the specified name.
|
Collection<ClassDefinition> |
getChildClasses()
An
Iterable collection of all types derived directly from this type. |
Map<String,Attribute> |
getDeclaredAttributes()
The attributes defined for this type.
|
Map<String,Qualifier> |
getDeclaredQualifiers()
The qualifiers defined for this type.
|
String |
getDescription()
The description of the purpose of the type.
|
String |
getDisplayName()
The class name to be displayed on the uCMDB user interface.
|
String |
getName()
The class name to be used in code.
|
ClassDefinition |
getParentClass()
The
ClassDefinition object representing the super-type of this type. |
String |
getParentClassName()
The name of the super-type of this type.
|
Qualifier |
getQualifier(String qualifierName)
The Qualifier object of the specified name.
|
Iterable<ClassDefinition> |
getSubclasses()
An
Iterable collection of all types derived directly or indirectly from this type. |
boolean |
hasAttribute(String attributeName)
Checks whether this type or one of its super-types defines an attribute with the
specified name.
|
boolean |
hasQualifier(String qualifierName)
Checks whether this type or one of its super-types is marked with the
specified qualifier.
|
boolean |
isSubtypeOf(ClassDefinition anotherType)
Checks whether
this is either the ClassDefinition of the specified type or is descended from the specified type. |
boolean |
isSubtypeOf(String anotherTypeName)
Checks whether
this is either the ClassDefinition of the specified type or is descended from the name of specified type. |
String getName()
String getDisplayName()
String getDescription()
String getParentClassName()
ClassDefinition getParentClass()
ClassDefinition
object representing the super-type of this type.Map<String,Qualifier> getDeclaredQualifiers()
Map<String,Qualifier> getAllQualifiers()
boolean hasQualifier(String qualifierName)
Qualifier getQualifier(String qualifierName) throws QualifierDoesNotExistException
QualifierDoesNotExistException
- if neither this type nor one of its super-types is marked
with the specified qualifier.Map<String,Attribute> getDeclaredAttributes()
Map<String,Attribute> getAllAttributes()
boolean hasAttribute(String attributeName)
Attribute getAttribute(String attributeName) throws AttributeDoesNotExistException
AttributeDoesNotExistException
- if this type neither defines nor inherits an attribute with the specified nameboolean isSubtypeOf(ClassDefinition anotherType)
this
is either the ClassDefinition of the specified type or is descended from the specified type.anotherType
- true
if this type is the same as or is a descendant of the specified type,
otherwise false
boolean isSubtypeOf(String anotherTypeName)
this
is either the ClassDefinition of the specified type or is descended from the name of specified type.anotherTypeName
- true
if this type is the same as or is a descendant of the specified type,
otherwise false
Collection<ClassDefinition> getChildClasses()
Iterable
collection of all types derived directly from this type.Iterable<ClassDefinition> getSubclasses()
Iterable
collection of all types derived directly or indirectly from this type. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.