com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner. 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: XMLDocumentScannerImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #2
Source File: XMLDocumentScannerImpl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #3
Source File: XMLDocumentScannerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #4
Source File: XMLDocumentScannerImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #5
Source File: XMLDocumentScannerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #6
Source File: XMLDocumentScannerImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #7
Source File: XMLDocumentScannerImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #8
Source File: XMLDocumentScannerImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #9
Source File: XMLDocumentScannerImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #10
Source File: XMLDocumentScannerImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #11
Source File: XMLDocumentScannerImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 SAXNotRecognizedException The component should not throw
 *                                   this exception.
 * @throws SAXNotSupportedException The component should not throw
 *                                  this exception.
 */
public void setProperty(String propertyId, Object value)
throws XMLConfigurationException {

    super.setProperty(propertyId, value);

    // Xerces properties
    if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
        final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length();

        if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() &&
            propertyId.endsWith(Constants.DTD_SCANNER_PROPERTY)) {
            fDTDScanner = (XMLDTDScanner)value;
        }
        if (suffixLength == Constants.NAMESPACE_CONTEXT_PROPERTY.length() &&
            propertyId.endsWith(Constants.NAMESPACE_CONTEXT_PROPERTY)) {
            if (value != null) {
                fNamespaceContext = (NamespaceContext)value;
            }
        }

        return;
    }

}
 
Example #12
Source File: NonValidatingConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #13
Source File: DTDConfiguration.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #14
Source File: NonValidatingConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #15
Source File: NonValidatingConfiguration.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #16
Source File: DTDConfiguration.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #17
Source File: DTDConfiguration.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #18
Source File: NonValidatingConfiguration.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #19
Source File: NonValidatingConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #20
Source File: DTDConfiguration.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #21
Source File: NonValidatingConfiguration.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #22
Source File: DTDConfiguration.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #23
Source File: DTDConfiguration.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #24
Source File: DTDConfiguration.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #25
Source File: NonValidatingConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #26
Source File: DTDConfiguration.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #27
Source File: NonValidatingConfiguration.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #28
Source File: DTDConfiguration.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #29
Source File: NonValidatingConfiguration.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}
 
Example #30
Source File: DTDConfiguration.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** Create a DTD scanner. */
protected XMLDTDScanner createDTDScanner() {
    return new XMLDTDScannerImpl();
}