public class ObjectParameter extends Object implements IParameter
IParameter.ParameterType.Object.
An example of this instnace configuratino type is the following
<param name="parameterKey" type="Object" generated="false" internal="false" shared="false">
<class value="full.package.name.ClassName"/>
<constructor>
<arguments>
<arg order="1" name="arg1" param="parameterKey1"/>
<arg order="2" name="arg2" param="parameterKey2"/>
<arg order="3" name="arg3" param="parameterKey3"/>
</arguments>
</constructor>
<calls>
<method order="1" name="method1">
<arguments>
<arg order="1" name="arg1" param="parameterKey4"/>
<arg order="2" name="arg2" param="parameterKey5"/>
<arg order="3" name="arg3" param="parameterKey6"/>
</arguments>
<output param="parameterKey7"/>
</method>
<method order="2" name="method2">
<arguments>
<arg order="1" name="arg1" param="parameterKey8"/>
<arg order="2" name="arg2" param="parameterKey9"/>
<arg order="3" name="arg3" param="parameterKey10"/>
</arguments>
<output param="parameterKey11"/>
</method>
</calls>
</param>
If the IsShared() is set to false, the object needs also to implement the
ICloneable interface in order to Clone the object and serve a disjoint reference everytime
it is requested by a client.IParameter.ParameterType| Constructor and Description |
|---|
ObjectParameter() |
| Modifier and Type | Method and Description |
|---|---|
void |
Check()
Sets that the parameter has been evaluated during the
DependencyGraph.ResolveDependencies() process |
void |
FromXML(Element element)
Parses the provided xml subtree and populates the parameter instnace
|
void |
FromXML(String xml)
Parses the provided xml subtree and populates the parameter instnace
|
String |
GetClassName() |
Constructor |
GetConstructor() |
List<Method> |
GetMethods() |
String |
GetName()
Retrieves the name of the parameter
|
Class<?> |
GetParameterClassType()
Retireves the class type of the value the parameter stored
|
IParameter.ParameterType |
GetParameterType()
Retrieves the
IParameter the implementing
instnace represents |
Object |
GetValue()
Retrieves the value of the parameter
|
Boolean |
IsChecked()
Retrieves whether or not the parameter has been evaluated during the
DependencyGraph.ResolveDependencies() process |
Boolean |
IsGenerated()
Retrieves whether or not the parameter is generated or a specific value of generation description
is available in the same decleration
|
Boolean |
IsInternal()
Retrieves whether or not the parameter is internal and is only used as an intermediate step during
the initialization of an other parameter or it can also be accessed by external clients
|
Boolean |
IsShared() |
void |
SetValue(Object Value)
Sets the value of the parameter
|
public Class<?> GetParameterClassType()
IParameterGetParameterClassType in interface IParameterpublic Boolean IsChecked()
IParameterDependencyGraph.ResolveDependencies() processIsChecked in interface IParameterpublic void Check()
IParameterDependencyGraph.ResolveDependencies() processCheck in interface IParameterpublic String GetClassName()
public Constructor GetConstructor()
public IParameter.ParameterType GetParameterType()
IParameterIParameter the implementing
instnace representsGetParameterType in interface IParameterpublic String GetName()
IParameterGetName in interface IParameterpublic Boolean IsGenerated()
IParameterIsGenerated in interface IParameterpublic Boolean IsInternal()
IParameterIsInternal in interface IParameterpublic Boolean IsShared()
public Object GetValue()
IParameterGetValue in interface IParameterpublic void SetValue(Object Value) throws Exception
IParameterSetValue in interface IParameterValue - the valueException - the value is not of correct type for the parameter instnacepublic void FromXML(String xml) throws Exception
IParameterFromXML in interface IParameterxml - the xml subtreeException - the parsing could be performedpublic void FromXML(Element element) throws Exception
IParameterFromXML in interface IParameterelement - the xml subtreeException - the parsing could be performedCopyright © 2018. All Rights Reserved.