< prev index next >

src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/XSAnnotation.java

Print this page




  35  *
  36  */
  37 public interface XSAnnotation
  38 {
  39     /**
  40      * Obtains the application-parsed annotation.
  41      * <p>
  42      * annotations are parsed by the user-specified
  43      * {@link AnnotationParser}.
  44      *
  45      * @return may return null
  46      */
  47     Object getAnnotation();
  48 
  49     /**
  50      * Sets the value to be returned by {@link #getAnnotation()}.
  51      *
  52      * @param o
  53      *      can be null.
  54      * @return
  55      *      old value that was replaced by the <tt>o</tt>.
  56      */
  57     Object setAnnotation(Object o);
  58 
  59     /**
  60      * Returns a location information of the annotation.
  61      */
  62     Locator getLocator();
  63 }


  35  *
  36  */
  37 public interface XSAnnotation
  38 {
  39     /**
  40      * Obtains the application-parsed annotation.
  41      * <p>
  42      * annotations are parsed by the user-specified
  43      * {@link AnnotationParser}.
  44      *
  45      * @return may return null
  46      */
  47     Object getAnnotation();
  48 
  49     /**
  50      * Sets the value to be returned by {@link #getAnnotation()}.
  51      *
  52      * @param o
  53      *      can be null.
  54      * @return
  55      *      old value that was replaced by the {@code o}.
  56      */
  57     Object setAnnotation(Object o);
  58 
  59     /**
  60      * Returns a location information of the annotation.
  61      */
  62     Locator getLocator();
  63 }
< prev index next >