Class ManagedObjectDependencyTypeImpl<D extends java.lang.Enum<D>>
- java.lang.Object
-
- net.officefloor.compile.impl.managedobject.ManagedObjectDependencyTypeImpl<D>
-
- All Implemented Interfaces:
ManagedObjectDependencyType<D>
,AnnotatedType
public class ManagedObjectDependencyTypeImpl<D extends java.lang.Enum<D>> extends java.lang.Object implements ManagedObjectDependencyType<D>
ManagedObjectDependencyType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectDependencyTypeImpl(int index, java.lang.Class<?> type, java.lang.String typeQualifier, java.lang.Object[] annotations, D key, java.lang.String label)
Initialise.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getAnnotations()
Obtains the annotations.java.lang.String
getDependencyName()
Obtains the name of the dependency.java.lang.Class<?>
getDependencyType()
Obtains theClass
that the dependent object must extend/implement.int
getIndex()
Obtains the index identifying the dependency.D
getKey()
Obtains the key identifying the dependency.java.lang.String
getTypeQualifier()
Obtains the qualifier on the type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.compile.type.AnnotatedType
getAnnotation, getAnnotations
-
-
-
-
Constructor Detail
-
ManagedObjectDependencyTypeImpl
public ManagedObjectDependencyTypeImpl(int index, java.lang.Class<?> type, java.lang.String typeQualifier, java.lang.Object[] annotations, D key, java.lang.String label)
Initialise.- Parameters:
index
- Index identifying this dependency.type
- Type required of the dependency.typeQualifier
- Type qualifier.annotations
- Annotations describing the dependency.key
- Key identifying this dependency. May benull
.label
- Label describing the dependency. May benull
.
-
-
Method Detail
-
getDependencyName
public java.lang.String getDependencyName()
Description copied from interface:ManagedObjectDependencyType
Obtains the name of the dependency.- Specified by:
getDependencyName
in interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>
- Returns:
- Name of the dependency.
-
getIndex
public int getIndex()
Description copied from interface:ManagedObjectDependencyType
Obtains the index identifying the dependency.
Should this be a
ManagedObjectFunctionDependency
, then will return-1
.- Specified by:
getIndex
in interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>
- Returns:
- Index identifying the dependency.
-
getDependencyType
public java.lang.Class<?> getDependencyType()
Description copied from interface:ManagedObjectDependencyType
Obtains theClass
that the dependent object must extend/implement.- Specified by:
getDependencyType
in interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>
- Returns:
- Type of the dependency.
-
getTypeQualifier
public java.lang.String getTypeQualifier()
Description copied from interface:ManagedObjectDependencyType
Obtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifier
in interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>
- Returns:
- Qualifier on the type. May be
null
if not qualifying the type.
-
getAnnotations
public java.lang.Object[] getAnnotations()
Description copied from interface:AnnotatedType
Obtains the annotations.- Specified by:
getAnnotations
in interfaceAnnotatedType
- Returns:
- Annotations.
-
getKey
public D getKey()
Description copied from interface:ManagedObjectDependencyType
Obtains the key identifying the dependency.- Specified by:
getKey
in interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>
- Returns:
- Key identifying the dependency.
-
-