Пример #1
0
        public object convert(object obj)
        {
            XdmItem i = (XdmItem)obj;

            return((JItem)i.Unwrap());
        }
Пример #2
0
 /// <summary>
 /// Determine whether this item type matches a given item.
 /// </summary>
 /// <param name="item">item the item to be tested against this item type</param>
 /// <returns>true if the item matches this item type, false if it does not match.</returns>
 public override bool Matches(XdmItem item)
 {
     return(item.Unwrap() is JNodeTest && kind == ((net.sf.saxon.om.NodeInfo)item.Unwrap()).getNodeKind());
 }