Top Description Methods
org.glassfish.jaxb.core.v2.model.annotation

public Interface Locatable

Known Direct Subinterfaces
org.glassfish.jaxb.core.v2.model.core.TypeInfo, org.glassfish.jaxb.runtime.v2.model.impl.PropertySeed
Known Direct Implementers
org.glassfish.jaxb.runtime.v2.model.annotation.ClassLocatable, org.glassfish.jaxb.runtime.v2.model.annotation.FieldLocatable, org.glassfish.jaxb.runtime.v2.model.annotation.LocatableAnnotation, org.glassfish.jaxb.runtime.v2.model.annotation.MethodLocatable, org.glassfish.jaxb.runtime.v2.model.annotation.Quick, org.glassfish.jaxb.runtime.v2.model.impl.RegistryInfoImpl, org.glassfish.jaxb.runtime.v2.model.impl.PropertyInfoImpl, org.glassfish.jaxb.runtime.v2.model.impl.TypeInfoImpl
Imports
org.glassfish.jaxb.core.v2.runtime.Location

Location that is chained.

Locatable forms a tree structure, where each Locatable points back to the upstream Locatable. For example, imagine Locatable X that points to a particular annotation, whose upstream is Locatable Y, which points to a particular method (on which the annotation is put), whose upstream is Locatable Z, which points to a particular class (in which the method is defined), whose upstream is Locatable W, which points to another class (which refers to the class Z), and so on.

This chain will be turned into a list when we report the error to users. This allows them to know where the error happened and why that place became relevant.

Author
Kohsuke Kawaguchi

Method Summary

Modifier and TypeMethod and Description
public Location
getLocation()

Gets the location object that this object points to.

public Locatable

Returns:

can be null.
getUpstream
()

Gets the upstream Location information.

Method Detail

getLocationback to summary
public Location getLocation()

Gets the location object that this object points to. This operation could be inefficient and costly.

getUpstreamback to summary
public Locatable getUpstream()

Gets the upstream Location information.

Returns:Locatable

can be null.