com.sun.xml.bind.v2.model.impl

Class TypeInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>

abstract class TypeInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> extends Object implements TypeInfo<TypeT,ClassDeclT>, Locatable

Common implementation between ClassInfoImpl and ElementInfoImpl.
Field Summary
protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT>builder
Reference to the ModelBuilder, only until we link TypeInfos all together, because we don't want to keep ModelBuilder too long.
protected TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT>owner
TypeInfoSet to which this class belongs.
Constructor Summary
protected TypeInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream)
Method Summary
LocatablegetUpstream()
voidlink()
protected Navigator<TypeT,ClassDeclT,FieldT,MethodT>nav()
protected QNameparseElementName(ClassDeclT clazz)
Parses an XmlRootElement annotation on a class and determine the element name.
protected QNameparseTypeName(ClassDeclT clazz)
protected QNameparseTypeName(ClassDeclT clazz, XmlType t)
Parses a (potentially-null) XmlType annotation on a class and determine the actual value.
protected AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT>reader()

Field Detail

builder

protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder
Reference to the ModelBuilder, only until we link TypeInfos all together, because we don't want to keep ModelBuilder too long.

owner

protected final TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner
TypeInfoSet to which this class belongs.

Constructor Detail

TypeInfoImpl

protected TypeInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream)

Method Detail

getUpstream

public Locatable getUpstream()

link

void link()

nav

protected final Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav()

parseElementName

protected final QName parseElementName(ClassDeclT clazz)
Parses an XmlRootElement annotation on a class and determine the element name.

Returns: null if none was found.

parseTypeName

protected final QName parseTypeName(ClassDeclT clazz)

parseTypeName

protected final QName parseTypeName(ClassDeclT clazz, XmlType t)
Parses a (potentially-null) XmlType annotation on a class and determine the actual value.

Parameters: clazz The class on which the XmlType annotation is checked. t The XmlType annotation on the clazz. This value is taken as a parameter to improve the performance for the case where 't' is pre-computed.

reader

protected final AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader()