com.sun.xml.xsom.impl
Class AnnotationImpl

java.lang.Object
  extended by com.sun.xml.xsom.impl.AnnotationImpl
All Implemented Interfaces:
XSAnnotation

public class AnnotationImpl
extends Object
implements XSAnnotation


Constructor Summary
AnnotationImpl()
           
AnnotationImpl(Object o, Locator _loc)
           
 
Method Summary
 Object getAnnotation()
          Obtains the application-parsed annotation.
 Locator getLocator()
          Returns a location information of the annotation.
 Object setAnnotation(Object o)
          Sets the value to be returned by XSAnnotation.getAnnotation().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationImpl

public AnnotationImpl(Object o,
                      Locator _loc)

AnnotationImpl

public AnnotationImpl()
Method Detail

getAnnotation

public Object getAnnotation()
Description copied from interface: XSAnnotation
Obtains the application-parsed annotation.

annotations are parsed by the user-specified AnnotationParser.

Specified by:
getAnnotation in interface XSAnnotation
Returns:
may return null

setAnnotation

public Object setAnnotation(Object o)
Description copied from interface: XSAnnotation
Sets the value to be returned by XSAnnotation.getAnnotation().

Specified by:
setAnnotation in interface XSAnnotation
Parameters:
o - can be null.
Returns:
old value that was replaced by the o.

getLocator

public Locator getLocator()
Description copied from interface: XSAnnotation
Returns a location information of the annotation.

Specified by:
getLocator in interface XSAnnotation


Copyright © 2012 Oracle. All Rights Reserved.