com.sun.org.apache.xerces.internal.util.PropertyState

Here are the examples of the java api class com.sun.org.apache.xerces.internal.util.PropertyState taken from open source projects.

1. SchemaValidatorConfiguration#getProperty()

View license
/**
     * 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 Object getProperty(String propertyId) throws XMLConfigurationException {
    PropertyState state = getPropertyState(propertyId);
    if (state.isExceptional()) {
        throw new XMLConfigurationException(state.status, propertyId);
    }
    return state.state;
}

2. SchemaValidatorConfiguration#getProperty()

View license
public Object getProperty(String propertyId, Object defaultValue) {
    PropertyState state = getPropertyState(propertyId);
    if (state.isExceptional()) {
        return defaultValue;
    }
    return state.state;
}