Class ParameterRef
java.lang.Object
de.aristaflow.adept2.model.common.paramref.ParameterRef
- All Implemented Interfaces:
LocalisedString,Serializable
- Direct Known Subclasses:
IOParameterRef
Represents a reference to a parameter in the strings returned by
SystemDataConsumers.
These parameters are usually
node parameters,
but parameter references may be used in other contexts as well.
Instances of this class are usually created by one of the utility methods
provided by SystemDataTools.
- Author:
- Patrick Schmidt
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionParameterRef(ProcessConstants.AdeptDataType dataType, String name) Creates a new parameter reference for a parameter of arbitrary data type exceptProcessConstants.AdeptDataType.USERDEFINED.ParameterRef(String name, ProcessConstants.AdeptDataType dataType, String udtName) Constructs a newParameterRefwith the specified name, data type and name of UDT.protectedParameterRef(String name, ProcessConstants.AdeptDataType dataType, String udtName, boolean discriminator) Constructs a newParameterRefwith the specified name, data type and name of UDT. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the data type of the referenced parameter.getName()Returns the name of the referenced parameter.The name of the user-defined type ornullin case the parameter is not of user-defined type ore the name is not defined.inthashCode()toLocalisedString(LocalisationFactory locFac, Locale loc) Gets the localised representation of the implementing object.toString()Returns a string of the form%<typeId>:<parameterName>%as specified inSystemDataConsumer.
-
Field Details
-
name
The name of the referenced parameter. -
dataType
The data type of the referenced parameter. -
udtName
The name of the UDT ornullin case it is not a UDT.
-
-
Constructor Details
-
ParameterRef
Creates a new parameter reference for a parameter of arbitrary data type exceptProcessConstants.AdeptDataType.USERDEFINED.- Parameters:
dataType- The type of the parameter of this reference.name- The name of the parameter of this reference. This must not benull.
-
ParameterRef
Constructs a newParameterRefwith the specified name, data type and name of UDT.- Parameters:
name- The name of the referenced parameter. This must not benullor an empty or blank string.dataType- The data type of the referenced parameter.udtName- The name of the UDT in case it is a UDT and the name is known,nullotherwise.
-
ParameterRef
protected ParameterRef(String name, ProcessConstants.AdeptDataType dataType, String udtName, boolean discriminator) Constructs a newParameterRefwith the specified name, data type and name of UDT.- Parameters:
name- The name of the referenced parameter. Subclasses can providenull.dataType- The data type of the referenced parameter.udtName- The name of the UDT in case it is a UDT and the name is known,nullotherwise.discriminator- An unused parameter to discriminateParameterRef(String, AdeptDataType, String).
-
-
Method Details
-
getName
Returns the name of the referenced parameter.- Returns:
- the name of the referenced parameter
-
getDataType
Returns the data type of the referenced parameter.- Returns:
- the data type of the referenced parameter
-
getUdtName
The name of the user-defined type ornullin case the parameter is not of user-defined type ore the name is not defined.- Returns:
- The name of the user-defined type or
null.
-
toString
Returns a string of the form%<typeId>:<parameterName>%as specified inSystemDataConsumer. -
toLocalisedString
Description copied from interface:LocalisedStringGets the localised representation of the implementing object. The localisation should be for the designated locale, model objects beingLocalisedshould use the designated localisation factory for automatic localisation.- Specified by:
toLocalisedStringin interfaceLocalisedString- Parameters:
locFac- The localisation factory to be used byLocalisedmodel objects. If this isnull, do not localise the usedLocalisedattributes.loc- The locale for which to get the localised string. If this isnull, treat it likeLocale.ROOThas been requested.- Returns:
- The localised (string) representation of the implementing object for the designated locale using the designated localisation factory if appropriate.
-
hashCode
public int hashCode() -
equals
-