Package org.compiere.process
Class ProcessInfoParameter
java.lang.Object
org.compiere.process.ProcessInfoParameter
- All Implemented Interfaces:
Serializable
Process Parameter
- Version:
- $Id: ProcessInfoParameter.java,v 1.2 2006/07/30 00:54:44 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, www.arhipac.ro
- FR [ 2430845 ] Add ProcessInfoParameter.getParameterAsBoolean method
- See Also:
-
Constructor Summary
ConstructorDescriptionProcessInfoParameter
(String parameterName, Object parameter, Object parameter_To, String info, String info_To) Construct ParameterProcessInfoParameter
(String parameterName, Object parameter, Object parameter_To, String info, String info_To, boolean isNotClause) Construct Parameter -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Get InfoGet Info_ToGet ParameterGet Parameter_ToGet Parameter To as BigDecimalboolean
Get Parameter To as BooleanGet value of the parameter To as a comma separated integer string.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.Get value of the parameter as a String with all values between commas surrounded by quotesint
Get Parameter To as IntGet Parameter To as StringGet Parameter_To as TimestampGet Parameter as BigDecimalboolean
Get Parameter as BooleanGet value of the parameter as a comma separated integer string.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.Get value of the parameter as a String with all values between commas surrounded by quotesint
Get Parameter as Intint[]
Get value of the parameter as an array of int.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.Get Parameter as StringString[]
Get value of the parameter as an array of String.Method getParameter as TimestampGet ParameterNameint[]
Get value of the parameter To as an array of int.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.String[]
Get value of the parameter To as an array of String.boolean
Is using Not Clausevoid
Set Infovoid
setInfo_To
(String Info_To) Set Info_Tovoid
setIsNotClause
(boolean IsNotClause) Set Is using NotClausevoid
setParameter
(Object Parameter) Set Parametervoid
setParameter_To
(Object Parameter_To) Set Parameter_Tovoid
setParameterName
(String ParameterName) Set ParameterNametoString()
String Representation
-
Constructor Details
-
ProcessInfoParameter
public ProcessInfoParameter(String parameterName, Object parameter, Object parameter_To, String info, String info_To) Construct Parameter- Parameters:
parameterName
- parameter nameparameter
- parameterparameter_To
- to parameterinfo
- infoinfo_To
- to info
-
ProcessInfoParameter
public ProcessInfoParameter(String parameterName, Object parameter, Object parameter_To, String info, String info_To, boolean isNotClause) Construct Parameter- Parameters:
parameterName
- parameter nameparameter
- parameterparameter_To
- to parameterinfo
- infoinfo_To
- to infoisNotClause
- is not clause
-
-
Method Details
-
toString
String Representation -
getInfo
Get Info- Returns:
- info text
-
getInfo_To
Get Info_To- Returns:
- info text for to parameter
-
getParameter
Get Parameter- Returns:
- parameter value
-
getParameterAsInt
public int getParameterAsInt()Get Parameter as Int- Returns:
- parameter as integer value
-
getParameterAsBoolean
public boolean getParameterAsBoolean()Get Parameter as Boolean- Returns:
- parameter as boolean value
-
getParameter_To
Get Parameter_To- Returns:
- to parameter value
-
getParameter_ToAsInt
public int getParameter_ToAsInt()Get Parameter To as Int- Returns:
- to parameter as integer value
-
getParameter_ToAsBoolean
public boolean getParameter_ToAsBoolean()Get Parameter To as Boolean- Returns:
- to parameter as boolean value
-
getParameter_ToAsTimestamp
Get Parameter_To as Timestamp- Returns:
- to parameter as Timestamp value
-
getParameterAsTimestamp
Method getParameter as Timestamp- Returns:
- Object
-
getParameter_ToAsString
Get Parameter To as String- Returns:
- to parameter as string value
-
getParameterAsString
Get Parameter as String- Returns:
- parameter as string value
-
getParameter_ToAsBigDecimal
Get Parameter To as BigDecimal- Returns:
- to parameter as big decimal value
-
getParameterAsBigDecimal
Get Parameter as BigDecimal- Returns:
- Parameter as big decimal value
-
getParameterName
Get ParameterName- Returns:
- parameter name
-
isNotClause
public boolean isNotClause()Is using Not Clause- Returns:
- true if parameter is using not clause
-
setInfo
Set Info- Parameters:
Info
-
-
setInfo_To
Set Info_To- Parameters:
Info_To
-
-
setParameter
Set Parameter- Parameters:
Parameter
- parameter value
-
setParameter_To
Set Parameter_To- Parameters:
Parameter_To
- value for to parameter
-
setParameterName
Set ParameterName- Parameters:
ParameterName
-
-
setIsNotClause
public void setIsNotClause(boolean IsNotClause) Set Is using NotClause- Parameters:
IsNotClause
- true to use not clause
-
getParameterAsCSVInt
Get value of the parameter as a comma separated integer string.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.- Returns:
- comma separated integer string
-
getParameter_ToAsCSVInt
Get value of the parameter To as a comma separated integer string.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.- Returns:
- comma separated integer string
-
getParameterAsCSVString
Get value of the parameter as a String with all values between commas surrounded by quotes- Returns:
- CSV String with all values between commas surrounded by quotes
-
getParameter_ToAsCSVString
Get value of the parameter as a String with all values between commas surrounded by quotes- Returns:
- CSV String with all values between commas surrounded by quotes
-
getParameterAsIntArray
public int[] getParameterAsIntArray()Get value of the parameter as an array of int.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.- Returns:
- array of int
-
getParameterToAsIntArray
public int[] getParameterToAsIntArray()Get value of the parameter To as an array of int.
Validate every value is an integer and throws NumberFormatException if one of the value is not a valid integer.- Returns:
- array of int
-
getParameterAsStringArray
Get value of the parameter as an array of String.- Returns:
- array of String
-
getParameterToAsStringArray
Get value of the parameter To as an array of String.- Returns:
- array of String
-