Class ManagedObjectDependencyMetaDataImpl<O extends java.lang.Enum<O>>
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.ManagedObjectDependencyMetaDataImpl<O>
-
- All Implemented Interfaces:
ManagedObjectDependencyMetaData<O>
public class ManagedObjectDependencyMetaDataImpl<O extends java.lang.Enum<O>> extends java.lang.Object implements ManagedObjectDependencyMetaData<O>
Implementation of theManagedObjectDependencyMetaData
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectDependencyMetaDataImpl(O key, java.lang.Class<?> type)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotation(java.lang.Object annotation)
Adds an annotation to describe the dependency.java.lang.Object[]
getAnnotations()
Obtains the annotations for the dependency.O
getKey()
Obtains theEnum
key identifying this dependency.java.lang.String
getLabel()
Provides a descriptive name for this dependency.java.lang.Class<?>
getType()
Obtains theClass
that the dependent object must extend/implement.java.lang.String
getTypeQualifier()
Obtains the qualifier on the type.void
setLabel(java.lang.String label)
Specifies a label to describe the dependency.void
setTypeQualifier(java.lang.String qualifier)
Specifies the type qualifier.
-
-
-
Constructor Detail
-
ManagedObjectDependencyMetaDataImpl
public ManagedObjectDependencyMetaDataImpl(O key, java.lang.Class<?> type)
Initiate.- Parameters:
key
- Key identifying the dependency.type
- Type of dependency.
-
-
Method Detail
-
setLabel
public void setLabel(java.lang.String label)
Specifies a label to describe the dependency.- Parameters:
label
- Label to describe the dependency.
-
setTypeQualifier
public void setTypeQualifier(java.lang.String qualifier)
Specifies the type qualifier.- Parameters:
qualifier
- Type qualifier.
-
addAnnotation
public void addAnnotation(java.lang.Object annotation)
Adds an annotation to describe the dependency.- Parameters:
annotation
- Annotation to describe the dependency.
-
getKey
public O getKey()
Description copied from interface:ManagedObjectDependencyMetaData
Obtains theEnum
key identifying this dependency. Ifnull
then dependency will be referenced by this instance's index in the array returned fromManagedObjectSourceMetaData
.- Specified by:
getKey
in interfaceManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
Enum
key identifying the dependency ornull
indicating identified by an index.
-
getType
public java.lang.Class<?> getType()
Description copied from interface:ManagedObjectDependencyMetaData
Obtains theClass
that the dependent object must extend/implement.- Specified by:
getType
in interfaceManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Type of the dependency.
-
getTypeQualifier
public java.lang.String getTypeQualifier()
Description copied from interface:ManagedObjectDependencyMetaData
Obtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifier
in interfaceManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Qualifier on the type. May be
null
if not qualifying the type.
-
getAnnotations
public java.lang.Object[] getAnnotations()
Description copied from interface:ManagedObjectDependencyMetaData
Obtains the annotations for the dependency.
This enables further description of required dependency.
- Specified by:
getAnnotations
in interfaceManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Annotations for the dependency.
-
getLabel
public java.lang.String getLabel()
Description copied from interface:ManagedObjectDependencyMetaData
Provides a descriptive name for this dependency. This is useful to better describe the dependency.- Specified by:
getLabel
in interfaceManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
- Returns:
- Descriptive name for this dependency.
-
-