Package com.sun.xml.xsom.impl
Class AnnotationImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.AnnotationImpl
-
- All Implemented Interfaces:
XSAnnotation
public class AnnotationImpl extends java.lang.Object implements XSAnnotation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
AnnotationImpl.LocatorImplUnmodifiable
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
annotation
private org.xml.sax.Locator
locator
private static AnnotationImpl.LocatorImplUnmodifiable
NULL_LOCATION
-
Constructor Summary
Constructors Constructor Description AnnotationImpl()
AnnotationImpl(java.lang.Object o, org.xml.sax.Locator _loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 byXSAnnotation.getAnnotation()
.
-
-
-
Field Detail
-
annotation
private java.lang.Object annotation
-
locator
private final org.xml.sax.Locator locator
-
NULL_LOCATION
private static final AnnotationImpl.LocatorImplUnmodifiable NULL_LOCATION
-
-
Method Detail
-
getAnnotation
public java.lang.Object getAnnotation()
Description copied from interface:XSAnnotation
Obtains the application-parsed annotation.annotations are parsed by the user-specified
AnnotationParser
.- Specified by:
getAnnotation
in interfaceXSAnnotation
- Returns:
- may return null
-
setAnnotation
public java.lang.Object setAnnotation(java.lang.Object o)
Description copied from interface:XSAnnotation
Sets the value to be returned byXSAnnotation.getAnnotation()
.- Specified by:
setAnnotation
in interfaceXSAnnotation
- Parameters:
o
- can be null.- Returns:
- old value that was replaced by the o.
-
getLocator
public org.xml.sax.Locator getLocator()
Description copied from interface:XSAnnotation
Returns a location information of the annotation.- Specified by:
getLocator
in interfaceXSAnnotation
-
-