Class ObjectDependencyTypeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.object.ObjectDependencyTypeImpl
-
- All Implemented Interfaces:
ObjectDependencyType
public class ObjectDependencyTypeImpl extends java.lang.Object implements ObjectDependencyType
ObjectDependencyTypeimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ObjectDependencyTypeImpl(java.lang.String dependencyName, java.lang.String dependencyType, java.lang.String typeQualifier, boolean isParameter, DependentObjectType dependentObjectType)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependentObjectTypegetDependentObjectType()Obtains the object that fulfills the dependency.java.lang.StringgetObjectDependencyName()Obtains the name of this object dependency.java.lang.StringgetObjectDependencyType()Obtains the type required of this object dependency.java.lang.StringgetObjectDependencyTypeQualifier()Obtains the type qualifier required of this object dependency.booleanisParameter()Indicates if the object dependency is a parameter.
-
-
-
Constructor Detail
-
ObjectDependencyTypeImpl
public ObjectDependencyTypeImpl(java.lang.String dependencyName, java.lang.String dependencyType, java.lang.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 Detail
-
getObjectDependencyName
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public DependentObjectType 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.
-
-