Class ObjectDependencyTypeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.object.ObjectDependencyTypeImpl
-
- All Implemented Interfaces:
ObjectDependencyType
public class ObjectDependencyTypeImpl extends java.lang.Object implements ObjectDependencyType
ObjectDependencyType
implementation.- 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 DependentObjectType
getDependentObjectType()
Obtains the object that fulfills the dependency.java.lang.String
getObjectDependencyName()
Obtains the name of this object dependency.java.lang.String
getObjectDependencyType()
Obtains the type required of this object dependency.java.lang.String
getObjectDependencyTypeQualifier()
Obtains the type qualifier required of this object dependency.boolean
isParameter()
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
-DependentObjectType
fulfilling the object dependency.
-
-
Method Detail
-
getObjectDependencyName
public java.lang.String getObjectDependencyName()
Description copied from interface:ObjectDependencyType
Obtains the name of this object dependency.
This would correspond to either the
ManagedFunctionObjectType
or theManagedObjectDependencyType
name.- Specified by:
getObjectDependencyName
in interfaceObjectDependencyType
- Returns:
- Name of this object dependency.
-
getObjectDependencyType
public java.lang.String getObjectDependencyType()
Description copied from interface:ObjectDependencyType
Obtains the type required of this object dependency.- Specified by:
getObjectDependencyType
in interfaceObjectDependencyType
- Returns:
- Type required of this object dependency.
-
getObjectDependencyTypeQualifier
public java.lang.String getObjectDependencyTypeQualifier()
Description copied from interface:ObjectDependencyType
Obtains the type qualifier required of this object dependency.- Specified by:
getObjectDependencyTypeQualifier
in interfaceObjectDependencyType
- Returns:
- Type qualifier required of this object dependency. May be
null
if no qualifier.
-
isParameter
public boolean isParameter()
Description copied from interface:ObjectDependencyType
Indicates if the object dependency is a parameter.- Specified by:
isParameter
in interfaceObjectDependencyType
- Returns:
true
if object dependency is a parameter.
-
getDependentObjectType
public DependentObjectType getDependentObjectType()
Description copied from interface:ObjectDependencyType
Obtains the object that fulfills the dependency.
Should the
ObjectDependencyType
represent a parameter then noDependentObjectType
will be provided.- Specified by:
getDependentObjectType
in interfaceObjectDependencyType
- Returns:
DependentObjectType
ornull
if parameter or unable to obtainDependentObjectType
.
-
-