com.sun.xml.bind.v2.model.impl
Class ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
All Implemented Interfaces:
Locatable, com.sun.xml.bind.v2.model.core.ArrayInfo<TypeT,ClassDeclT>, com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>, com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>, Location

public class ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
extends Object
implements com.sun.xml.bind.v2.model.core.ArrayInfo<TypeT,ClassDeclT>, Location

Public because XJC needs to access it

Author:
Kohsuke Kawaguchi

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  com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner
          TypeInfoSet to which this class belongs.
 
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
 
Constructor Summary
ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream, TypeT arrayType)
           
 
Method Summary
 boolean canBeReferencedByIDREF()
          Deprecated. why are you calling a method whose return value is always known?
 com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT> getItemType()
           
 Location getLocation()
           
 TypeT getType()
           
 QName getTypeName()
           
 Locatable getUpstream()
           
 boolean isSimpleType()
           
protected  com.sun.xml.bind.v2.model.nav.Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav()
           
protected  QName parseElementName(ClassDeclT clazz)
          Parses an XmlRootElement annotation on a class and determine the element name.
protected  QName parseTypeName(ClassDeclT clazz)
           
protected  QName parseTypeName(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()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getUpstream
 

Field Detail

owner

protected final com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner
TypeInfoSet to which this class belongs.


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.

Constructor Detail

ArrayInfoImpl

public ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder,
                     Locatable upstream,
                     TypeT arrayType)
Method Detail

getItemType

public com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT> getItemType()
Specified by:
getItemType in interface com.sun.xml.bind.v2.model.core.ArrayInfo<TypeT,ClassDeclT>

getTypeName

public QName getTypeName()
Specified by:
getTypeName in interface com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>

isSimpleType

public boolean isSimpleType()
Specified by:
isSimpleType in interface com.sun.xml.bind.v2.model.core.NonElement<TypeT,ClassDeclT>

getType

public TypeT getType()
Specified by:
getType in interface com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>

canBeReferencedByIDREF

public final boolean canBeReferencedByIDREF()
Deprecated. why are you calling a method whose return value is always known?

Leaf-type cannot be referenced from IDREF.

Specified by:
canBeReferencedByIDREF in interface com.sun.xml.bind.v2.model.core.TypeInfo<TypeT,ClassDeclT>

getLocation

public Location getLocation()
Specified by:
getLocation in interface Locatable

toString

public String toString()
Specified by:
toString in interface Location
Overrides:
toString in class Object

getUpstream

public Locatable getUpstream()
Specified by:
getUpstream in interface Locatable

nav

protected final com.sun.xml.bind.v2.model.nav.Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav()

reader

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

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.


Copyright © 2014 Oracle Corporation. All Rights Reserved.