Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.impl

pack-priv abstract Class TypeInfoImpl<TypeT, ClassDeclT, FieldT, MethodT>

extends Object
implements TypeInfo<TypeT, ClassDeclT>, Locatable
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.model.core.TypeInfo
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.model.impl.ArrayInfoImpl, org.glassfish.jaxb.runtime.v2.model.impl.ClassInfoImpl, org.glassfish.jaxb.runtime.v2.model.impl.ElementInfoImpl, org.glassfish.jaxb.runtime.v2.model.impl.EnumLeafInfoImpl
Imports
org.glassfish.jaxb.core.api.impl.NameConverter, org.glassfish.jaxb.core.v2.model.annotation.AnnotationReader, .Locatable, org.glassfish.jaxb.core.v2.model.core.TypeInfo, .TypeInfoSet, org.glassfish.jaxb.core.v2.model.nav.Navigator, jakarta.xml.bind.annotation.XmlRootElement, .XmlSchema, .XmlType, javax.xml.namespace.QName

Common implementation between ClassInfoImpl and ElementInfoImpl.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
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 final TypeInfoSetImpl<TypeT, ClassDeclT, FieldT, MethodT>
owner

TypeInfoSet to which this class belongs.

private final Locatable
upstream

The Java class that caused this Java class to be a part of the JAXB processing.

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public Locatable
protected final QName

Returns:

null if none was found.
parseElementName
(ClassDeclT clazz)

Parses an XmlRootElement annotation on a class and determine the element name.

protected final QName
parseTypeName(ClassDeclT clazz)

protected final QName
parseTypeName(ClassDeclT
The class on which the XmlType annotation is checked.
clazz
,
XmlType
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.
t
)

Parses a (potentially-null) XmlType annotation on a class and determine the actual value.

protected final AnnotationReader<TypeT, ClassDeclT, FieldT, MethodT>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

builderback to 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.

ownerback to summary
protected final TypeInfoSetImpl<TypeT, ClassDeclT, FieldT, MethodT> owner

TypeInfoSet to which this class belongs.

upstreamback to summary
private final Locatable upstream

The Java class that caused this Java class to be a part of the JAXB processing. null if it's specified explicitly by the user.

Constructor Detail

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

Method Detail

getUpstreamback to summary
public Locatable getUpstream()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getUpstream.

Doc from org.glassfish.jaxb.core.v2.model.annotation.Locatable.getUpstream.

Gets the upstream Location information.

Annotations
@Override
parseElementNameback to summary
protected final QName parseElementName(ClassDeclT clazz)

Parses an XmlRootElement annotation on a class and determine the element name.

Returns:QName

null if none was found.

parseTypeNameback to summary
protected final QName parseTypeName(ClassDeclT clazz)
parseTypeNameback to summary
protected final QName parseTypeName(ClassDeclT clazz, XmlType t)

Parses a (potentially-null) XmlType annotation on a class and determine the actual value.

Parameters
clazz:ClassDeclT

The class on which the XmlType annotation is checked.

t:XmlType

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.

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