Package org.apache.xalan.templates
Class ElemExtensionDecl
java.lang.Object
org.apache.xml.utils.UnImplNode
org.apache.xalan.templates.ElemTemplateElement
org.apache.xalan.templates.ElemExtensionDecl
- All Implemented Interfaces:
Serializable,SourceLocator,XSLTVisitable,PrefixResolver,ExpressionNode,WhitespaceStrippingElementMatcher,Document,Element,Node,NodeList
public class ElemExtensionDecl extends ElemTemplateElement
Implement the declaration of an extension element
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement
m_docOrderNumber, m_hasVariableDecl, m_parentNodeFields inherited from class org.apache.xml.utils.UnImplNode
actualEncoding, fDocumentURIFields inherited from interface org.w3c.dom.Node
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 Summary
Constructors Constructor Description ElemExtensionDecl()Constructor ElemExtensionDecl -
Method Summary
Modifier and Type Method Description voidcompose(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.StringgetElement(int i)Get the element at the given indexintgetElementCount()Return the count of elements defined for this extension elementStringVectorgetElements()Get StringVector of elements defined for this extensionStringgetFunction(int i)Get a function at a given index in this extension elementintgetFunctionCount()Get count of functions defined in this extension elementStringVectorgetFunctions()Get the names of functions defined in this extensionStringgetPrefix()Get the prefix for this extension elementintgetXSLToken()Get an int constant identifying the type of element.voidruntimeInit(TransformerImpl transformer)This function will be called on top-level elements only, just before the transform begins.voidsetElements(StringVector v)Set StringVector of elements for this extensionvoidsetFunctions(StringVector v)Set the names of functions defined in this extensionvoidsetPrefix(String v)Set the prefix for this extension elementMethods inherited from class org.apache.xalan.templates.ElemTemplateElement
accept, appendChild, appendChild, callChildVisitors, callChildVisitors, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, containsExcludeResultPrefix, endCompose, error, error, execute, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeName, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, recompose, removeChild, replaceChild, replaceChild, resolvePrefixTables, setDOMBackPointer, setEndLocaterInfo, setLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpaceMethods inherited from class org.apache.xml.utils.UnImplNode
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, 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, setStrictErrorChecking, setTextContent, setUserData, setValue, setXmlEncoding, setXmlStandalone, setXmlVersion, splitText, substringData
-
Constructor Details
-
ElemExtensionDecl
public ElemExtensionDecl()Constructor ElemExtensionDecl
-
-
Method Details
-
setPrefix
Set the prefix for this extension element- Specified by:
setPrefixin interfaceNode- Overrides:
setPrefixin classUnImplNode- Parameters:
v- Prefix to set for this extension element
-
getPrefix
Get the prefix for this extension element- Specified by:
getPrefixin interfaceNode- Overrides:
getPrefixin classUnImplNode- Returns:
- Prefix for this extension element
-
setFunctions
Set the names of functions defined in this extension- Parameters:
v- StringVector holding the names of functions defined in this extension
-
getFunctions
Get the names of functions defined in this extension- Returns:
- StringVector holding the names of functions defined in this extension
-
getFunction
Get a function at a given index in this extension element- Parameters:
i- Index of function to get- Returns:
- Name of Function at given index
- Throws:
ArrayIndexOutOfBoundsException
-
getFunctionCount
public int getFunctionCount()Get count of functions defined in this extension element- Returns:
- count of functions defined in this extension element
-
setElements
Set StringVector of elements for this extension- Parameters:
v- StringVector of elements to set
-
getElements
Get StringVector of elements defined for this extension- Returns:
- StringVector of elements defined for this extension
-
getElement
Get the element at the given index- Parameters:
i- Index of element to get- Returns:
- The element at the given index
- Throws:
ArrayIndexOutOfBoundsException
-
getElementCount
public int getElementCount()Return the count of elements defined for this extension element- Returns:
- the count of elements defined for this extension element
-
getXSLToken
public int getXSLToken()Get an int constant identifying the type of element.- Overrides:
getXSLTokenin classElemTemplateElement- Returns:
- The token ID for this element
- See Also:
Constants
-
compose
Description copied from class:ElemTemplateElementThis 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.- Overrides:
composein classElemTemplateElement- Throws:
TransformerException
-
runtimeInit
This function will be called on top-level elements only, just before the transform begins.- Overrides:
runtimeInitin classElemTemplateElement- Parameters:
transformer- The XSLT TransformerFactory.- Throws:
TransformerException
-