Class ManagedFunctionObjectConfigurationImpl<D extends java.lang.Enum<D>>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.managedfunction.ManagedFunctionObjectConfigurationImpl<D>
-
- All Implemented Interfaces:
ManagedFunctionObjectConfiguration<D>
public class ManagedFunctionObjectConfigurationImpl<D extends java.lang.Enum<D>> extends java.lang.Object implements ManagedFunctionObjectConfiguration<D>
ManagedFunctionObjectConfigurationimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedFunctionObjectConfigurationImpl(boolean isParameter, java.lang.String scopeManagedObjectName, java.lang.Class<?> objectType, int index, D key)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Obtains the index identifying the dependentObject.DgetKey()Obtains the key identifying the dependentObject.java.lang.Class<?>getObjectType()Obtains the type ofObjectrequired by theManagedFunction.java.lang.StringgetScopeManagedObjectName()Obtains the name of theManagedObjectwithin theManagedObjectScope.booleanisParameter()Indicates if this dependentObjectis the argument passed to theManagedFunction.
-
-
-
Constructor Detail
-
ManagedFunctionObjectConfigurationImpl
public ManagedFunctionObjectConfigurationImpl(boolean isParameter, java.lang.String scopeManagedObjectName, java.lang.Class<?> objectType, int index, D key)Initiate.- Parameters:
isParameter- Indicates if a parameter.scopeManagedObjectName- Name ofManagedObjectwithin theManagedObjectScope.objectType- Type required of the dependentObject.index- Index of thisObject.key- Key of thisObject.
-
-
Method Detail
-
isParameter
public boolean isParameter()
Description copied from interface:ManagedFunctionObjectConfigurationIndicates if this dependentObjectis the argument passed to theManagedFunction.- Specified by:
isParameterin interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>- Returns:
trueif is argument passed to theManagedFunction.falseindicates it is aManagedObjectdependency.
-
getScopeManagedObjectName
public java.lang.String getScopeManagedObjectName()
Description copied from interface:ManagedFunctionObjectConfigurationObtains the name of the
ManagedObjectwithin theManagedObjectScope.This must return a value if not a parameter.
- Specified by:
getScopeManagedObjectNamein interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>- Returns:
- Name of the
ManagedObjectwithin theManagedObjectScope.
-
getObjectType
public java.lang.Class<?> getObjectType()
Description copied from interface:ManagedFunctionObjectConfigurationObtains the type ofObjectrequired by theManagedFunction.- Specified by:
getObjectTypein interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>- Returns:
- Type of
Objectrequired by theManagedFunction.
-
getIndex
public int getIndex()
Description copied from interface:ManagedFunctionObjectConfigurationObtains the index identifying the dependentObject.- Specified by:
getIndexin interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>- Returns:
- Index identifying the dependent
Object.
-
getKey
public D getKey()
Description copied from interface:ManagedFunctionObjectConfigurationObtains the key identifying the dependentObject.- Specified by:
getKeyin interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>- Returns:
- Key identifying the dependent
Object.nullif indexed.
-
-