Class Type
java.lang.Object
com.xebialabs.deployit.plugin.api.reflect.Type
- All Implemented Interfaces:
Serializable
Encapsulates the metadata about the type of a
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanexists()getName()inthashCode()booleaninstanceOf(Type selfOrSuperType) booleanisSubTypeOf(Type superType) booleanisSuperTypeOf(Type subType) toString()static Typestatic Typestatic Type
-
Method Details
-
valueOf
- Parameters:
ciClass- AConfigurationItemclass object.- Returns:
- The Type representation of the given CI class.
-
valueOf
- Parameters:
typeName- The prefixed name of aConfigurationItemclass.- Returns:
- The Type representation of the given CI class prefixed name.
-
valueOf
- Parameters:
prefix- The CI namespace for the specifiedConfigurationItem.simpleName- The simple name for the specifiedConfigurationItem.- Returns:
- The Type representation of the given CI.
-
getDescriptor
- Returns:
- The metadata about this
ConfigurationItem.
-
isSubTypeOf
- Parameters:
superType- The super type against which to verify the inheritance relationship.- Returns:
- Whether this type is a subtype of the given type.
-
instanceOf
- Parameters:
selfOrSuperType- The type against which to verify the "instance of" relationship- Returns:
- Whether this type is a instance of the given type.
-
isSuperTypeOf
- Parameters:
subType- The sub type against which to verify the inheritance relationship.- Returns:
- Whether this type is a super type of the given type.
-
exists
public boolean exists()- Returns:
- Whether this type is a registered CI.
-
getPrefix
- Returns:
- The CI namespace for this type.
-
getName
- Returns:
- The simple name for this type.
-
equals
-
hashCode
public int hashCode() -
toString
-
getTypeSource
- Returns:
- The id of the descriptor registry.
-