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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationImpl
public AnnotationImpl(Object o,
Locator _loc)
AnnotationImpl
public AnnotationImpl()
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.