FileDocCategorySizeDatePackage
XNI2SAXEx.javaAPI DocJava SE 5 API4523Fri Aug 26 14:55:54 BST 2005com.sun.org.apache.xerces.internal.jaxp.validation

XNI2SAXEx

public class XNI2SAXEx extends com.sun.org.apache.xerces.internal.jaxp.XNI2SAX
{@link XNI2SAX} extension that remembers the current infoset augmentation.
author
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Fields Summary
private Augmentations
fCurrentAugs
private XMLAttributes
fCurrentAtts
Constructors Summary
Methods Summary
public voidemptyElement(com.sun.org.apache.xerces.internal.xni.QName element, com.sun.org.apache.xerces.internal.xni.XMLAttributes attributes, com.sun.org.apache.xerces.internal.xni.Augmentations augs)

        startElement(element,attributes,augs);
        endElement(element,augs);
    
public voidendElement(com.sun.org.apache.xerces.internal.xni.QName element, com.sun.org.apache.xerces.internal.xni.Augmentations augs)

        try {
            fCurrentAugs = augs;
            super.endElement(element, augs);
        } finally {
            fCurrentAugs = null;
        }
    
public com.sun.org.apache.xerces.internal.xni.XMLAttributesgetCurrentAttributes()

return

        if( fCurrentAtts==null )    throw new IllegalStateException();    
        return fCurrentAtts;
    
public com.sun.org.apache.xerces.internal.xni.AugmentationsgetCurrentAugmentation()

return
may return null. TODO: find out if it's true.

        return fCurrentAugs;
    
public voidstartElement(com.sun.org.apache.xerces.internal.xni.QName element, com.sun.org.apache.xerces.internal.xni.XMLAttributes attributes, com.sun.org.apache.xerces.internal.xni.Augmentations augs)

        try {
            fCurrentAugs = augs;
            fCurrentAtts = attributes;
            super.startElement(element, attributes, augs);
        } finally {
            fCurrentAugs = null;
            fCurrentAtts = null;
        }