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

pack-priv Class ArrayInfoImpl<TypeT, ClassDeclT, FieldT, MethodT>

extends TypeInfoImpl<TypeT, ClassDeclT, FieldT, MethodT>
implements ArrayInfo<TypeT, ClassDeclT>, Location
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.runtime.Location, org.glassfish.jaxb.core.v2.model.core.ArrayInfo, org.glassfish.jaxb.core.v2.model.core.NonElement, org.glassfish.jaxb.core.v2.model.core.TypeInfo, org.glassfish.jaxb.core.v2.model.annotation.Locatable
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.model.impl.RuntimeArrayInfoImpl
Imports
org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.model.core.ArrayInfo, .NonElement, org.glassfish.jaxb.core.v2.model.util.ArrayInfoUtil, org.glassfish.jaxb.core.v2.runtime.IllegalAnnotationException, .Location, javax.xml.namespace.QName

Public because XJC needs to access it

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final TypeT
arrayType

The representation of T[] in the underlying reflection library.

private final NonElement<TypeT, ClassDeclT>
private final QName
Inherited from org.glassfish.jaxb.runtime.v2.model.impl.TypeInfoImpl:
builderowner

Constructor Summary

AccessConstructor and Description
public
ArrayInfoImpl(ModelBuilder<TypeT, ClassDeclT, FieldT, MethodT> builder, Locatable upstream, TypeT arrayType)

Method Summary

Modifier and TypeMethod and Description
public final boolean
canBeReferencedByIDREF()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.canBeReferencedByIDREF.

Deprecated why are you calling a method whose return value is always known?

Leaf-type cannot be referenced from IDREF.

public NonElement<TypeT, ClassDeclT>
public Location
getLocation()

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

Gets the location object that this object points to.

public TypeT
getType()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

Gets the underlying Java type that object represents.

public QName
getTypeName()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.getTypeName.

Gets the primary XML type ANYTYPE_NAME of the class.

public boolean
isSimpleType()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.isSimpleType.

Returns true if this maps to text in XML, without any attribute nor child elements.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.glassfish.jaxb.core.v2.runtime.Location.toString.

Returns a human-readable string that represents this position.

Inherited from org.glassfish.jaxb.runtime.v2.model.impl.TypeInfoImpl:
getUpstreamlinknavparseElementNameparseTypeNameparseTypeNamereader

Field Detail

arrayTypeback to summary
private final TypeT arrayType

The representation of T[] in the underlying reflection library.

itemTypeback to summary
private final NonElement<TypeT, ClassDeclT> itemType
typeNameback to summary
private final QName typeName

Constructor Detail

ArrayInfoImplback to summary
public ArrayInfoImpl(ModelBuilder<TypeT, ClassDeclT, FieldT, MethodT> builder, Locatable upstream, TypeT arrayType)

Method Detail

canBeReferencedByIDREFback to summary
public final boolean canBeReferencedByIDREF()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.canBeReferencedByIDREF.

Deprecated

why are you calling a method whose return value is always known?

Leaf-type cannot be referenced from IDREF.

Annotations
@Override
@Deprecated
getItemTypeback to summary
public NonElement<TypeT, ClassDeclT> getItemType()

Implements org.glassfish.jaxb.core.v2.model.core.ArrayInfo.getItemType.

Doc from org.glassfish.jaxb.core.v2.model.core.ArrayInfo.getItemType.

T of T[]. The type of the items of the array.

Annotations
@Override
getLocationback to summary
public Location getLocation()

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

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

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

Annotations
@Override
getTypeback to summary
public TypeT getType()

Implements org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

Doc from org.glassfish.jaxb.core.v2.model.core.TypeInfo.getType.

Gets the underlying Java type that object represents.

Annotations
@Override
getTypeNameback to summary
public QName getTypeName()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.getTypeName.

Doc from org.glassfish.jaxb.core.v2.model.core.NonElement.getTypeName.

Gets the primary XML type ANYTYPE_NAME of the class.

A Java type can be mapped to multiple XML types, but one of them is considered "primary" and used when we generate a schema.

Annotations
@Override
isSimpleTypeback to summary
public boolean isSimpleType()

Implements org.glassfish.jaxb.core.v2.model.core.NonElement.isSimpleType.

Doc from org.glassfish.jaxb.core.v2.model.core.NonElement.isSimpleType.

Returns true if this maps to text in XML, without any attribute nor child elements.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.glassfish.jaxb.core.v2.runtime.Location.toString.

Doc from org.glassfish.jaxb.core.v2.runtime.Location.toString.

Returns a human-readable string that represents this position.

Annotations
@Override