Class ManagedFunctionObjectTypeImpl<M extends Enum<M>>
java.lang.Object
net.officefloor.compile.impl.managedfunction.ManagedFunctionObjectTypeImpl<M>
- All Implemented Interfaces:
ManagedFunctionObjectType<M>,ManagedFunctionObjectTypeBuilder<M>,AnnotatedType
public class ManagedFunctionObjectTypeImpl<M extends Enum<M>>
extends Object
implements ManagedFunctionObjectType<M>, ManagedFunctionObjectTypeBuilder<M>
ManagedFunctionObjectType implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedFunctionObjectTypeImpl(Class<?> objectType, int index) Initiate with the index of theManagedFunctionObjectType. -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(Object annotation) Adds an annotation.Object[]Obtains the annotations.intgetIndex()Obtains the index for theManagedFunctionObjectType.getKey()Obtains theEnumkey for theManagedFunctionObjectType.Obtains the name for theManagedFunctionObjectType.Class<?>Obtains the required type of the dependentObject.Obtains the qualifier on the type.Specifies theEnumfor thisManagedFunctionObjectTypeBuilder.Provides means to specify a display label for theObject.setTypeQualifier(String qualifier) Specifies the type qualifier.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
-
ManagedFunctionObjectTypeImpl
Initiate with the index of theManagedFunctionObjectType.- Parameters:
objectType- Type of the dependencyObject.index- Index identifying thisManagedFunctionObjectType.
-
-
Method Details
-
setKey
Description copied from interface:ManagedFunctionObjectTypeBuilderSpecifies theEnumfor thisManagedFunctionObjectTypeBuilder. This is required to be set ifMis notNoneorIndexed.- Specified by:
setKeyin interfaceManagedFunctionObjectTypeBuilder<M extends Enum<M>>- Parameters:
key-Enumfor thisManagedFunctionObjectTypeBuilder.- Returns:
this.
-
setTypeQualifier
Description copied from interface:ManagedFunctionObjectTypeBuilderSpecifies the type qualifier.- Specified by:
setTypeQualifierin interfaceManagedFunctionObjectTypeBuilder<M extends Enum<M>>- Parameters:
qualifier- Type qualifier.- Returns:
this.
-
setLabel
Description copied from interface:ManagedFunctionObjectTypeBuilderProvides means to specify a display label for the
Object.This need not be set as is only an aid to better identify the
Object. If not set theManagedFunctionTypeBuilderwill use the following order to get a display label:Enumkey name- index value
-
addAnnotation
Description copied from interface:ManagedFunctionObjectTypeBuilderAdds an annotation.- Specified by:
addAnnotationin interfaceManagedFunctionObjectTypeBuilder<M extends Enum<M>>- Parameters:
annotation- Annotation.- Returns:
this.
-
getObjectName
Description copied from interface:ManagedFunctionObjectTypeObtains the name for theManagedFunctionObjectType.- Specified by:
getObjectNamein interfaceManagedFunctionObjectType<M extends Enum<M>>- Returns:
- Name for the
ManagedFunctionObjectType.
-
getIndex
public int getIndex()Description copied from interface:ManagedFunctionObjectTypeObtains the index for the
ManagedFunctionObjectType.Should there be an
Enumthen will be theEnum.ordinal()value. Otherwise will be the index that this was added.- Specified by:
getIndexin interfaceManagedFunctionObjectType<M extends Enum<M>>- Specified by:
getIndexin interfaceManagedFunctionObjectTypeBuilder<M extends Enum<M>>- Returns:
- Index for the
ManagedFunctionObjectType.
-
getObjectType
Description copied from interface:ManagedFunctionObjectTypeObtains the required type of the dependentObject.- Specified by:
getObjectTypein interfaceManagedFunctionObjectType<M extends Enum<M>>- Returns:
- Required type of the dependent
Object.
-
getTypeQualifier
Description copied from interface:ManagedFunctionObjectTypeObtains the qualifier on the type.
This is to enable qualifying the type of dependency required.
- Specified by:
getTypeQualifierin interfaceManagedFunctionObjectType<M extends Enum<M>>- Returns:
- Qualifier on the type. May be
nullif not qualifying the type.
-
getKey
Description copied from interface:ManagedFunctionObjectTypeObtains theEnumkey for theManagedFunctionObjectType.- Specified by:
getKeyin interfaceManagedFunctionObjectType<M extends Enum<M>>- Returns:
Enumkey for theManagedFunctionObjectType. May benullif noEnumfor objects.
-
getAnnotations
Description copied from interface:AnnotatedTypeObtains the annotations.- Specified by:
getAnnotationsin interfaceAnnotatedType- Returns:
- Annotations.
-