org.apache.xalan.processor.XSLTElementDef.getRequiredElem()方法的使用及代码示例

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

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

XSLTElementDef.getRequiredElem介绍

[英]Get required elements that were not found.
[中]获取未找到的必需元素。

代码示例

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: xalan/xalan

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Receive notification of the end of an element.
  3. *
  4. * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
  5. * @param uri The Namespace URI, or an empty string.
  6. * @param localName The local name (without prefix), or empty string if not namespace processing.
  7. * @param rawName The qualified name (with prefix).
  8. */
  9. public void endElement(
  10. StylesheetHandler handler, String uri, String localName, String rawName)
  11. throws org.xml.sax.SAXException
  12. {
  13. if (m_savedLastOrder != null && !m_savedLastOrder.empty())
  14. getElemDef().setLastOrder(m_savedLastOrder.pop());
  15. if (!getElemDef().getRequiredFound())
  16. handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
  17. }

相关文章