com.sun.xml.bind.v2.model.annotation.Locatable, com.sun.xml.bind.v2.model.core.ClassInfo<T,C>, com.sun.xml.bind.v2.model.core.Element<T,C>, com.sun.xml.bind.v2.model.core.MaybeElement<T,C>, com.sun.xml.bind.v2.model.core.NonElement<T,C>, com.sun.xml.bind.v2.model.core.TypeInfo<T,C>public class ClassInfoImpl<T,C,F,M>
extends java.lang.Object
implements com.sun.xml.bind.v2.model.core.ClassInfo<T,C>, com.sun.xml.bind.v2.model.core.Element<T,C>
ClassInfo that doesn't depend on a particular
reflection library.| Modifier and Type | Field | Description |
|---|---|---|
protected com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> |
attributeWildcard |
If this class has a declared (not inherited) attribute wildcard, keep the reference
to it.
|
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 C |
clazz |
|
protected com.sun.xml.bind.v2.model.impl.TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> |
owner |
TypeInfoSet to which this class belongs. |
| Modifier and Type | Method | Description |
|---|---|---|
com.sun.xml.bind.v2.model.core.Element<T,C> |
asElement() |
|
boolean |
canBeReferencedByIDREF() |
A
ClassInfo can be referenced by XmlIDREF if
it has an ID property. |
protected void |
checkFieldXmlLocation(F f) |
This hook is used by
RuntimeClassInfoImpl to look for XmlLocation. |
protected com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> |
createAccessorSeed(M getter,
M setter) |
Creates a new
GetterSetterPropertySeed object. |
protected com.sun.xml.bind.v2.model.impl.AttributePropertyInfoImpl<T,C,F,M> |
createAttributeProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed) |
|
protected com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl<T,C,F,M> |
createElementProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed) |
|
protected com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> |
createFieldSeed(F f) |
Creates a new
FieldPropertySeed object. |
protected com.sun.xml.bind.v2.model.impl.MapPropertyInfoImpl<T,C,F,M> |
createMapProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed) |
|
protected com.sun.xml.bind.v2.model.impl.ReferencePropertyInfoImpl<T,C,F,M> |
createReferenceProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed) |
|
protected com.sun.xml.bind.v2.model.impl.ValuePropertyInfoImpl<T,C,F,M> |
createValueProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed) |
|
boolean |
declaresAttributeWildcard() |
|
ClassInfoImpl<T,C,F,M> |
getBaseClass() |
|
C |
getClazz() |
|
javax.xml.namespace.QName |
getElementName() |
|
java.lang.reflect.Method |
getFactoryMethod() |
|
com.sun.xml.bind.v2.runtime.Location |
getLocation() |
|
java.lang.String |
getName() |
|
java.util.List<? extends com.sun.xml.bind.v2.model.core.PropertyInfo<T,C>> |
getProperties() |
|
com.sun.xml.bind.v2.model.core.PropertyInfo<T,C> |
getProperty(java.lang.String name) |
|
ClassInfoImpl<T,C,F,M> |
getScope() |
Deprecated.
you shouldn't be invoking this method on
ClassInfoImpl. |
com.sun.xml.bind.v2.model.core.Element<T,C> |
getSubstitutionHead() |
The substitution hierarchy is the same as the inheritance hierarchy.
|
T |
getType() |
|
javax.xml.namespace.QName |
getTypeName() |
|
com.sun.xml.bind.v2.model.annotation.Locatable |
getUpstream() |
|
boolean |
hasAttributeWildcard() |
|
boolean |
hasProperties() |
|
boolean |
hasSubClasses() |
|
boolean |
hasValueProperty() |
|
boolean |
inheritsAttributeWildcard() |
|
boolean |
isAbstract() |
|
boolean |
isElement() |
|
boolean |
isFinal() |
|
boolean |
isOrdered() |
|
boolean |
isSimpleType() |
|
protected com.sun.xml.bind.v2.model.nav.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. |
<A extends java.lang.annotation.Annotation> |
readAnnotation(java.lang.Class<A> a) |
|
protected com.sun.xml.bind.v2.model.annotation.AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> |
reader() |
|
java.lang.String |
toString() |
protected final C clazz
protected com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> attributeWildcard
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 TypeInfos all together,
because we don't want to keep ModelBuilder too long.public ClassInfoImpl<T,C,F,M> getBaseClass()
public final com.sun.xml.bind.v2.model.core.Element<T,C> getSubstitutionHead()
public final C getClazz()
public ClassInfoImpl<T,C,F,M> getScope()
ClassInfoImpl.XmlRootElement,
so this method always return null.public final T getType()
public boolean canBeReferencedByIDREF()
ClassInfo can be referenced by XmlIDREF if
it has an ID property.public final java.lang.String getName()
public <A extends java.lang.annotation.Annotation> A readAnnotation(java.lang.Class<A> a)
public java.util.List<? extends com.sun.xml.bind.v2.model.core.PropertyInfo<T,C>> getProperties()
public final boolean hasValueProperty()
public com.sun.xml.bind.v2.model.core.PropertyInfo<T,C> getProperty(java.lang.String name)
protected void checkFieldXmlLocation(F f)
RuntimeClassInfoImpl to look for XmlLocation.public boolean hasProperties()
protected com.sun.xml.bind.v2.model.impl.ReferencePropertyInfoImpl<T,C,F,M> createReferenceProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed)
protected com.sun.xml.bind.v2.model.impl.AttributePropertyInfoImpl<T,C,F,M> createAttributeProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed)
protected com.sun.xml.bind.v2.model.impl.ValuePropertyInfoImpl<T,C,F,M> createValueProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed)
protected com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl<T,C,F,M> createElementProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed)
protected com.sun.xml.bind.v2.model.impl.MapPropertyInfoImpl<T,C,F,M> createMapProperty(com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> seed)
protected com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> createFieldSeed(F f)
FieldPropertySeed object.
Derived class can override this method to create a sub-class.
protected com.sun.xml.bind.v2.model.impl.PropertySeed<T,C,F,M> createAccessorSeed(M getter, M setter)
GetterSetterPropertySeed object.public final boolean isElement()
public boolean isAbstract()
public boolean isOrdered()
public final boolean isFinal()
public final boolean hasSubClasses()
public final boolean hasAttributeWildcard()
public final boolean inheritsAttributeWildcard()
public final boolean declaresAttributeWildcard()
public final javax.xml.namespace.QName getElementName()
public final javax.xml.namespace.QName getTypeName()
public final boolean isSimpleType()
public com.sun.xml.bind.v2.runtime.Location getLocation()
getLocation in interface com.sun.xml.bind.v2.model.annotation.Locatablepublic java.lang.reflect.Method getFactoryMethod()
public java.lang.String toString()
toString in class java.lang.Objectpublic com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
getUpstream in interface com.sun.xml.bind.v2.model.annotation.Locatableprotected final com.sun.xml.bind.v2.model.nav.Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav()
protected final com.sun.xml.bind.v2.model.annotation.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 © 2017 Oracle Corporation. All rights reserved.