FileDocCategorySizeDatePackage
XSAnnotationInfo.javaAPI DocJava SE 6 API2307Tue Jun 10 00:22:46 BST 2008com.sun.org.apache.xerces.internal.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,v 1.1.4.1 2005/09/09 07:48:53 sunithareddy Exp $

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