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 Object implements XSAnnotation
-
-
Constructor Summary
Constructors Constructor Description AnnotationImpl()AnnotationImpl(Object o, Locator _loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAnnotation()Obtains the application-parsed annotation.LocatorgetLocator()Returns a location information of the annotation.ObjectsetAnnotation(Object o)Sets the value to be returned byXSAnnotation.getAnnotation().
-
-
-
Method Detail
-
getAnnotation
public Object getAnnotation()
Description copied from interface:XSAnnotationObtains the application-parsed annotation.annotations are parsed by the user-specified
AnnotationParser.- Specified by:
getAnnotationin interfaceXSAnnotation- Returns:
- may return null
-
setAnnotation
public Object setAnnotation(Object o)
Description copied from interface:XSAnnotationSets the value to be returned byXSAnnotation.getAnnotation().- Specified by:
setAnnotationin interfaceXSAnnotation- Parameters:
o- can be null.- Returns:
- old value that was replaced by the
o.
-
getLocator
public Locator getLocator()
Description copied from interface:XSAnnotationReturns a location information of the annotation.- Specified by:
getLocatorin interfaceXSAnnotation
-
-