public class ElemTemplate extends ElemTemplateElement
Modifier and Type | Field and Description |
---|---|
int |
m_frameSize
The stack frame size for this template, which is equal to the maximum number
of params and variables that can be declared in the template at one time.
|
m_docOrderNumber, m_hasVariableDecl, m_parentNode
actualEncoding, fDocumentURI
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
ElemTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
execute(TransformerImpl transformer)
Copy the template contents into the result tree.
|
XPath |
getMatch()
Get the "match" attribute.
|
QName |
getMode()
Get the "mode" attribute.
|
QName |
getName()
Get the "name" attribute.
|
String |
getNodeName()
Return the node name.
|
double |
getPriority()
Get the "priority" attribute.
|
String |
getPublicId()
Return the public identifier for the current document event.
|
Stylesheet |
getStylesheet()
Get the owning stylesheet.
|
StylesheetComposed |
getStylesheetComposed()
Get the stylesheet composed (resolves includes and
imports and has methods on it that return "composed" properties.
|
StylesheetRoot |
getStylesheetRoot()
Get the root stylesheet.
|
String |
getSystemId()
Return the system identifier for the current document event.
|
int |
getXSLToken()
Get an int constant identifying the type of element.
|
void |
recompose(StylesheetRoot root)
This function is called during recomposition to
control how this element is composed.
|
void |
setLocaterInfo(SourceLocator locator)
Set the location information for this element.
|
void |
setMatch(XPath v)
Set the "match" attribute.
|
void |
setMode(QName v)
Set the "mode" attribute.
|
void |
setName(QName v)
Set the "name" attribute.
|
void |
setPriority(double v)
Set the "priority" attribute.
|
void |
setStylesheet(Stylesheet sheet)
Set the owning stylesheet.
|
accept, appendChild, appendChild, callChildVisitors, callChildVisitors, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, containsExcludeResultPrefix, error, error, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPreviousSibling, getPreviousSiblingElem, getTagName, getUid, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setEndLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace
adoptNode, appendData, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getActualEncoding, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getInputEncoding, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSchemaTypeInfo, getSpecified, getStrictErrorChecking, getTextContent, getUserData, getWholeText, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isDefaultNamespace, isEqualNode, isId, isSameNode, isSupported, isWhitespaceInElementContent, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, renameNode, replaceData, replaceWholeText, setActualEncoding, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setDocumentURI, setIdAttribute, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInputEncoding, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setValue, setXmlEncoding, setXmlStandalone, setXmlVersion, splitText, substringData
public int m_frameSize
public String getPublicId()
This will be the public identifier
getPublicId
in interface SourceLocator
getPublicId
in class ElemTemplateElement
getSystemId()
public String getSystemId()
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
getSystemId
in interface SourceLocator
getSystemId
in class ElemTemplateElement
getPublicId()
public void setLocaterInfo(SourceLocator locator)
setLocaterInfo
in class ElemTemplateElement
locator
- SourceLocator holding location informationpublic StylesheetComposed getStylesheetComposed()
getStylesheetComposed
in class ElemTemplateElement
public Stylesheet getStylesheet()
getStylesheet
in class ElemTemplateElement
public void setStylesheet(Stylesheet sheet)
sheet
- The owning stylesheet for this elementpublic StylesheetRoot getStylesheetRoot()
getStylesheetRoot
in class ElemTemplateElement
public void setMatch(XPath v)
v
- Value to set for the "match" attributepublic XPath getMatch()
public void setName(QName v)
v
- Value to set the "name" attributepublic QName getName()
public void setMode(QName v)
v
- Value to set the "mode" attributepublic QName getMode()
public void setPriority(double v)
v
- The value to set for the "priority" attributepublic double getPriority()
public int getXSLToken()
getXSLToken
in class ElemTemplateElement
Constants
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class ElemTemplateElement
public void compose(StylesheetRoot sroot) throws TransformerException
compose
in class ElemTemplateElement
TransformerException
public void endCompose(StylesheetRoot sroot) throws TransformerException
endCompose
in class ElemTemplateElement
TransformerException
public void execute(TransformerImpl transformer) throws TransformerException
execute
in class ElemTemplateElement
transformer
- non-null reference to the the current transform-time state.TransformerException
public void recompose(StylesheetRoot root)
recompose
in class ElemTemplateElement
root
- The root stylesheet for this transformation.Copyright © 2019 JBoss by Red Hat. All rights reserved.