com.sun.xml.bind.v2.model.impl
Class ClassInfoImpl<T,C,F,M>
public
class
ClassInfoImpl<T,C,F,M>
extends TypeInfoImpl<T,C,F,M>
implements ClassInfo<T,C>, Element<T,C>
A part of the
ClassInfo that doesn't depend on a particular
reflection library.
Method Summary |
Element<T,C> | asElement() |
boolean | canBeReferencedByIDREF()
A ClassInfo can be referenced by XmlIDREF if
it has an ID property. |
protected void | checkFieldXmlLocation(F f) |
protected PropertySeed<T,C,F,M> | createAccessorSeed(M getter, M setter) |
protected AttributePropertyInfoImpl<T,C,F,M> | createAttributeProperty(PropertySeed<T,C,F,M> seed) |
protected ElementPropertyInfoImpl<T,C,F,M> | createElementProperty(PropertySeed<T,C,F,M> seed) |
protected PropertySeed<T,C,F,M> | createFieldSeed(F f) |
protected MapPropertyInfoImpl<T,C,F,M> | createMapProperty(PropertySeed<T,C,F,M> seed) |
protected ReferencePropertyInfoImpl<T,C,F,M> | createReferenceProperty(PropertySeed<T,C,F,M> seed) |
protected ValuePropertyInfoImpl<T,C,F,M> | createValueProperty(PropertySeed<T,C,F,M> seed) |
boolean | declaresAttributeWildcard() |
ClassInfoImpl<T,C,F,M> | getBaseClass() |
C | getClazz() |
QName | getElementName() |
Method | getFactoryMethod() |
Location | getLocation() |
String | getName() |
List<? extends PropertyInfo<T,C>> | getProperties() |
PropertyInfo<T,C> | getProperty(String name) |
ClassInfoImpl<T,C,F,M> | getScope()
When a bean binds to an element, it's always through XmlRootElement,
so this method always return null.
|
Element<T,C> | getSubstitutionHead()
{@inheritDoc }
The substitution hierarchy is the same as the inheritance hierarchy. |
T | getType() |
QName | getTypeName() |
boolean | hasAttributeWildcard() |
boolean | hasProperties() |
boolean | hasSubClasses() |
boolean | hasValueProperty() |
boolean | inheritsAttributeWildcard() |
boolean | isAbstract() |
boolean | isElement() |
boolean | isFinal() |
boolean | isOrdered() |
boolean | isSimpleType() |
void | link()
Called after all the TypeInfos are collected into the ClassInfoImpl. |
<A extends Annotation> A | readAnnotation(Class<A> a) |
String | toString() |
If this class has a declared (not inherited) attribute wildcard, keep the reference
to it.
This parameter is initialized at the construction time and never change.
public boolean canBeReferencedByIDREF()
A
ClassInfo can be referenced by XmlIDREF if
it has an ID property.
protected void checkFieldXmlLocation(
F f)
Creates a new
FieldPropertySeed object.
Derived class can override this method to create a sub-class.
public final boolean declaresAttributeWildcard()
public final
C getClazz()
public final QName getElementName()
public Method getFactoryMethod()
public final String getName()
Deprecated:
you shouldn't be invoking this method on ClassInfoImpl.
When a bean binds to an element, it's always through XmlRootElement,
so this method always return null.
public final
Element<
T,
C> getSubstitutionHead()
{@inheritDoc }
The substitution hierarchy is the same as the inheritance hierarchy.
public final QName getTypeName()
public final boolean hasAttributeWildcard()
public boolean hasProperties()
public final boolean hasSubClasses()
public final boolean hasValueProperty()
public final boolean inheritsAttributeWildcard()
public boolean isAbstract()
public final boolean isElement()
public final boolean isFinal()
public boolean isOrdered()
public final boolean isSimpleType()
void link()
Called after all the TypeInfos are collected into the
ClassInfoImpl.
public <
A extends Annotation>
A readAnnotation(Class<
A> a)
public String toString()