本文整理了Java中org.apache.xalan.processor.XSLTElementProcessor
类的一些代码示例,展示了XSLTElementProcessor
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSLTElementProcessor
类的具体详情如下:
包路径:org.apache.xalan.processor.XSLTElementProcessor
类名称:XSLTElementProcessor
[英]This class acts as the superclass for all stylesheet element processors, and deals with things that are common to all elements.
[中]这个类充当所有样式表元素处理器的超类,处理所有元素共有的事情。
代码示例来源:origin: robovm/robovm
XSLTElementDef def = elemProcessor.getElemDef();
elemProcessor.characters(this, ch, start, length);
代码示例来源:origin: robovm/robovm
/**
* Receive notification of the end of an element.
*
* @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
* @param uri The Namespace URI, or an empty string.
* @param localName The local name (without prefix), or empty string if not namespace processing.
* @param rawName The qualified name (with prefix).
*/
public void endElement(
StylesheetHandler handler, String uri, String localName, String rawName)
throws org.xml.sax.SAXException
{
super.endElement(handler, uri, localName, rawName);
handler.popElemTemplateElement();
handler.popStylesheet();
}
}
代码示例来源:origin: robovm/robovm
/**
* Receive notification of ignorable whitespace in element content.
*
* @param ch The whitespace characters.
* @param start The start position in the character array.
* @param length The number of characters to use from the
* character array.
* @see org.xml.sax.ContentHandler#ignorableWhitespace
*
* @throws org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
*/
public void ignorableWhitespace(char ch[], int start, int length)
throws org.xml.sax.SAXException
{
if (!m_shouldProcess)
return;
getCurrentProcessor().ignorableWhitespace(this, ch, start, length);
}
代码示例来源:origin: robovm/robovm
/**
* Set the XSLTElementProcessor for this element.
*
* @param handler The element processor for this element.
* @xsl.usage internal
*/
public void setElementProcessor(XSLTElementProcessor handler)
{
if (handler != null)
{
m_elementProcessor = handler;
m_elementProcessor.setElemDef(this);
}
}
代码示例来源:origin: robovm/robovm
/**
* Set the properties of an object from the given attribute list.
* @param handler The stylesheet's Content handler, needed for
* error reporting.
* @param rawName The raw name of the owner element, needed for
* error reporting.
* @param attributes The list of attributes.
* @param target The target element where the properties will be set.
*/
void setPropertiesFromAttributes(
StylesheetHandler handler, String rawName, Attributes attributes,
ElemTemplateElement target)
throws org.xml.sax.SAXException
{
setPropertiesFromAttributes(handler, rawName, attributes, target, true);
}
代码示例来源:origin: robovm/robovm
/**
* Receive notification of a notation declaration.
*
* <p>By default, do nothing. Application writers may override this
* method in a subclass if they wish to keep track of the notations
* declared in a document.</p>
*
* @param name The notation name.
* @param publicId The notation public identifier, or null if not
* available.
* @param systemId The notation system identifier.
* @see org.xml.sax.DTDHandler#notationDecl
*/
public void notationDecl(String name, String publicId, String systemId)
{
getCurrentProcessor().notationDecl(this, name, publicId, systemId);
}
代码示例来源:origin: robovm/robovm
/**
* Resolve an external entity.
*
* @param publicId The public identifer, or null if none is
* available.
* @param systemId The system identifier provided in the XML
* document.
* @return The new input source, or null to require the
* default behaviour.
*
* @throws org.xml.sax.SAXException if the entity can not be resolved.
*/
public InputSource resolveEntity(String publicId, String systemId)
throws org.xml.sax.SAXException
{
return getCurrentProcessor().resolveEntity(this, publicId, systemId);
}
代码示例来源:origin: robovm/robovm
/**
* Receive notification of a skipped entity.
*
* <p>By default, do nothing. Application writers may override this
* method in a subclass to take specific actions for each
* processing instruction, such as setting status variables or
* invoking other methods.</p>
*
* @param name The name of the skipped entity.
* @see org.xml.sax.ContentHandler#processingInstruction
*
* @throws org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
*/
public void skippedEntity(String name) throws org.xml.sax.SAXException
{
if (!m_shouldProcess)
return;
getCurrentProcessor().skippedEntity(this, name);
}
代码示例来源:origin: robovm/robovm
getCurrentProcessor().processingInstruction(this, target, data);
代码示例来源:origin: robovm/robovm
/**
* Receive notification of the end of an element.
*
* @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
* @param uri The Namespace URI, or an empty string.
* @param localName The local name (without prefix), or empty string if not namespace processing.
* @param rawName The qualified name (with prefix).
*/
public void endElement(
StylesheetHandler handler, String uri, String localName, String rawName)
throws org.xml.sax.SAXException
{
if (m_savedLastOrder != null && !m_savedLastOrder.empty())
getElemDef().setLastOrder(m_savedLastOrder.pop());
if (!getElemDef().getRequiredFound())
handler.error(XSLTErrorResources.ER_REQUIRED_ELEM_NOT_FOUND, new Object[]{getElemDef().getRequiredElem()}, null);
}
代码示例来源:origin: xalan/xalan
/**
* Set the XSLTElementProcessor for this element.
*
* @param handler The element processor for this element.
* @xsl.usage internal
*/
public void setElementProcessor(XSLTElementProcessor handler)
{
if (handler != null)
{
m_elementProcessor = handler;
m_elementProcessor.setElemDef(this);
}
}
代码示例来源:origin: xalan/xalan
/**
* Set the properties of an object from the given attribute list.
* @param handler The stylesheet's Content handler, needed for
* error reporting.
* @param rawName The raw name of the owner element, needed for
* error reporting.
* @param attributes The list of attributes.
* @param target The target element where the properties will be set.
*/
void setPropertiesFromAttributes(
StylesheetHandler handler, String rawName, Attributes attributes,
ElemTemplateElement target)
throws org.xml.sax.SAXException
{
setPropertiesFromAttributes(handler, rawName, attributes, target, true);
}
代码示例来源:origin: xalan/xalan
/**
* Receive notification of a notation declaration.
*
* <p>By default, do nothing. Application writers may override this
* method in a subclass if they wish to keep track of the notations
* declared in a document.</p>
*
* @param name The notation name.
* @param publicId The notation public identifier, or null if not
* available.
* @param systemId The notation system identifier.
* @see org.xml.sax.DTDHandler#notationDecl
*/
public void notationDecl(String name, String publicId, String systemId)
{
getCurrentProcessor().notationDecl(this, name, publicId, systemId);
}
代码示例来源:origin: xalan/xalan
/**
* Resolve an external entity.
*
* @param publicId The public identifer, or null if none is
* available.
* @param systemId The system identifier provided in the XML
* document.
* @return The new input source, or null to require the
* default behaviour.
*
* @throws org.xml.sax.SAXException if the entity can not be resolved.
*/
public InputSource resolveEntity(String publicId, String systemId)
throws org.xml.sax.SAXException
{
return getCurrentProcessor().resolveEntity(this, publicId, systemId);
}
代码示例来源:origin: xalan/xalan
/**
* Receive notification of a skipped entity.
*
* <p>By default, do nothing. Application writers may override this
* method in a subclass to take specific actions for each
* processing instruction, such as setting status variables or
* invoking other methods.</p>
*
* @param name The name of the skipped entity.
* @see org.xml.sax.ContentHandler#processingInstruction
*
* @throws org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
*/
public void skippedEntity(String name) throws org.xml.sax.SAXException
{
if (!m_shouldProcess)
return;
getCurrentProcessor().skippedEntity(this, name);
}
代码示例来源:origin: xalan/xalan
getCurrentProcessor().processingInstruction(this, target, data);
代码示例来源:origin: robovm/robovm
/**
* Receive notification of the start of an element.
*
* @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
* @param uri The Namespace URI, or an empty string.
* @param localName The local name (without prefix), or empty string if not namespace processing.
* @param rawName The qualified name (with prefix).
* @param attributes The specified or defaulted attributes.
*/
public void startElement(
StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
throws org.xml.sax.SAXException
{
if (m_savedLastOrder == null)
m_savedLastOrder = new IntStack();
m_savedLastOrder.push(getElemDef().getLastOrder());
getElemDef().setLastOrder(-1);
}
代码示例来源:origin: xalan/xalan
XSLTElementDef def = elemProcessor.getElemDef();
elemProcessor.characters(this, ch, start, length);
代码示例来源:origin: xalan/xalan
/**
* Receive notification of the end of an element.
*
* @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
* @param uri The Namespace URI, or an empty string.
* @param localName The local name (without prefix), or empty string if not namespace processing.
* @param rawName The qualified name (with prefix).
*/
public void endElement(
StylesheetHandler handler, String uri, String localName, String rawName)
throws org.xml.sax.SAXException
{
super.endElement(handler, uri, localName, rawName);
handler.popElemTemplateElement();
handler.popStylesheet();
}
}
代码示例来源:origin: MobiVM/robovm
/**
* Set the XSLTElementProcessor for this element.
*
* @param handler The element processor for this element.
* @xsl.usage internal
*/
public void setElementProcessor(XSLTElementProcessor handler)
{
if (handler != null)
{
m_elementProcessor = handler;
m_elementProcessor.setElemDef(this);
}
}
内容来源于网络,如有侵权,请联系作者删除!