public final class Type
extends java.lang.Object
implements java.io.Serializable
ConfigurationItem,
such as: prefix, name, type hierarchy, the source registry etc.
This class also provides static methods to retrieve the Type of a CI by name or by class from the DescriptorRegistry.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
boolean |
exists() |
Descriptor |
getDescriptor() |
java.lang.String |
getName() |
java.lang.String |
getPrefix() |
DescriptorRegistryId |
getTypeSource() |
int |
hashCode() |
boolean |
instanceOf(Type selfOrSuperType) |
boolean |
isSubTypeOf(Type superType) |
boolean |
isSuperTypeOf(Type subType) |
java.lang.String |
toString() |
static Type |
valueOf(java.lang.Class<?> ciClass) |
static Type |
valueOf(java.lang.String typeName) |
static Type |
valueOf(java.lang.String prefix,
java.lang.String simpleName) |
public static Type valueOf(java.lang.Class<?> ciClass)
ciClass - A ConfigurationItem class object.public static Type valueOf(java.lang.String typeName)
typeName - The prefixed name of a ConfigurationItem class.public static Type valueOf(java.lang.String prefix, java.lang.String simpleName)
prefix - The CI namespace for the specified ConfigurationItem.simpleName - The simple name for the specified ConfigurationItem.public Descriptor getDescriptor()
ConfigurationItem.public boolean isSubTypeOf(Type superType)
superType - The super type against which to verify the inheritance relationship.public boolean instanceOf(Type selfOrSuperType)
selfOrSuperType - The type against which to verify the "instance of" relationshippublic boolean isSuperTypeOf(Type subType)
subType - The sub type against which to verify the inheritance relationship.public boolean exists()
public java.lang.String getPrefix()
public java.lang.String getName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic DescriptorRegistryId getTypeSource()