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>
ManagedObjectDependencyTypeimplementation.- 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.StringgetDependencyName()Obtains the name of the dependency.java.lang.Class<?>getDependencyType()Obtains theClassthat the dependent object must extend/implement.intgetIndex()Obtains the index identifying the dependency.DgetKey()Obtains the key identifying the dependency.java.lang.StringgetTypeQualifier()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:ManagedObjectDependencyTypeObtains the name of the dependency.- Specified by:
getDependencyNamein interfaceManagedObjectDependencyType<D extends java.lang.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 java.lang.Enum<D>>- Returns:
- Index identifying the dependency.
-
getDependencyType
public java.lang.Class<?> getDependencyType()
Description copied from interface:ManagedObjectDependencyTypeObtains theClassthat the dependent object must extend/implement.- Specified by:
getDependencyTypein interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>- Returns:
- Type of the dependency.
-
getTypeQualifier
public java.lang.String 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 java.lang.Enum<D>>- Returns:
- Qualifier on the type. May be
nullif not qualifying the type.
-
getAnnotations
public java.lang.Object[] getAnnotations()
Description copied from interface:AnnotatedTypeObtains the annotations.- Specified by:
getAnnotationsin interfaceAnnotatedType- Returns:
- Annotations.
-
getKey
public D getKey()
Description copied from interface:ManagedObjectDependencyTypeObtains the key identifying the dependency.- Specified by:
getKeyin interfaceManagedObjectDependencyType<D extends java.lang.Enum<D>>- Returns:
- Key identifying the dependency.
-
-