org.xml.sax.ext.Attributes2 Java Examples

The following examples show how to use org.xml.sax.ext.Attributes2. 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: ValidatorHandlerImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #2
Source File: ValidatorHandlerImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #3
Source File: ValidatorHandlerImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #4
Source File: ValidatorHandlerImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #5
Source File: ValidatorHandlerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #6
Source File: ValidatorHandlerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #7
Source File: ValidatorHandlerImpl.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #8
Source File: ValidatorHandlerImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #9
Source File: ValidatorHandlerImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #10
Source File: ValidatorHandlerImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #11
Source File: ValidatorHandlerImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/** Fills in the XMLAttributes object. */
private void fillXMLAttributes2(Attributes2 att) {
    fAttributes.removeAllAttributes();
    final int len = att.getLength();
    for (int i = 0; i < len; ++i) {
        fillXMLAttribute(att, i);
        fAttributes.setSpecified(i, att.isSpecified(i));
        if (att.isDeclared(i)) {
            fAttributes.getAugmentations(i).putItem(Constants.ATTRIBUTE_DECLARED, Boolean.TRUE);
        }
    }
}
 
Example #12
Source File: NamespaceReplacer.java    From jlibs with Apache License 2.0 5 votes vote down vote up
private Attributes replace(Attributes attrs){
    if(attrs instanceof Attributes2){
        attribute2Replacer.setDelegate((Attributes2)attrs);
        return attribute2Replacer;
    }else{
        attributeReplacer.setDelegate(attrs);
        return attributeReplacer;
    }
}
 
Example #13
Source File: NamespaceReplacer.java    From jlibs with Apache License 2.0 4 votes vote down vote up
public void setDelegate(Attributes2 delegate){
    super.setDelegate(delegate);
    this.delegate = delegate;
}