Java Code Examples for com.sun.org.apache.xerces.internal.util.FeatureState#isExceptional()

The following examples show how to use com.sun.org.apache.xerces.internal.util.FeatureState#isExceptional() . 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: SchemaValidatorConfiguration.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 2
Source File: SchemaValidatorConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 3
Source File: SchemaValidatorConfiguration.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 4
Source File: SchemaValidatorConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 5
Source File: SchemaValidatorConfiguration.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 6
Source File: SchemaValidatorConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 7
Source File: SchemaValidatorConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 8
Source File: SchemaValidatorConfiguration.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 9
Source File: SchemaValidatorConfiguration.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public boolean getFeature(String featureId, boolean defaultValue) {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}
 
Example 10
Source File: SchemaValidatorConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 11
Source File: SchemaValidatorConfiguration.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 12
Source File: SchemaValidatorConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 13
Source File: SchemaValidatorConfiguration.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 14
Source File: SchemaValidatorConfiguration.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 15
Source File: SchemaValidatorConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 16
Source File: SchemaValidatorConfiguration.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 17
Source File: SchemaValidatorConfiguration.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 18
Source File: SchemaValidatorConfiguration.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 19
Source File: SchemaValidatorConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}
 
Example 20
Source File: SchemaValidatorConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Returns the state of a feature.
 *
 * @param featureId The feature identifier.
 * @return true if the feature is supported
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public boolean getFeature(String featureId)
        throws XMLConfigurationException {
    FeatureState state = getFeatureState(featureId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, featureId);
    }
    return state.state;
}