com.sun.xml.xsom
Interface XSAnnotation


public interface XSAnnotation

XML Schema annotation.


Method Summary
 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 getAnnotation().
 

Method Detail

getAnnotation

java.lang.Object getAnnotation()
Obtains the application-parsed annotation.

annotations are parsed by the user-specified AnnotationParser.

Returns:
may return null

setAnnotation

java.lang.Object setAnnotation(java.lang.Object o)
Sets the value to be returned by getAnnotation().

Parameters:
o - can be null.
Returns:
old value that was replaced by the o.

getLocator

org.xml.sax.Locator getLocator()
Returns a location information of the annotation.