org.apache.xalan.templates

Class ElemExtensionDecl

public class ElemExtensionDecl extends ElemTemplateElement

Implement the declaration of an extension element

UNKNOWN: internal

Constructor Summary
ElemExtensionDecl()
Constructor ElemExtensionDecl
Method Summary
voidcompose(StylesheetRoot sroot)
StringgetElement(int i)
Get the element at the given index
intgetElementCount()
Return the count of elements defined for this extension element
StringVectorgetElements()
Get StringVector of elements defined for this extension
StringgetFunction(int i)
Get a function at a given index in this extension element
intgetFunctionCount()
Get count of functions defined in this extension element
StringVectorgetFunctions()
Get the names of functions defined in this extension
StringgetPrefix()
Get the prefix for this extension element
intgetXSLToken()
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 extension
voidsetFunctions(StringVector v)
Set the names of functions defined in this extension
voidsetPrefix(String v)
Set the prefix for this extension element

Constructor Detail

ElemExtensionDecl

public ElemExtensionDecl()
Constructor ElemExtensionDecl

Method Detail

compose

public void compose(StylesheetRoot sroot)

getElement

public String getElement(int i)
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

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)
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

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

Returns: Prefix for this extension element

getXSLToken

public int getXSLToken()
Get an int constant identifying the type of element.

Returns: The token ID for this element

See Also:

runtimeInit

public void runtimeInit(TransformerImpl transformer)
This function will be called on top-level elements only, just before the transform begins.

Parameters: transformer The XSLT TransformerFactory.

Throws: TransformerException

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

Parameters: v Prefix to set for this extension element

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