FileDocCategorySizeDatePackage
XSAnnotationInfo.javaAPI DocApache Xerces 3.0.12519Fri Sep 14 20:33:52 BST 2007org.apache.xerces.impl.xs.traversers

XSAnnotationInfo

public final class XSAnnotationInfo extends Object
Objects of this class contain the textual representation of an XML schema annotation as well as information on the location of the annotation in the document it originated from.
xerces.internal
author
Michael Glavassevich, IBM
version
$Id: XSAnnotationInfo.java 446725 2006-09-15 20:40:10Z mrglavas $

Fields Summary
String
fAnnotation
Textual representation of annotation.
int
fLine
Line number of <annotation> element.
int
fColumn
Column number of <annotation> element.
int
fCharOffset
Character offset of <annotation> element.
XSAnnotationInfo
next
Next annotation.
Constructors Summary
XSAnnotationInfo(String annotation, int line, int column, int charOffset)

        fAnnotation = annotation;
        fLine = line;
        fColumn = column;
        fCharOffset = charOffset;
    
XSAnnotationInfo(String annotation, Element annotationDecl)

        fAnnotation = annotation;
        if (annotationDecl instanceof ElementImpl) {
            final ElementImpl annotationDeclImpl = (ElementImpl) annotationDecl;
            fLine = annotationDeclImpl.getLineNumber();
            fColumn = annotationDeclImpl.getColumnNumber();
            fCharOffset = annotationDeclImpl.getCharacterOffset();
        }
        else {
            fLine = -1;
            fColumn = -1;
            fCharOffset = -1;
        }
    
Methods Summary