gpt4 book ai didi

com.sun.org.apache.xalan.internal.res.XSLMessages.createXPATHWarning()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 17:02:40 26 4
gpt4 key购买 nike

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

XSLMessages.createXPATHWarning介绍

暂无

代码示例

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

/**
 * Warn the user of a problem.
 *
 * @param msg An error msgkey that corresponds to one of the constants found 
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is 
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which 
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to 
 *                              throw an exception.
 */
void warn(String msg, Object[] args) throws TransformerException
{
 String fmsg = XSLMessages.createXPATHWarning(msg, args);
 ErrorListener ehandler = this.getErrorListener();
 if (null != ehandler)
 {
  // TO DO: Need to get stylesheet Locator from here.
  ehandler.warning(new TransformerException(fmsg, m_sourceLocator));
 }
 else
 {
  // Should never happen.
  System.err.println(fmsg);
 }
}

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

/**
 * Warn the user of a problem.
 *
 * @param msg An error msgkey that corresponds to one of the constants found 
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is 
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which 
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to 
 *                              throw an exception.
 */
void warn(String msg, Object[] args) throws TransformerException
{
 String fmsg = XSLMessages.createXPATHWarning(msg, args);
 ErrorListener ehandler = this.getErrorListener();
 if (null != ehandler)
 {
  // TO DO: Need to get stylesheet Locator from here.
  ehandler.warning(new TransformerException(fmsg, m_sourceLocator));
 }
 else
 {
  // Should never happen.
  System.err.println(fmsg);
 }
}

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

/**
 * Warn the user of an problem.
 *
 * @param msg An error msgkey that corresponds to one of the constants found 
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is 
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which 
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to 
 *                              throw an exception.
 */
public void warn(String msg, Object[] args) throws TransformerException
{
 java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);
 if (null != m_errorHandler)
 {
  m_errorHandler.warning(new TransformerException(fmsg, m_locator));
 }
 else
 {
  System.out.println(fmsg
            +"; file "+m_locator.getSystemId()
            +"; line "+m_locator.getLineNumber()
            +"; column "+m_locator.getColumnNumber());
 }
}

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

/**
 * Warn the user of an problem.
 *
 * @param msg An error msgkey that corresponds to one of the constants found 
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is 
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which 
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to 
 *                              throw an exception.
 */
public void warn(String msg, Object[] args) throws TransformerException
{
 java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);
 if (null != m_errorHandler)
 {
  m_errorHandler.warning(new TransformerException(fmsg, m_locator));
 }
 else
 {
  System.out.println(fmsg
            +"; file "+m_locator.getSystemId()
            +"; line "+m_locator.getLineNumber()
            +"; column "+m_locator.getColumnNumber());
 }
}

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

/**
 * Warn the user of an problem.
 *
 * @param xctxt The XPath runtime context.
 * @param msg An error msgkey that corresponds to one of the conststants found
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to
 *                              throw an exception.
 *
 * @throws javax.xml.transform.TransformerException
 */
public void warn(XPathContext xctxt, String msg, Object[] args)
    throws javax.xml.transform.TransformerException
{
 java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);
 if (null != xctxt)
 {
  ErrorListener eh = xctxt.getErrorListener();
  // TO DO: Need to get stylesheet Locator from here.
  eh.warning(new TransformerException(fmsg, xctxt.getSAXLocator()));
 }
}

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

/**
 * Warn the user of an problem.
 *
 * @param xctxt The XPath runtime context.
 * @param sourceNode Not used.
 * @param msg An error msgkey that corresponds to one of the constants found 
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is 
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which 
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to 
 *                              throw an exception.
 */
public void warn(
    XPathContext xctxt, int sourceNode, String msg, Object[] args)
     throws javax.xml.transform.TransformerException
{
 String fmsg = XSLMessages.createXPATHWarning(msg, args);
 ErrorListener ehandler = xctxt.getErrorListener();
 if (null != ehandler)
 {
  // TO DO: Need to get stylesheet Locator from here.
  ehandler.warning(new TransformerException(fmsg, (SAXSourceLocator)xctxt.getSAXLocator()));
 }
}

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

/**
 * Warn the user of an problem.
 *
 * @param xctxt The XPath runtime context.
 * @param sourceNode Not used.
 * @param msg An error msgkey that corresponds to one of the constants found 
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is 
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which 
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to 
 *                              throw an exception.
 */
public void warn(
    XPathContext xctxt, int sourceNode, String msg, Object[] args)
     throws javax.xml.transform.TransformerException
{
 String fmsg = XSLMessages.createXPATHWarning(msg, args);
 ErrorListener ehandler = xctxt.getErrorListener();
 if (null != ehandler)
 {
  // TO DO: Need to get stylesheet Locator from here.
  ehandler.warning(new TransformerException(fmsg, (SAXSourceLocator)xctxt.getSAXLocator()));
 }
}

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

/**
 * Warn the user of an problem.
 *
 * @param xctxt The XPath runtime context.
 * @param msg An error msgkey that corresponds to one of the conststants found
 *            in {@link com.sun.org.apache.xpath.internal.res.XPATHErrorResources}, which is
 *            a key for a format string.
 * @param args An array of arguments represented in the format string, which
 *             may be null.
 *
 * @throws TransformerException if the current ErrorListoner determines to
 *                              throw an exception.
 *
 * @throws javax.xml.transform.TransformerException
 */
public void warn(XPathContext xctxt, String msg, Object[] args)
    throws javax.xml.transform.TransformerException
{
 java.lang.String fmsg = XSLMessages.createXPATHWarning(msg, args);
 if (null != xctxt)
 {
  ErrorListener eh = xctxt.getErrorListener();
  // TO DO: Need to get stylesheet Locator from here.
  eh.warning(new TransformerException(fmsg, xctxt.getSAXLocator()));
 }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com