Class 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:
  • Constructor Details

    • ElemExtensionDecl

      public ElemExtensionDecl()
      Constructor ElemExtensionDecl
  • Method Details

    • setPrefix

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

      public String getPrefix()
      Get the prefix for this extension element
      Specified by:
      getPrefix in interface Node
      Overrides:
      getPrefix in class UnImplNode
      Returns:
      Prefix for this extension element
    • 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
    • getFunctions

      public StringVector getFunctions()
      Get the names of functions defined in this extension
      Returns:
      StringVector holding the names of functions defined in 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
      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

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

      public StringVector getElements()
      Get StringVector of elements defined for this extension
      Returns:
      StringVector of elements defined for this extension
    • 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
      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:
      getXSLToken in class ElemTemplateElement
      Returns:
      The token ID for this element
      See Also:
    • compose

      public void compose(StylesheetRoot sroot) throws TransformerException
      Description copied from class: ElemTemplateElement
      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.
      Overrides:
      compose in class ElemTemplateElement
      Throws:
      TransformerException
    • 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 class ElemTemplateElement
      Parameters:
      transformer - The XSLT TransformerFactory.
      Throws:
      TransformerException