Java Code Examples for com.sun.org.apache.xerces.internal.util.PropertyState#is()

The following examples show how to use com.sun.org.apache.xerces.internal.util.PropertyState#is() . 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: XMLSchemaValidatorComponentManager.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
        throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    final Object component = fComponents.get(propertyId);
    if (component != null) {
        return PropertyState.is(component);
    }
    else if (fComponents.containsKey(propertyId)) {
        return PropertyState.is(null);
    }
    return super.getPropertyState(propertyId);
}
 
Example 2
Source File: DTDConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 3
Source File: SchemaValidatorConfiguration.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId) {
    if (XMLGRAMMAR_POOL.equals(propertyId)) {
        return PropertyState.is(fGrammarPool);
    }
    else if (VALIDATION_MANAGER.equals(propertyId)) {
        return PropertyState.is(fValidationManager);
    }
    return fParentComponentManager.getPropertyState(propertyId);
}
 
Example 4
Source File: NonValidatingConfiguration.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 5
Source File: NonValidatingConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 6
Source File: DTDConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 7
Source File: NonValidatingConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 8
Source File: XMLSchemaValidatorComponentManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
        throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    final Object component = fComponents.get(propertyId);
    if (component != null) {
        return PropertyState.is(component);
    }
    else if (fComponents.containsKey(propertyId)) {
        return PropertyState.is(null);
    }
    return super.getPropertyState(propertyId);
}
 
Example 9
Source File: DTDConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 10
Source File: XMLSchemaValidatorComponentManager.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
        throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    final Object component = fComponents.get(propertyId);
    if (component != null) {
        return PropertyState.is(component);
    }
    else if (fComponents.containsKey(propertyId)) {
        return PropertyState.is(null);
    }
    return super.getPropertyState(propertyId);
}
 
Example 11
Source File: DTDConfiguration.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 12
Source File: XMLSchemaValidatorComponentManager.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
        throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    final Object component = fComponents.get(propertyId);
    if (component != null) {
        return PropertyState.is(component);
    }
    else if (fComponents.containsKey(propertyId)) {
        return PropertyState.is(null);
    }
    return super.getPropertyState(propertyId);
}
 
Example 13
Source File: SchemaValidatorConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public PropertyState getPropertyState(String propertyId) {
    if (XMLGRAMMAR_POOL.equals(propertyId)) {
        return PropertyState.is(fGrammarPool);
    }
    else if (VALIDATION_MANAGER.equals(propertyId)) {
        return PropertyState.is(fValidationManager);
    }
    return fParentComponentManager.getPropertyState(propertyId);
}
 
Example 14
Source File: XMLSchemaValidatorComponentManager.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
        throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    final Object component = fComponents.get(propertyId);
    if (component != null) {
        return PropertyState.is(component);
    }
    else if (fComponents.containsKey(propertyId)) {
        return PropertyState.is(null);
    }
    return super.getPropertyState(propertyId);
}
 
Example 15
Source File: XML11Configuration.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 16
Source File: XML11Configuration.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 17
Source File: SchemaParsingConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 18
Source File: SchemaParsingConfig.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 19
Source File: SchemaParsingConfig.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}
 
Example 20
Source File: SchemaParsingConfig.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the value of a property.
 *
 * @param propertyId The property identifier.
 * @return the value of the property
 *
 * @throws XMLConfigurationException Thrown for configuration error.
 *                                   In general, components should
 *                                   only throw this exception if
 *                                   it is <strong>really</strong>
 *                                   a critical error.
 */
public PropertyState getPropertyState(String propertyId)
    throws XMLConfigurationException {
    if (LOCALE.equals(propertyId)) {
        return PropertyState.is(getLocale());
    }
    return super.getPropertyState(propertyId);
}