/** * Get a function at a given index in this extension element * * * @param i Index of function to get * * @return Name of Function at given index * * @throws ArrayIndexOutOfBoundsException */ public String getFunction(int i) throws ArrayIndexOutOfBoundsException { if (null == m_functions) throw new ArrayIndexOutOfBoundsException(); return (String) m_functions.elementAt(i); }
/** * Get the element at the given index * * * @param i Index of element to get * * @return The element at the given index * * @throws ArrayIndexOutOfBoundsException */ public String getElement(int i) throws ArrayIndexOutOfBoundsException { if (null == m_elements) throw new ArrayIndexOutOfBoundsException(); return (String) m_elements.elementAt(i); }
/** * Get an "extension-element-prefix" property. * @see <a href="http://www.w3.org/TR/xslt#extension-element">extension-element in XSLT Specification</a> * * @param i Index of URI ("extension-element-prefix" property) to get * * @return URI at given index ("extension-element-prefix" property) * * @throws ArrayIndexOutOfBoundsException */ public String getExtensionElementPrefix(int i) throws ArrayIndexOutOfBoundsException { if (null == m_ExtensionElementURIs) throw new ArrayIndexOutOfBoundsException(); return m_ExtensionElementURIs.elementAt(i); }
/** * Get and "extension-element-prefix" property. * @see <a href="http://www.w3.org/TR/xslt#extension-element">extension-element in XSLT Specification</a> * * @param i Index of extension element URI in list * * @return The extension element URI at the given index * * @throws ArrayIndexOutOfBoundsException */ public String getExtensionElementPrefix(int i) throws ArrayIndexOutOfBoundsException { if (null == m_ExtensionElementURIs) throw new ArrayIndexOutOfBoundsException(); return m_ExtensionElementURIs.elementAt(i); }
/** * Get a function at a given index in this extension element * * * @param i Index of function to get * * @return Name of Function at given index * * @throws ArrayIndexOutOfBoundsException */ public String getFunction(int i) throws ArrayIndexOutOfBoundsException { if (null == m_functions) throw new ArrayIndexOutOfBoundsException(); return (String) m_functions.elementAt(i); }
/** * Get the element at the given index * * * @param i Index of element to get * * @return The element at the given index * * @throws ArrayIndexOutOfBoundsException */ public String getElement(int i) throws ArrayIndexOutOfBoundsException { if (null == m_elements) throw new ArrayIndexOutOfBoundsException(); return (String) m_elements.elementAt(i); }
/** * Get and "extension-element-prefix" property. * @see <a href="http://www.w3.org/TR/xslt#extension-element">extension-element in XSLT Specification</a> * * @param i Index of extension element URI in list * * @return The extension element URI at the given index * * @throws ArrayIndexOutOfBoundsException */ public String getExtensionElementPrefix(int i) throws ArrayIndexOutOfBoundsException { if (null == m_ExtensionElementURIs) throw new ArrayIndexOutOfBoundsException(); return m_ExtensionElementURIs.elementAt(i); }
/** * Get an "extension-element-prefix" property. * @see <a href="http://www.w3.org/TR/xslt#extension-element">extension-element in XSLT Specification</a> * * @param i Index of URI ("extension-element-prefix" property) to get * * @return URI at given index ("extension-element-prefix" property) * * @throws ArrayIndexOutOfBoundsException */ public String getExtensionElementPrefix(int i) throws ArrayIndexOutOfBoundsException { if (null == m_ExtensionElementURIs) throw new ArrayIndexOutOfBoundsException(); return m_ExtensionElementURIs.elementAt(i); }
/** * Get an "exclude-result-prefix" property. * The designation of a namespace as an excluded namespace is * effective within the subtree of the stylesheet rooted at * the element bearing the exclude-result-prefixes or * xsl:exclude-result-prefixes attribute; a subtree rooted * at an xsl:stylesheet element does not include any stylesheets * imported or included by children of that xsl:stylesheet element. * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a> * * @param i Index of prefix to get in list * * @return Prefix to be excluded at the given index * * @throws ArrayIndexOutOfBoundsException */ public String getExcludeResultPrefix(int i) throws ArrayIndexOutOfBoundsException { if (null == m_ExcludeResultPrefixs) throw new ArrayIndexOutOfBoundsException(); return m_ExcludeResultPrefixs.elementAt(i); }
/** * Get an "exclude-result-prefix" property. * The designation of a namespace as an excluded namespace is * effective within the subtree of the stylesheet rooted at * the element bearing the exclude-result-prefixes or * xsl:exclude-result-prefixes attribute; a subtree rooted * at an xsl:stylesheet element does not include any stylesheets * imported or included by children of that xsl:stylesheet element. * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a> * * @param i Index of prefix to get in list * * @return Prefix to be excluded at the given index * * @throws ArrayIndexOutOfBoundsException */ public String getExcludeResultPrefix(int i) throws ArrayIndexOutOfBoundsException { if (null == m_ExcludeResultPrefixs) throw new ArrayIndexOutOfBoundsException(); return m_ExcludeResultPrefixs.elementAt(i); }
/** * Get whether or not the passed prefix is contained flagged by * the "exclude-result-prefixes" property. * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a> * * @param prefix non-null reference to prefix that might be excluded. * @param uri reference to namespace that prefix maps to * * @return true if the prefix should normally be excluded.> */ public boolean containsExcludeResultPrefix(String prefix, String uri) { if (null == m_ExcludeResultPrefixs || uri == null ) return false; // This loop is ok here because this code only runs during // stylesheet compile time. for (int i =0; i< m_ExcludeResultPrefixs.size(); i++) { if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i)))) return true; } return false; /* if (prefix.length() == 0) prefix = Constants.ATTRVAL_DEFAULT_PREFIX; return m_ExcludeResultPrefixs.contains(prefix); */ }
/** * Get whether or not the passed prefix is contained flagged by * the "exclude-result-prefixes" property. * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a> * * @param prefix non-null reference to prefix that might be excluded. * @param uri reference to namespace that prefix maps to * * @return true if the prefix should normally be excluded.> */ public boolean containsExcludeResultPrefix(String prefix, String uri) { if (null == m_ExcludeResultPrefixs || uri == null ) return false; // This loop is ok here because this code only runs during // stylesheet compile time. for (int i =0; i< m_ExcludeResultPrefixs.size(); i++) { if (uri.equals(getNamespaceForPrefix(m_ExcludeResultPrefixs.elementAt(i)))) return true; } return false; /* if (prefix.length() == 0) prefix = Constants.ATTRVAL_DEFAULT_PREFIX; return m_ExcludeResultPrefixs.contains(prefix); */ }
for (int i =0; i< m_excludeResultPrefixes.size(); i++) if (uri.equals(getNamespaceForPrefix(m_excludeResultPrefixes.elementAt(i)))) return true;
for (int i =0; i< m_excludeResultPrefixes.size(); i++) if (uri.equals(getNamespaceForPrefix(m_excludeResultPrefixes.elementAt(i)))) return true;
/** Retrieve the SourceLocator associated with a specific node. * This is only meaningful if the XalanProperties.SOURCE_LOCATION flag was * set True using setProperty; if it was never set, or was set false, we * will return null. * * (We _could_ return a locator with the document's base URI and bogus * line/column information. Trying that; see the else clause.) * */ public SourceLocator getSourceLocatorFor(int node) { if (m_useSourceLocationProperty) { node = makeNodeIdentity(node); return new NodeLocator(null, m_sourceSystemId.elementAt(node), m_sourceLine.elementAt(node), m_sourceColumn.elementAt(node)); } else if(m_locator!=null) { return new NodeLocator(null,m_locator.getSystemId(),-1,-1); } else if(m_systemId!=null) { return new NodeLocator(null,m_systemId,-1,-1); } return null; }
/** Retrieve the SourceLocator associated with a specific node. * This is only meaningful if the XalanProperties.SOURCE_LOCATION flag was * set True using setProperty; if it was never set, or was set false, we * will return null. * * (We _could_ return a locator with the document's base URI and bogus * line/column information. Trying that; see the else clause.) * */ public SourceLocator getSourceLocatorFor(int node) { if (m_useSourceLocationProperty) { node = makeNodeIdentity(node); return new NodeLocator(null, m_sourceSystemId.elementAt(node), m_sourceLine.elementAt(node), m_sourceColumn.elementAt(node)); } else if(m_locator!=null) { return new NodeLocator(null,m_locator.getSystemId(),-1,-1); } else if(m_systemId!=null) { return new NodeLocator(null,m_systemId,-1,-1); } return null; }
/** * Get a function at a given index in this extension element * * * @param i Index of function to get * * @return Name of Function at given index * * @throws ArrayIndexOutOfBoundsException */ public String getFunction(int i) throws ArrayIndexOutOfBoundsException { if (null == m_functions) throw new ArrayIndexOutOfBoundsException(); return (String) m_functions.elementAt(i); }
/** * Get a function at a given index in this extension element * * * @param i Index of function to get * * @return Name of Function at given index * * @throws ArrayIndexOutOfBoundsException */ public String getFunction(int i) throws ArrayIndexOutOfBoundsException { if (null == m_functions) throw new ArrayIndexOutOfBoundsException(); return (String) m_functions.elementAt(i); }
/** * Get a function at a given index in this extension element * * * @param i Index of function to get * * @return Name of Function at given index * * @throws ArrayIndexOutOfBoundsException */ public String getFunction(int i) throws ArrayIndexOutOfBoundsException { if (null == m_functions) throw new ArrayIndexOutOfBoundsException(); return (String) m_functions.elementAt(i); }