org.apache.xalan.templates

Class ElemExtensionDecl

Implemented Interfaces:
Document, Element, ExpressionNode, Node, NodeList, PrefixResolver, Serializable, SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable

public class ElemExtensionDecl
extends ElemTemplateElement

Implement the declaration of an extension element

Fields inherited from interface org.w3c.dom.Node

ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE

Constructor Summary

ElemExtensionDecl()
Constructor ElemExtensionDecl

Method Summary

void
compose(StylesheetRoot sroot)
String
getElement(int i)
Get the element at the given index
int
getElementCount()
Return the count of elements defined for this extension element
StringVector
getElements()
Get StringVector of elements defined for this extension
String
getFunction(int i)
Get a function at a given index in this extension element
int
getFunctionCount()
Get count of functions defined in this extension element
StringVector
getFunctions()
Get the names of functions defined in this extension
String
getPrefix()
Get the prefix for this extension element
int
getXSLToken()
Get an int constant identifying the type of element.
void
runtimeInit(TransformerImpl transformer)
This function will be called on top-level elements only, just before the transform begins.
void
setElements(StringVector v)
Set StringVector of elements for this extension
void
setFunctions(StringVector v)
Set the names of functions defined in this extension
void
setPrefix(String v)
Set the prefix for this extension element

Methods inherited from class org.apache.xalan.templates.ElemTemplateElement

appendChild, appendChild, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, compose, containsExcludeResultPrefix, endCompose, error, error, execute, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDOMBackPointer, getDeclaredPrefixes, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeName, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPrefixes, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXSLToken, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, recompose, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setEndLocaterInfo, setLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace

Methods inherited from class org.apache.xml.utils.UnImplNode

adoptNode, appendChild, appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, error, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getChildNodes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getFirstChild, getImplementation, getLastChild, getLength, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerElement, getParentNode, getPrefix, getPreviousSibling, getSpecified, getStandalone, getStrictErrorChecking, getTagName, getVersion, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importNode, insertBefore, insertData, isSupported, item, normalize, removeAttribute, removeAttributeNS, removeAttributeNode, removeChild, replaceChild, replaceData, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setData, setEncoding, setNodeValue, setPrefix, setStandalone, setStrictErrorChecking, setValue, setVersion, splitText, substringData

Constructor Details

ElemExtensionDecl

public ElemExtensionDecl()
Constructor ElemExtensionDecl

Method Details

compose

public void compose(StylesheetRoot sroot)
            throws TransformerException
Overrides:
compose in interface ElemTemplateElement

getElement

public String getElement(int i)
            throws ArrayIndexOutOfBoundsException
Get the element at the given index
Parameters:
i - Index of element to get
Returns:
The element at the given index

getElementCount

public int getElementCount()
Return the count of elements defined for this extension element
Returns:
the count of elements defined for this extension element

getElements

public StringVector getElements()
Get StringVector of elements defined for this extension
Returns:
StringVector of elements defined for this extension

getFunction

public String getFunction(int i)
            throws ArrayIndexOutOfBoundsException
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

getFunctionCount

public int getFunctionCount()
Get count of functions defined in this extension element
Returns:
count of functions defined in this extension element

getFunctions

public StringVector getFunctions()
Get the names of functions defined in this extension
Returns:
StringVector holding the names of functions defined in this extension

getPrefix

public String getPrefix()
Get the prefix for this extension element
Specified by:
getPrefix in interface Node
Overrides:
getPrefix in interface UnImplNode
Returns:
Prefix for this extension element

getXSLToken

public int getXSLToken()
Get an int constant identifying the type of element.
Overrides:
getXSLToken in interface ElemTemplateElement
Returns:
The token ID for this element
See Also:
Constants

runtimeInit

public void runtimeInit(TransformerImpl transformer)
            throws TransformerException
This function will be called on top-level elements only, just before the transform begins.
Overrides:
runtimeInit in interface ElemTemplateElement
Parameters:
transformer - The XSLT TransformerFactory.

setElements

public void setElements(StringVector v)
Set StringVector of elements for this extension
Parameters:
v - StringVector of elements to set

setFunctions

public void setFunctions(StringVector v)
Set the names of functions defined in this extension
Parameters:
v - StringVector holding the names of functions defined in this extension

setPrefix

public void setPrefix(String v)
Set the prefix for this extension element
Specified by:
setPrefix in interface Node
Overrides:
setPrefix in interface UnImplNode
Parameters:
v - Prefix to set for this extension element

Copyright B) 2004 Apache XML Project. All Rights Reserved.