Lines Matching defs:val
39 * @param val The java object which this object will wrap.
43 static public XObject create(Object val)
48 if (val instanceof XObject)
50 result = (XObject) val;
52 else if (val instanceof String)
54 result = new XString((String) val);
56 else if (val instanceof Boolean)
58 result = new XBoolean((Boolean)val);
60 else if (val instanceof Double)
62 result = new XNumber(((Double) val));
66 result = new XObject(val);
77 * @param val The java object which this object will wrap.
82 static public XObject create(Object val, XPathContext xctxt)
87 if (val instanceof XObject)
89 result = (XObject) val;
91 else if (val instanceof String)
93 result = new XString((String) val);
95 else if (val instanceof Boolean)
97 result = new XBoolean((Boolean)val);
99 else if (val instanceof Number)
101 result = new XNumber(((Number) val));
103 else if (val instanceof DTM)
105 DTM dtm = (DTM)val;
120 else if (val instanceof DTMAxisIterator)
122 DTMAxisIterator iter = (DTMAxisIterator)val;
134 else if (val instanceof DTMIterator)
136 result = new XNodeSet((DTMIterator) val);
140 else if (val instanceof org.w3c.dom.Node)
142 result = new XNodeSetForDOM((org.w3c.dom.Node)val, xctxt);
146 else if (val instanceof org.w3c.dom.NodeList)
148 result = new XNodeSetForDOM((org.w3c.dom.NodeList)val, xctxt);
150 else if (val instanceof org.w3c.dom.traversal.NodeIterator)
152 result = new XNodeSetForDOM((org.w3c.dom.traversal.NodeIterator)val, xctxt);
156 result = new XObject(val);