Class ManagedObjectDependencyTypeImpl<D extends Enum<D>>
java.lang.Object
net.officefloor.compile.impl.managedobject.ManagedObjectDependencyTypeImpl<D>
- All Implemented Interfaces:
ManagedObjectDependencyType<D>,AnnotatedType
public class ManagedObjectDependencyTypeImpl<D extends Enum<D>>
extends Object
implements ManagedObjectDependencyType<D>
ManagedObjectDependencyType implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]Obtains the annotations.Obtains the name of the dependency.Class<?>Obtains theClassthat the dependent object must extend/implement.intgetIndex()Obtains the index identifying the dependency.getKey()Obtains the key identifying the dependency.Obtains the qualifier on the type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.compile.type.AnnotatedType
getAnnotation, getAnnotations
-
Constructor Details
-
ManagedObjectDependencyTypeImpl
public ManagedObjectDependencyTypeImpl(int index, Class<?> type, String typeQualifier, Object[] annotations, D key, 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 Details
-
getDependencyName
Description copied from interface:ManagedObjectDependencyTypeObtains the name of the dependency.- Specified by:
getDependencyNamein interfaceManagedObjectDependencyType<D extends Enum<D>>- Returns:
- Name of the dependency.
-
getIndex
public int getIndex()Description copied from interface:ManagedObjectDependencyTypeObtains the index identifying the dependency.
Should this be a
ManagedObjectFunctionDependency, then will return-1.- Specified by:
getIndexin interfaceManagedObjectDependencyType<D extends Enum<D>>- Returns:
- Index identifying the dependency.
-
getDependencyType
Description copied from interface:ManagedObjectDependencyTypeObtains theClassthat the dependent object must extend/implement.- Specified by:
getDependencyTypein interfaceManagedObjectDependencyType<D extends Enum<D>>- Returns:
- Type of the dependency.
-
getTypeQualifier
Description copied from interface:ManagedObjectDependencyTypeObtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifierin interfaceManagedObjectDependencyType<D extends Enum<D>>- Returns:
- Qualifier on the type. May be
nullif not qualifying the type.
-
getAnnotations
Description copied from interface:AnnotatedTypeObtains the annotations.- Specified by:
getAnnotationsin interfaceAnnotatedType- Returns:
- Annotations.
-
getKey
Description copied from interface:ManagedObjectDependencyTypeObtains the key identifying the dependency.- Specified by:
getKeyin interfaceManagedObjectDependencyType<D extends Enum<D>>- Returns:
- Key identifying the dependency.
-