Java Code Examples for com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable#keys()

The following examples show how to use com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable#keys() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransformerImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The translet stores all CDATA sections set in the <xsl:output> element
 * in a Hashtable. This method will re-construct the whitespace separated
 * list of elements given in the <xsl:output> element.
 */
private String makeCDATAString(Hashtable cdata) {
    // Return a 'null' string if no CDATA section elements were specified
    if (cdata == null) return null;

    final StringBuilder result = new StringBuilder();

    // Get an enumeration of all the elements in the hashtable
    Enumeration elements = cdata.keys();
    if (elements.hasMoreElements()) {
        result.append((String)elements.nextElement());
        while (elements.hasMoreElements()) {
            String element = (String)elements.nextElement();
            result.append(' ');
            result.append(element);
        }
    }

    return(result.toString());
}
 
Example 2
Source File: TransformerImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The translet stores all CDATA sections set in the <xsl:output> element
 * in a Hashtable. This method will re-construct the whitespace separated
 * list of elements given in the <xsl:output> element.
 */
private String makeCDATAString(Hashtable cdata) {
    // Return a 'null' string if no CDATA section elements were specified
    if (cdata == null) return null;

    final StringBuilder result = new StringBuilder();

    // Get an enumeration of all the elements in the hashtable
    Enumeration elements = cdata.keys();
    if (elements.hasMoreElements()) {
        result.append((String)elements.nextElement());
        while (elements.hasMoreElements()) {
            String element = (String)elements.nextElement();
            result.append(' ');
            result.append(element);
        }
    }

    return(result.toString());
}
 
Example 3
Source File: TransformerImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * The translet stores all CDATA sections set in the <xsl:output> element
 * in a Hashtable. This method will re-construct the whitespace separated
 * list of elements given in the <xsl:output> element.
 */
private String makeCDATAString(Hashtable cdata) {
    // Return a 'null' string if no CDATA section elements were specified
    if (cdata == null) return null;

    final StringBuilder result = new StringBuilder();

    // Get an enumeration of all the elements in the hashtable
    Enumeration elements = cdata.keys();
    if (elements.hasMoreElements()) {
        result.append((String)elements.nextElement());
        while (elements.hasMoreElements()) {
            String element = (String)elements.nextElement();
            result.append(' ');
            result.append(element);
        }
    }

    return(result.toString());
}