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>
ManagedFunctionObjectConfiguration
implementation.- 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 int
getIndex()
Obtains the index identifying the dependentObject
.D
getKey()
Obtains the key identifying the dependentObject
.java.lang.Class<?>
getObjectType()
Obtains the type ofObject
required by theManagedFunction
.java.lang.String
getScopeManagedObjectName()
Obtains the name of theManagedObject
within theManagedObjectScope
.boolean
isParameter()
Indicates if this dependentObject
is 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 ofManagedObject
within 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:ManagedFunctionObjectConfiguration
Indicates if this dependentObject
is the argument passed to theManagedFunction
.- Specified by:
isParameter
in interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>
- Returns:
true
if is argument passed to theManagedFunction
.false
indicates it is aManagedObject
dependency.
-
getScopeManagedObjectName
public java.lang.String getScopeManagedObjectName()
Description copied from interface:ManagedFunctionObjectConfiguration
Obtains the name of the
ManagedObject
within theManagedObjectScope
.This must return a value if not a parameter.
- Specified by:
getScopeManagedObjectName
in interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>
- Returns:
- Name of the
ManagedObject
within theManagedObjectScope
.
-
getObjectType
public java.lang.Class<?> getObjectType()
Description copied from interface:ManagedFunctionObjectConfiguration
Obtains the type ofObject
required by theManagedFunction
.- Specified by:
getObjectType
in interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>
- Returns:
- Type of
Object
required by theManagedFunction
.
-
getIndex
public int getIndex()
Description copied from interface:ManagedFunctionObjectConfiguration
Obtains the index identifying the dependentObject
.- Specified by:
getIndex
in interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>
- Returns:
- Index identifying the dependent
Object
.
-
getKey
public D getKey()
Description copied from interface:ManagedFunctionObjectConfiguration
Obtains the key identifying the dependentObject
.- Specified by:
getKey
in interfaceManagedFunctionObjectConfiguration<D extends java.lang.Enum<D>>
- Returns:
- Key identifying the dependent
Object
.null
if indexed.
-
-