XSAnnotationInfopublic 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. |
Fields Summary |
---|
String | fAnnotationTextual representation of annotation. | int | fLineLine number of <annotation> element. | int | fColumnColumn number of <annotation> element. | int | fCharOffsetCharacter offset of <annotation> element. | XSAnnotationInfo | nextNext 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;
}
|
|