Java Code Examples for com.sun.org.apache.xerces.internal.impl.Constants#ERROR_REPORTER_PROPERTY

The following examples show how to use com.sun.org.apache.xerces.internal.impl.Constants#ERROR_REPORTER_PROPERTY . 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: XPointerHandler.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 2
Source File: XPointerHandler.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 3
Source File: XPointerHandler.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 4
Source File: XPointerHandler.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 5
Source File: XPointerHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 6
Source File: XPointerHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 7
Source File: XPointerHandler.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 8
Source File: XPointerHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 9
Source File: XPointerHandler.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 10
Source File: XPointerHandler.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}
 
Example 11
Source File: XPointerHandler.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <p>
 * Sets the value of a property. This method is called by the component
 * manager any time after reset when a property changes value.
 * </p>
 * <strong>Note:</strong> Components should silently ignore properties
 * that do not affect the operation of the component.
 *
 * @param propertyId The property identifier.
 * @param value      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 void setProperty(String propertyId, Object value)
        throws XMLConfigurationException {

    // Error reporter
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_REPORTER_PROPERTY) {
        if (value != null) {
            fXPointerErrorReporter = (XMLErrorReporter) value;
        } else {
            fXPointerErrorReporter = null;
        }
    }

    // Error handler
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.ERROR_HANDLER_PROPERTY) {
        if (value != null) {
            fErrorHandler = (XMLErrorHandler) value;
        } else {
            fErrorHandler = null;
        }
    }

    // xml:lang
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_LANGUAGE_FEATURE) {
        if (value != null) {
            fFixupLang = ((Boolean)value).booleanValue();
        } else {
            fFixupLang = false;
        }
    }

    // xml:base
    if (propertyId == Constants.XERCES_FEATURE_PREFIX
            + Constants.XINCLUDE_FIXUP_BASE_URIS_FEATURE) {
        if (value != null) {
            fFixupBase = ((Boolean)value).booleanValue();
        } else {
            fFixupBase = false;
        }
    }

    //
    if (propertyId == Constants.XERCES_PROPERTY_PREFIX
            + Constants.NAMESPACE_CONTEXT_PROPERTY) {
        fNamespaceContext = (XIncludeNamespaceSupport) value;
    }

    super.setProperty(propertyId, value);
}