|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassDefinition
Represents a definition of a type (class) in the uCMDB.
Method Summary | |
---|---|
java.util.Map<java.lang.String,Attribute> |
getAllAttributes()
The attributes defined for this type and its supertypes. |
java.util.Map<java.lang.String,Qualifier> |
getAllQualifiers()
The qualifiers defined for this type and its super-types. |
Attribute |
getAttribute(java.lang.String attributeName)
The Attribute object of the specified name. |
java.util.Collection<ClassDefinition> |
getChildClasses()
An Iterable collection of all types derived directly from this type. |
java.util.Map<java.lang.String,Attribute> |
getDeclaredAttributes()
The attributes defined for this type. |
java.util.Map<java.lang.String,Qualifier> |
getDeclaredQualifiers()
The qualifiers defined for this type. |
java.lang.String |
getDescription()
The description of the purpose of the type. |
java.lang.String |
getDisplayName()
The class name to be displayed on the uCMDB user interface. |
java.lang.String |
getName()
The class name to be used in code. |
ClassDefinition |
getParentClass()
The ClassDefinition object representing the super-type of this type. |
java.lang.String |
getParentClassName()
The name of the super-type of this type. |
Qualifier |
getQualifier(java.lang.String qualifierName)
The Qualifier object of the specified name. |
java.lang.Iterable<ClassDefinition> |
getSubclasses()
An Iterable collection of all types derived directly or indirectly from this type. |
boolean |
hasAttribute(java.lang.String attributeName)
Checks whether this type or one of its super-types defines an attribute with the specified name. |
boolean |
hasQualifier(java.lang.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. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getDisplayName()
java.lang.String getDescription()
java.lang.String getParentClassName()
ClassDefinition getParentClass()
ClassDefinition
object representing the super-type of this type.
java.util.Map<java.lang.String,Qualifier> getDeclaredQualifiers()
java.util.Map<java.lang.String,Qualifier> getAllQualifiers()
boolean hasQualifier(java.lang.String qualifierName)
Qualifier getQualifier(java.lang.String qualifierName) throws QualifierDoesNotExistException
QualifierDoesNotExistException
- if neither this type nor one of its super-types is marked
with the specified qualifier.java.util.Map<java.lang.String,Attribute> getDeclaredAttributes()
java.util.Map<java.lang.String,Attribute> getAllAttributes()
boolean hasAttribute(java.lang.String attributeName)
Attribute getAttribute(java.lang.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
java.util.Collection<ClassDefinition> getChildClasses()
Iterable
collection of all types derived directly from this type.
java.lang.Iterable<ClassDefinition> getSubclasses()
Iterable
collection of all types derived directly or indirectly from this type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |