Annotation Type XmlLocation
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface XmlLocation
XmlLocation can be used on a property of type Locator, to provide information about the XML location (line and column number, source location) that the owning object was unmarshalled from.
This annotation can be used on:
- a Field of type org.xml.sax.Locator
- a set or get Method that takes/returns a single parameter, of type org.xml.sax.Locator
If this property is also marked as XmlTransient, then no Location information will be marshalled to XML, however the Location will be set on the object when unmarshalling.
- See Also:
Locator