com.sun.org.apache.xerces.internal.xinclude.XIncludeNamespaceSupport Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.xinclude.XIncludeNamespaceSupport. 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: XIncludeParserConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #2
Source File: XIncludeParserConfiguration.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #3
Source File: XPointerParserConfiguration.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #4
Source File: XIncludeParserConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #5
Source File: XPointerParserConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #6
Source File: XIncludeParserConfiguration.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #7
Source File: XPointerParserConfiguration.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #8
Source File: XIncludeParserConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #9
Source File: XPointerParserConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #10
Source File: XIncludeParserConfiguration.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #11
Source File: XPointerParserConfiguration.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #12
Source File: XIncludeParserConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #13
Source File: XPointerParserConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #14
Source File: XPointerParserConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #15
Source File: XPointerParserConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #16
Source File: XIncludeParserConfiguration.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #17
Source File: XPointerParserConfiguration.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #18
Source File: XPointerParserConfiguration.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #19
Source File: XIncludeParserConfiguration.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #20
Source File: XIncludeParserConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #21
Source File: XPointerParserConfiguration.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XPointerParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    fXPointerHandler = new XPointerHandler();
    addCommonComponent(fXPointerHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, XPOINTER_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(XPOINTER_HANDLER, fXPointerHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());


}
 
Example #22
Source File: XIncludeParserConfiguration.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructs a parser configuration using the specified symbol table,
 * grammar pool, and parent settings.
 * <p>
 *
 * @param symbolTable    The symbol table to use.
 * @param grammarPool    The grammar pool to use.
 * @param parentSettings The parent settings.
 */
public XIncludeParserConfiguration(
    SymbolTable symbolTable,
    XMLGrammarPool grammarPool,
    XMLComponentManager parentSettings) {
    super(symbolTable, grammarPool, parentSettings);

    fXIncludeHandler = new XIncludeHandler();
    addCommonComponent(fXIncludeHandler);

    final String[] recognizedFeatures = {
        ALLOW_UE_AND_NOTATION_EVENTS,
        XINCLUDE_FIXUP_BASE_URIS,
        XINCLUDE_FIXUP_LANGUAGE
    };
    addRecognizedFeatures(recognizedFeatures);

    // add default recognized properties
    final String[] recognizedProperties =
        { XINCLUDE_HANDLER, NAMESPACE_CONTEXT };
    addRecognizedProperties(recognizedProperties);

    setFeature(ALLOW_UE_AND_NOTATION_EVENTS, true);
    setFeature(XINCLUDE_FIXUP_BASE_URIS, true);
    setFeature(XINCLUDE_FIXUP_LANGUAGE, true);

    setProperty(XINCLUDE_HANDLER, fXIncludeHandler);
    setProperty(NAMESPACE_CONTEXT, new XIncludeNamespaceSupport());
}
 
Example #23
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 #24
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);
}
 
Example #25
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 #26
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 #27
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 #28
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 #29
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 #30
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);
}