public class AnnotationImpl extends java.lang.Object implements XSAnnotation
Modifier and Type | Class and Description |
---|---|
private static class |
AnnotationImpl.LocatorImplUnmodifiable |
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
annotation |
private org.xml.sax.Locator |
locator |
private static AnnotationImpl.LocatorImplUnmodifiable |
NULL_LOCATION |
Constructor and Description |
---|
AnnotationImpl() |
AnnotationImpl(java.lang.Object o,
org.xml.sax.Locator _loc) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAnnotation()
Obtains the application-parsed annotation.
|
org.xml.sax.Locator |
getLocator()
Returns a location information of the annotation.
|
java.lang.Object |
setAnnotation(java.lang.Object o)
Sets the value to be returned by
XSAnnotation.getAnnotation() . |
private java.lang.Object annotation
private final org.xml.sax.Locator locator
private static final AnnotationImpl.LocatorImplUnmodifiable NULL_LOCATION
public AnnotationImpl(java.lang.Object o, org.xml.sax.Locator _loc)
public AnnotationImpl()
public java.lang.Object getAnnotation()
XSAnnotation
annotations are parsed by the user-specified
AnnotationParser
.
getAnnotation
in interface XSAnnotation
public java.lang.Object setAnnotation(java.lang.Object o)
XSAnnotation
XSAnnotation.getAnnotation()
.setAnnotation
in interface XSAnnotation
o
- can be null.public org.xml.sax.Locator getLocator()
XSAnnotation
getLocator
in interface XSAnnotation