Interface Descriptor
public interface Descriptor
Encapsulates the metadata about a type in the XL Deploy type system. Example of such metadata:
 the available properties, the implemented interfaces, the available control tasks etc.
 
The Descriptor for a specific type can be retrieved using the MetadataService, which is also available as a REST API.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanareEqual(ConfigurationItem item, ConfigurationItem other) Class<?>getClazz()Only applicable forDeployeds.getControlTask(String name) Only applicable forDeployeds.getIcon()getLabel()getPropertyDescriptor(String name) Note: The return-type is a Collection, but a List is actually returned.default Metadata.ConfigurationItemRootgetRoot()getType()booleanisAssignableTo(Type type) booleanisAssignableTo(Class<?> clazz) booleanbooleanboolean<T extends ConfigurationItem>
 TnewInstance(String id) toString()Validates the values for each property of the CI.validate(ExtendedValidationContext context, ConfigurationItem ci) 
- 
Method Details- 
getTypeType getType()- Returns:
- The type of a ConfigurationItem.
 
- 
getClazzClass<?> getClazz()- Returns:
- The ConfigurationItemclass object.
 
- 
getDescriptionString getDescription()- Returns:
- A textual description of this type.
 
- 
getLabelString getLabel()- Returns:
- The friendly name of the type
 
- 
getRoot- Returns:
- The root in the JCR tree.
 
- 
getRootNameString getRootName()- Returns:
- The root name in the JCR tree.
 
- 
getPropertyDescriptorsCollection<PropertyDescriptor> getPropertyDescriptors()Note: The return-type is a Collection, but a List is actually returned. So the order of the properties is guaranteed. We cannot change the return-type as this would break binary compatibility.- Returns:
- A list of metadata about a all the properties of this type.
 
- 
getPropertyDescriptor- Parameters:
- name- The name of the property.
- Returns:
- The metadata for the given property name.
 
- 
getControlTask- Parameters:
- name- The name of the control methods.
- Returns:
- The metadata for the given a control method name.
 
- 
getControlTasksCollection<MethodDescriptor> getControlTasks()- Returns:
- A list of metadata about a all the control methods of this type.
 
- 
isAssignableTo- Parameters:
- clazz- A- ConfigurationItemclass object.
- Returns:
- Whether this type is a subtype or has the same type as the type of the given CI class.
 
- 
isAssignableTo- Parameters:
- type- A CI type.
- Returns:
- Whether this type is a subtype or has the same type as the given type.
 
- 
getSuperClasses- Returns:
- The list of all the super classes of this ConfigurationItem.
 
- 
getInterfaces- Returns:
- The set of all the interfaces this ConfigurationItemimplements.
 
- 
isVirtualboolean isVirtual()- Returns:
- Whether this type is a virtual type.
 
- 
isVersionedboolean isVersioned()- Returns:
- Whether or not this is a versioned type, i.e. whether or not the JCR version history for CIs of this type is kept.
 
- 
getIconString getIcon()- Returns:
- The relative path to the icon for this type.
 
- 
areEqual- Returns:
- Whether or not the given CIs are considered to be equal.
 
- 
newInstance- Type Parameters:
- T- The- ConfigurationItemclass.
- Parameters:
- id- The- ConfigurationItemid.
- Returns:
- A new CI instance of the given type and id.
 
- 
toStringString toString()
- 
getDeployableTypeType getDeployableType()Only applicable forDeployeds.- Returns:
- The Deployabletype that created this deployed.
 
- 
getContainerTypeType getContainerType()Only applicable forDeployeds.- Returns:
- The Containertype this deployed can be deployed to.
 
- 
validateValidates the values for each property of the CI.- Parameters:
- ci- The- ConfigurationItemto ve validated.
- Returns:
- A list of ValidationMessages.
 
- 
validate
- 
validateInputHint
- 
isInspectableboolean isInspectable()- Returns:
- Whether this type supports inspection.
 
- 
getCreatorCreatorDescriptor getCreator()
 
-