Class ObjectDependencyTypeImpl
java.lang.Object
net.officefloor.compile.impl.object.ObjectDependencyTypeImpl
- All Implemented Interfaces:
ObjectDependencyType
ObjectDependencyType implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionObjectDependencyTypeImpl(String dependencyName, String dependencyType, String typeQualifier, boolean isParameter, DependentObjectType dependentObjectType) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains the object that fulfills the dependency.Obtains the name of this object dependency.Obtains the type required of this object dependency.Obtains the type qualifier required of this object dependency.booleanIndicates if the object dependency is a parameter.
-
Constructor Details
-
ObjectDependencyTypeImpl
public ObjectDependencyTypeImpl(String dependencyName, String dependencyType, String typeQualifier, boolean isParameter, DependentObjectType dependentObjectType) Instantiate.- Parameters:
dependencyName- Name of the object dependency.dependencyType- Fully qualified type of the object dependency.typeQualifier- Type qualifier of the object dependency.isParameter- Flag indicating if parameter.dependentObjectType-DependentObjectTypefulfilling the object dependency.
-
-
Method Details
-
getObjectDependencyName
Description copied from interface:ObjectDependencyTypeObtains the name of this object dependency.
This would correspond to either the
ManagedFunctionObjectTypeor theManagedObjectDependencyTypename.- Specified by:
getObjectDependencyNamein interfaceObjectDependencyType- Returns:
- Name of this object dependency.
-
getObjectDependencyType
Description copied from interface:ObjectDependencyTypeObtains the type required of this object dependency.- Specified by:
getObjectDependencyTypein interfaceObjectDependencyType- Returns:
- Type required of this object dependency.
-
getObjectDependencyTypeQualifier
Description copied from interface:ObjectDependencyTypeObtains the type qualifier required of this object dependency.- Specified by:
getObjectDependencyTypeQualifierin interfaceObjectDependencyType- Returns:
- Type qualifier required of this object dependency. May be
nullif no qualifier.
-
isParameter
public boolean isParameter()Description copied from interface:ObjectDependencyTypeIndicates if the object dependency is a parameter.- Specified by:
isParameterin interfaceObjectDependencyType- Returns:
trueif object dependency is a parameter.
-
getDependentObjectType
Description copied from interface:ObjectDependencyTypeObtains the object that fulfills the dependency.
Should the
ObjectDependencyTyperepresent a parameter then noDependentObjectTypewill be provided.- Specified by:
getDependentObjectTypein interfaceObjectDependencyType- Returns:
DependentObjectTypeornullif parameter or unable to obtainDependentObjectType.
-