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

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

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

XSLTElementDef.setLastOrder介绍

[英]Set the highest order of child elements have appeared so far .
[中]设置到目前为止出现的子元素的最高顺序。

代码示例

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

代码示例来源: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: robovm/robovm

  1. setLastOrder(order);
  2. else if (order == lastOrder && !multiAllowed)

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

  1. setLastOrder(order);
  2. else if (order == lastOrder && !multiAllowed)

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

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

  1. /**
  2. * Receive notification of the start 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. * @param attributes The specified or defaulted attributes.
  9. */
  10. public void startElement(
  11. StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
  12. throws org.xml.sax.SAXException
  13. {
  14. if (m_savedLastOrder == null)
  15. m_savedLastOrder = new IntStack();
  16. m_savedLastOrder.push(getElemDef().getLastOrder());
  17. getElemDef().setLastOrder(-1);
  18. }

代码示例来源: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: 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: 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: 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: 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.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: 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. }

相关文章