Module com.sun.xml.bind
Class ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.model.impl.ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
-
- All Implemented Interfaces:
Locatable,ArrayInfo<TypeT,ClassDeclT>,NonElement<TypeT,ClassDeclT>,TypeInfo<TypeT,ClassDeclT>,Location
public class ArrayInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> extends Object implements ArrayInfo<TypeT,ClassDeclT>, Location
Public because XJC needs to access it
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT>builderReference to theModelBuilder, only until we linkTypeInfos all together, because we don't want to keepModelBuildertoo long.protected org.glassfish.jaxb.runtime.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT>ownerTypeInfoSetto which this class belongs.-
Fields inherited from interface org.glassfish.jaxb.core.v2.model.core.NonElement
ANYTYPE_NAME
-
-
Constructor Summary
Constructors Constructor Description ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream, TypeT arrayType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanBeReferencedByIDREF()Deprecated.why are you calling a method whose return value is always known?NonElement<TypeT,ClassDeclT>getItemType()LocationgetLocation()TypeTgetType()QNamegetTypeName()LocatablegetUpstream()booleanisSimpleType()protected Navigator<TypeT,ClassDeclT,FieldT,MethodT>nav()protected QNameparseElementName(ClassDeclT clazz)Parses anXmlRootElementannotation on a class and determine the element name.protected QNameparseTypeName(ClassDeclT clazz)protected QNameparseTypeName(ClassDeclT clazz, jakarta.xml.bind.annotation.XmlType t)Parses a (potentially-null)XmlTypeannotation on a class and determine the actual value.protected AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT>reader()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.jaxb.core.v2.model.annotation.Locatable
getUpstream
-
-
-
-
Field Detail
-
owner
protected final org.glassfish.jaxb.runtime.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner
TypeInfoSetto which this class belongs.
-
builder
protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder
Reference to theModelBuilder, only until we linkTypeInfos all together, because we don't want to keepModelBuildertoo long.
-
-
Constructor Detail
-
ArrayInfoImpl
public ArrayInfoImpl(ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, Locatable upstream, TypeT arrayType)
-
-
Method Detail
-
getItemType
public NonElement<TypeT,ClassDeclT> getItemType()
- Specified by:
getItemTypein interfaceArrayInfo<TypeT,ClassDeclT>
-
getTypeName
public QName getTypeName()
- Specified by:
getTypeNamein interfaceNonElement<TypeT,ClassDeclT>
-
isSimpleType
public boolean isSimpleType()
- Specified by:
isSimpleTypein interfaceNonElement<TypeT,ClassDeclT>
-
getType
public TypeT getType()
- Specified by:
getTypein interfaceTypeInfo<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:
canBeReferencedByIDREFin interfaceTypeInfo<TypeT,ClassDeclT>
-
getLocation
public Location getLocation()
- Specified by:
getLocationin interfaceLocatable
-
toString
public String toString()
-
getUpstream
public Locatable getUpstream()
- Specified by:
getUpstreamin interfaceLocatable
-
nav
protected final Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav()
-
reader
protected final AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader()
-
parseElementName
protected final QName parseElementName(ClassDeclT clazz)
Parses anXmlRootElementannotation 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, jakarta.xml.bind.annotation.XmlType t)
Parses a (potentially-null)XmlTypeannotation on a class and determine the actual value.- Parameters:
clazz- The class on which the XmlType annotation is checked.t- TheXmlTypeannotation on the clazz. This value is taken as a parameter to improve the performance for the case where 't' is pre-computed.
-
-