com.sun.org.apache.xpath.internal.objects.XObject.xstr()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中com.sun.org.apache.xpath.internal.objects.XObject.xstr()方法的一些代码示例,展示了XObject.xstr()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XObject.xstr()方法的具体详情如下:
包路径:com.sun.org.apache.xpath.internal.objects.XObject
类名称:XObject
方法名:xstr

XObject.xstr介绍

[英]Cast result object to a string.
[中]将结果对象强制转换为字符串。

代码示例

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
  * Apply the operation to two operands, and return the result.
  *
  *
  * @param right non-null reference to the evaluated right operand.
  *
  * @return non-null reference to the XObject that represents the result of the operation.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject operate(XObject right) throws javax.xml.transform.TransformerException
 {
  return (XString)right.xstr(); // semi-safe cast.
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
  * Apply the operation to two operands, and return the result.
  *
  *
  * @param right non-null reference to the evaluated right operand.
  *
  * @return non-null reference to the XObject that represents the result of the operation.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject operate(XObject right) throws javax.xml.transform.TransformerException
 {
  return (XString)right.xstr(); // semi-safe cast.
 }
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * Cast result object to a string.
 *
 *
 * @param xctxt The XPath runtime context.
 * @return The string this wraps or the empty string if null
 *
 * @throws javax.xml.transform.TransformerException
 */
public XMLString xstr(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return execute(xctxt).xstr();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * Cast result object to a string.
 *
 *
 * @param xctxt The XPath runtime context.
 * @return The string this wraps or the empty string if null
 *
 * @throws javax.xml.transform.TransformerException
 */
public XMLString xstr(XPathContext xctxt)
    throws javax.xml.transform.TransformerException
{
 return execute(xctxt).xstr();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * Directly call the
 * characters method on the passed ContentHandler for the
 * string-value. Multiple calls to the
 * ContentHandler's characters methods may well occur for a single call to
 * this method.
 *
 * @param ch A non-null reference to a ContentHandler.
 *
 * @throws org.xml.sax.SAXException
 */
public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)
    throws org.xml.sax.SAXException
{
 xstr().dispatchCharactersEvents(ch);
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * Directly call the
 * characters method on the passed ContentHandler for the
 * string-value. Multiple calls to the
 * ContentHandler's characters methods may well occur for a single call to
 * this method.
 *
 * @param ch A non-null reference to a ContentHandler.
 *
 * @throws org.xml.sax.SAXException
 */
public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch)
    throws org.xml.sax.SAXException
{
 xstr().dispatchCharactersEvents(ch);
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
  * Execute the function.  The function must return
  * a valid object.
  * @param xctxt The current execution context.
  * @return A valid XObject.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
 {
  return m_arg0.execute(xctxt).xstr().startsWith(m_arg1.execute(xctxt).xstr())
      ? XBoolean.S_TRUE : XBoolean.S_FALSE;
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
  * Execute the function.  The function must return
  * a valid object.
  * @param xctxt The current execution context.
  * @return A valid XObject.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
 {
  return m_arg0.execute(xctxt).xstr().startsWith(m_arg1.execute(xctxt).xstr())
      ? XBoolean.S_TRUE : XBoolean.S_FALSE;
 }
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
  * Execute the function.  The function must return
  * a valid object.
  * @param xctxt The current execution context.
  * @return A valid XObject.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
 {

  XMLString s1 = m_arg0.execute(xctxt).xstr();
  XMLString s2 = m_arg1.execute(xctxt).xstr();
  int index = s1.indexOf(s2);

  return (-1 == index)
      ? XString.EMPTYSTRING
      : (XString)s1.substring(index + s2.length());
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
  * Execute the function.  The function must return
  * a valid object.
  * @param xctxt The current execution context.
  * @return A valid XObject.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
 {

  XMLString s1 = m_arg0.execute(xctxt).xstr();
  XMLString s2 = m_arg1.execute(xctxt).xstr();
  int index = s1.indexOf(s2);

  return (-1 == index)
      ? XString.EMPTYSTRING
      : (XString)s1.substring(index + s2.length());
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

return m_arg0.execute(xctxt).xstr();

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

return m_arg0.execute(xctxt).xstr();

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

XMLString s1 = m_arg0.execute(xctxt).xstr();
double start = m_arg1.execute(xctxt).num();
int lenOfS1 = s1.length();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

XMLString s1 = m_arg0.execute(xctxt).xstr();
double start = m_arg1.execute(xctxt).num();
int lenOfS1 = s1.length();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

return xstr().equals(obj2.xstr());
return xstr().equals(obj2.xstr());
return xstr().equals(obj2.xstr());

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

return xstr().equals(obj2.xstr());
return xstr().equals(obj2.xstr());
return xstr().equals(obj2.xstr());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

return xstr().equals(obj2.xstr());

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

return xstr().equals(obj2.xstr());

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

XMLString s2 = obj2.xstr();
DTMIterator list1 = iterRaw();
int node;
XMLString s2 = obj2.xstr();
DTMIterator list1 = iterRaw();
int node;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

XMLString s2 = obj2.xstr();
DTMIterator list1 = iterRaw();
int node;
XMLString s2 = obj2.xstr();
DTMIterator list1 = iterRaw();
int node;

相关文章