FR [ 2430845 ] Add ProcessInfoParameter.getParameterAsBoolean method
https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2430845&group_id=176962
This commit is contained in:
parent
d1d67a8d65
commit
f1700d17e1
|
@ -25,6 +25,9 @@ import java.math.BigDecimal;
|
|||
*
|
||||
* @author Jorg Janke
|
||||
* @version $Id: ProcessInfoParameter.java,v 1.2 2006/07/30 00:54:44 jjanke Exp $
|
||||
*
|
||||
* @author Teo Sarca, www.arhipac.ro
|
||||
* <li>FR [ 2430845 ] Add ProcessInfoParameter.getParameterAsBoolean method
|
||||
*/
|
||||
public class ProcessInfoParameter implements Serializable
|
||||
{
|
||||
|
@ -113,6 +116,19 @@ public class ProcessInfoParameter implements Serializable
|
|||
return bd.intValue();
|
||||
} // getParameterAsInt
|
||||
|
||||
/**
|
||||
* Method getParameter as Boolean
|
||||
* @return boolean value
|
||||
*/
|
||||
public boolean getParameterAsBoolean ()
|
||||
{
|
||||
if (m_Parameter == null)
|
||||
return false;
|
||||
if (m_Parameter instanceof Boolean)
|
||||
return ((Boolean)m_Parameter).booleanValue();
|
||||
return "Y".equals(m_Parameter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getParameter_To
|
||||
* @return Object
|
||||
|
@ -136,6 +152,19 @@ public class ProcessInfoParameter implements Serializable
|
|||
return bd.intValue();
|
||||
} // getParameter_ToAsInt
|
||||
|
||||
/**
|
||||
* Method getParameter as Boolean
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean getParameter_ToAsBoolean ()
|
||||
{
|
||||
if (m_Parameter_To == null)
|
||||
return false;
|
||||
if (m_Parameter_To instanceof Boolean)
|
||||
return ((Boolean)m_Parameter_To).booleanValue();
|
||||
return "Y".equals(m_Parameter_To);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Method getParameterName
|
||||
|
|
Loading…
Reference in New Issue