Java Code Examples for com.sun.org.apache.xerces.internal.xni.parser.XMLComponent#setFeature()

The following examples show how to use com.sun.org.apache.xerces.internal.xni.parser.XMLComponent#setFeature() . 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: BasicParserConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 2
Source File: BasicParserConfiguration.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 3
Source File: BasicParserConfiguration.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 4
Source File: BasicParserConfiguration.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 5
Source File: BasicParserConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 6
Source File: BasicParserConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 7
Source File: BasicParserConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 8
Source File: BasicParserConfiguration.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 9
Source File: BasicParserConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 10
Source File: BasicParserConfiguration.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    int count = fComponents.size();
    for (int i = 0; i < count; i++) {
        XMLComponent c = (XMLComponent) fComponents.get(i);
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}
 
Example 11
Source File: BasicParserConfiguration.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Set the state of a feature.
 *
 * Set the state of any feature in a SAX2 parser.  The parser
 * might not recognize the feature, and if it does recognize
 * it, it might not be able to fulfill the request.
 *
 * @param featureId The unique identifier (URI) of the feature.
 * @param state The requested state of the feature (true or false).
 *
 * @exception com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException If the
 *            requested feature is not known.
 */
public void setFeature(String featureId, boolean state)
    throws XMLConfigurationException {

    // forward to every component
    for (XMLComponent c : fComponents) {
        c.setFeature(featureId, state);
    }
    // save state if noone "objects"
    super.setFeature(featureId, state);

}