Class ManagedObjectDependencyMetaDataImpl<O extends Enum<O>>
java.lang.Object
net.officefloor.frame.api.managedobject.source.impl.ManagedObjectDependencyMetaDataImpl<O>
- All Implemented Interfaces:
ManagedObjectDependencyMetaData<O>
public class ManagedObjectDependencyMetaDataImpl<O extends Enum<O>>
extends Object
implements ManagedObjectDependencyMetaData<O>
Implementation of the
ManagedObjectDependencyMetaData.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Object annotation) Adds an annotation to describe the dependency.Object[]Obtains the annotations for the dependency.getKey()Obtains theEnumkey identifying this dependency.getLabel()Provides a descriptive name for this dependency.Class<?>getType()Obtains theClassthat the dependent object must extend/implement.Obtains the qualifier on the type.voidSpecifies a label to describe the dependency.voidsetTypeQualifier(String qualifier) Specifies the type qualifier.
-
Constructor Details
-
ManagedObjectDependencyMetaDataImpl
Initiate.- Parameters:
key- Key identifying the dependency.type- Type of dependency.
-
-
Method Details
-
setLabel
Specifies a label to describe the dependency.- Parameters:
label- Label to describe the dependency.
-
setTypeQualifier
Specifies the type qualifier.- Parameters:
qualifier- Type qualifier.
-
addAnnotation
Adds an annotation to describe the dependency.- Parameters:
annotation- Annotation to describe the dependency.
-
getKey
Description copied from interface:ManagedObjectDependencyMetaDataObtains theEnumkey identifying this dependency. Ifnullthen dependency will be referenced by this instance's index in the array returned fromManagedObjectSourceMetaData. -
getType
Description copied from interface:ManagedObjectDependencyMetaDataObtains theClassthat the dependent object must extend/implement.- Specified by:
getTypein interfaceManagedObjectDependencyMetaData<O extends Enum<O>>- Returns:
- Type of the dependency.
-
getTypeQualifier
Description copied from interface:ManagedObjectDependencyMetaDataObtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifierin interfaceManagedObjectDependencyMetaData<O extends Enum<O>>- Returns:
- Qualifier on the type. May be
nullif not qualifying the type.
-
getAnnotations
Description copied from interface:ManagedObjectDependencyMetaDataObtains the annotations for the dependency.
This enables further description of required dependency.
- Specified by:
getAnnotationsin interfaceManagedObjectDependencyMetaData<O extends Enum<O>>- Returns:
- Annotations for the dependency.
-
getLabel
Description copied from interface:ManagedObjectDependencyMetaDataProvides a descriptive name for this dependency. This is useful to better describe the dependency.- Specified by:
getLabelin interfaceManagedObjectDependencyMetaData<O extends Enum<O>>- Returns:
- Descriptive name for this dependency.
-