Locatable
, ArrayInfo<TypeT,ClassDeclT>
, NonElement<TypeT,ClassDeclT>
, TypeInfo<TypeT,ClassDeclT>
, Location
public class ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> extends java.lang.Object implements ArrayInfo<TypeT,ClassDeclT>, Location
Public because XJC needs to access it
Modifier and Type | Field | Description |
---|---|---|
protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> |
builder |
Reference to the
ModelBuilder , only until we link TypeInfo s all together,
because we don't want to keep ModelBuilder too long. |
protected com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> |
owner |
TypeInfoSet to which this class belongs. |
ANYTYPE_NAME
Constructor | Description |
---|---|
ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder,
Locatable upstream,
TypeT arrayType) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canBeReferencedByIDREF() |
Deprecated.
why are you calling a method whose return value is always known?
|
NonElement<TypeT,ClassDeclT> |
getItemType() |
T of T[].
|
Location |
getLocation() |
Gets the location object that this object points to.
|
TypeT |
getType() |
Gets the underlying Java type that object represents.
|
javax.xml.namespace.QName |
getTypeName() |
Gets the primary XML type ANYTYPE_NAME of the class.
|
Locatable |
getUpstream() |
Gets the upstream
Location information. |
boolean |
isSimpleType() |
Returns true if this
NonElement maps to text in XML,
without any attribute nor child elements. |
protected Navigator<TypeT,ClassDeclT,FieldT,MethodT> |
nav() |
|
protected javax.xml.namespace.QName |
parseElementName(ClassDeclT clazz) |
Parses an
XmlRootElement annotation on a class
and determine the element name. |
protected javax.xml.namespace.QName |
parseTypeName(ClassDeclT clazz) |
|
protected javax.xml.namespace.QName |
parseTypeName(ClassDeclT clazz,
javax.xml.bind.annotation.XmlType t) |
Parses a (potentially-null)
XmlType annotation on a class
and determine the actual value. |
protected AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> |
reader() |
|
java.lang.String |
toString() |
Returns a human-readable string that represents this position.
|
getUpstream
protected final com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner
TypeInfoSet
to which this class belongs.protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder
ModelBuilder
, only until we link TypeInfo
s all together,
because we don't want to keep ModelBuilder
too long.public ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream, TypeT arrayType)
public NonElement<TypeT,ClassDeclT> getItemType()
ArrayInfo
getItemType
in interface ArrayInfo<TypeT,ClassDeclT>
public javax.xml.namespace.QName getTypeName()
NonElement
A Java type can be mapped to multiple XML types, but one of them is considered "primary" and used when we generate a schema.
getTypeName
in interface NonElement<TypeT,ClassDeclT>
public boolean isSimpleType()
NonElement
NonElement
maps to text in XML,
without any attribute nor child elements.isSimpleType
in interface NonElement<TypeT,ClassDeclT>
public TypeT getType()
TypeInfo
getType
in interface TypeInfo<TypeT,ClassDeclT>
public final boolean canBeReferencedByIDREF()
canBeReferencedByIDREF
in interface TypeInfo<TypeT,ClassDeclT>
public Location getLocation()
Locatable
getLocation
in interface Locatable
public java.lang.String toString()
Location
public Locatable getUpstream()
Locatable
Location
information.getUpstream
in interface Locatable
protected final Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav()
protected final AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader()
protected final javax.xml.namespace.QName parseElementName(ClassDeclT clazz)
XmlRootElement
annotation on a class
and determine the element name.protected final javax.xml.namespace.QName parseTypeName(ClassDeclT clazz)
protected final javax.xml.namespace.QName parseTypeName(ClassDeclT clazz, javax.xml.bind.annotation.XmlType t)
XmlType
annotation on a class
and determine the actual value.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.Copyright © 2018 Oracle Corporation. All rights reserved.