com.sun.xml.bind.v2.model.impl
Class ClassInfoImpl<T,C,F,M>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.impl.ClassInfoImpl<T,C,F,M>
All Implemented Interfaces:
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>

A part of the ClassInfo that doesn't depend on a particular reflection library.


Field Summary
 
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
 
Method Summary
 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.
 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()
           
<A extends java.lang.annotation.Annotation>
A
readAnnotation(java.lang.Class<A> a)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getUpstream
 

Method Detail

getBaseClass

public ClassInfoImpl<T,C,F,M> getBaseClass()
Specified by:
getBaseClass in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

getSubstitutionHead

public final com.sun.xml.bind.v2.model.core.Element<T,C> getSubstitutionHead()
The substitution hierarchy is the same as the inheritance hierarchy.

Specified by:
getSubstitutionHead in interface com.sun.xml.bind.v2.model.core.Element<T,C>

getClazz

public final C getClazz()
Specified by:
getClazz in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

getScope

public ClassInfoImpl<T,C,F,M> getScope()
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.

Specified by:
getScope in interface com.sun.xml.bind.v2.model.core.Element<T,C>

getType

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

canBeReferencedByIDREF

public boolean canBeReferencedByIDREF()
A ClassInfo can be referenced by XmlIDREF if it has an ID property.

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

getName

public final java.lang.String getName()
Specified by:
getName in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

readAnnotation

public <A extends java.lang.annotation.Annotation> A readAnnotation(java.lang.Class<A> a)

asElement

public com.sun.xml.bind.v2.model.core.Element<T,C> asElement()
Specified by:
asElement in interface com.sun.xml.bind.v2.model.core.MaybeElement<T,C>

getProperties

public java.util.List<? extends com.sun.xml.bind.v2.model.core.PropertyInfo<T,C>> getProperties()
Specified by:
getProperties in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

hasValueProperty

public final boolean hasValueProperty()
Specified by:
hasValueProperty in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

getProperty

public com.sun.xml.bind.v2.model.core.PropertyInfo<T,C> getProperty(java.lang.String name)
Specified by:
getProperty in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

hasProperties

public boolean hasProperties()
Specified by:
hasProperties in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

isElement

public final boolean isElement()
Specified by:
isElement in interface com.sun.xml.bind.v2.model.core.MaybeElement<T,C>

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

isOrdered

public boolean isOrdered()
Specified by:
isOrdered in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

isFinal

public final boolean isFinal()
Specified by:
isFinal in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

hasSubClasses

public final boolean hasSubClasses()
Specified by:
hasSubClasses in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

hasAttributeWildcard

public final boolean hasAttributeWildcard()
Specified by:
hasAttributeWildcard in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

inheritsAttributeWildcard

public final boolean inheritsAttributeWildcard()
Specified by:
inheritsAttributeWildcard in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

declaresAttributeWildcard

public final boolean declaresAttributeWildcard()
Specified by:
declaresAttributeWildcard in interface com.sun.xml.bind.v2.model.core.ClassInfo<T,C>

getElementName

public final javax.xml.namespace.QName getElementName()
Specified by:
getElementName in interface com.sun.xml.bind.v2.model.core.Element<T,C>
Specified by:
getElementName in interface com.sun.xml.bind.v2.model.core.MaybeElement<T,C>

getTypeName

public final javax.xml.namespace.QName getTypeName()
Specified by:
getTypeName in interface com.sun.xml.bind.v2.model.core.NonElement<T,C>

isSimpleType

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

getLocation

public com.sun.xml.bind.v2.runtime.Location getLocation()
Specified by:
getLocation in interface com.sun.xml.bind.v2.model.annotation.Locatable

getFactoryMethod

public java.lang.reflect.Method getFactoryMethod()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getUpstream

public com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
Specified by:
getUpstream in interface com.sun.xml.bind.v2.model.annotation.Locatable