Constructors Summary |
---|
public Arg()Construct a dummy parameter argument, with no QName and no
value (either expression string or value XObject). isVisible
defaults to true.
m_qname = new QName("");
; // so that string compares can be done.
m_val = null;
m_expression = null;
m_isVisible = true;
m_isFromWithParam = false;
|
public Arg(QName qname, String expression, boolean isFromWithParam)Construct a parameter argument that contains an expression.
m_qname = qname;
m_val = null;
m_expression = expression;
m_isFromWithParam = isFromWithParam;
m_isVisible = !isFromWithParam;
|
public Arg(QName qname, XObject val)Construct a parameter argument which has an XObject value.
isVisible defaults to true.
m_qname = qname;
m_val = val;
m_isVisible = true;
m_isFromWithParam = false;
m_expression = null;
|
public Arg(QName qname, XObject val, boolean isFromWithParam)Construct a parameter argument.
m_qname = qname;
m_val = val;
m_isFromWithParam = isFromWithParam;
m_isVisible = !isFromWithParam;
m_expression = null;
|
Methods Summary |
---|
public void | detach()Have the object release it's resources.
Call only when the variable or argument is going out of scope.
if(null != m_val)
{
m_val.allowDetachToRelease(true);
m_val.detach();
}
|
public boolean | equals(java.lang.Object obj)Equality function specialized for the variable name. If the argument
is not a qname, it will deligate to the super class.
if(obj instanceof QName)
{
return m_qname.equals(obj);
}
else
return super.equals(obj);
|
public java.lang.String | getExpression()Get the value expression for this argument.
return m_expression;
|
public final com.sun.org.apache.xml.internal.utils.QName | getQName()Get the qualified name for this argument.
return m_qname;
|
public final com.sun.org.apache.xpath.internal.objects.XObject | getVal()Get the value for this argument.
return m_val;
|
public boolean | isFromWithParam()Tell if this variable is a parameter passed with a with-param or as
a top-level parameter.
return m_isFromWithParam;
|
public boolean | isVisible()Tell if this variable is currently visible.
return m_isVisible;
|
public void | setExpression(java.lang.String expr)Set the value expression for this argument.
m_expression = expr;
|
public void | setIsVisible(boolean b)Update visibility status of this variable.
m_isVisible = b;
|
public final void | setQName(com.sun.org.apache.xml.internal.utils.QName name)Set the qualified name for this argument.
m_qname = name;
|
public final void | setVal(com.sun.org.apache.xpath.internal.objects.XObject val)Set the value of this argument.
m_val = val;
|