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 XSAnnotationpublic java.lang.Object setAnnotation(java.lang.Object o)
XSAnnotationXSAnnotation.getAnnotation().setAnnotation in interface XSAnnotationo - can be null.public org.xml.sax.Locator getLocator()
XSAnnotationgetLocator in interface XSAnnotation