com.sun.xml.bind.v2.model.impl
Class RegistryInfoImpl<T,C,F,M>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.RegistryInfoImpl<T,C,F,M>
All Implemented Interfaces:
Locatable, RegistryInfo<T,C>

final class RegistryInfoImpl<T,C,F,M>
extends Object
implements Locatable, RegistryInfo<T,C>

Implementation of RegistryInfo.


Field Summary
(package private)  C registryClass
           
 
Constructor Summary
RegistryInfoImpl(ModelBuilder<T,C,F,M> builder, Locatable upstream, C registryClass)
          Picks up references in this registry to other types.
 
Method Summary
 C getClazz()
          Returns the class with XmlRegistry.
 Location getLocation()
          Gets the location object that this object points to.
 String getPackageName()
          Gets the name of the package that this registry governs.
 Set<TypeInfo<T,C>> getReferences()
          Returns all the references to other types in this registry.
 Locatable getUpstream()
          Gets the upstream Location information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registryClass

final C registryClass
Constructor Detail

RegistryInfoImpl

RegistryInfoImpl(ModelBuilder<T,C,F,M> builder,
                 Locatable upstream,
                 C registryClass)
Picks up references in this registry to other types.

Method Detail

getUpstream

public Locatable getUpstream()
Description copied from interface: Locatable
Gets the upstream Location information.

Specified by:
getUpstream in interface Locatable
Returns:
can be null.

getLocation

public Location getLocation()
Description copied from interface: Locatable
Gets the location object that this object points to. This operation could be inefficient and costly.

Specified by:
getLocation in interface Locatable

getReferences

public Set<TypeInfo<T,C>> getReferences()
Description copied from interface: RegistryInfo
Returns all the references to other types in this registry.

Specified by:
getReferences in interface RegistryInfo<T,C>

getPackageName

public String getPackageName()
Gets the name of the package that this registry governs.


getClazz

public C getClazz()
Description copied from interface: RegistryInfo
Returns the class with XmlRegistry.

Specified by:
getClazz in interface RegistryInfo<T,C>