com.sun.xml.bind.v2.model.runtime
Interface RuntimeClassInfo

All Superinterfaces:
ClassInfo<java.lang.reflect.Type,java.lang.Class>, MaybeElement<java.lang.reflect.Type,java.lang.Class>, NonElement<java.lang.reflect.Type,java.lang.Class>, RuntimeNonElement, RuntimeTypeInfo, TypeInfo<java.lang.reflect.Type,java.lang.Class>

public interface RuntimeClassInfo
extends ClassInfo<java.lang.reflect.Type,java.lang.Class>, RuntimeNonElement


Field Summary
 
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
 
Method Summary
<BeanT> Accessor<BeanT,java.util.Map<javax.xml.namespace.QName,java.lang.String>>
getAttributeWildcard()
          If ClassInfo.hasAttributeWildcard() is true, returns the accessor to access the property.
 RuntimeClassInfo getBaseClass()
          Obtains the information about the base class.
 java.lang.reflect.Method getFactoryMethod()
           
<BeanT> Accessor<BeanT,org.xml.sax.Locator>
getLocatorField()
          If this JAXB bean has a property annotated with XmlLocation, this method returns it.
 java.util.List<? extends RuntimePropertyInfo> getProperties()
          Returns all the properties newly declared in this class.
 RuntimePropertyInfo getProperty(java.lang.String name)
          Gets the property that has the specified name.
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.ClassInfo
declaresAttributeWildcard, getClazz, getName, hasAttributeWildcard, hasProperties, hasSubClasses, hasValueProperty, inheritsAttributeWildcard, isAbstract, isFinal, isOrdered
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.MaybeElement
asElement, getElementName, isElement
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.NonElement
getTypeName, isSimpleType
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
 
Methods inherited from interface com.sun.xml.bind.v2.model.runtime.RuntimeNonElement
getTransducer
 

Method Detail

getBaseClass

RuntimeClassInfo getBaseClass()
Description copied from interface: ClassInfo
Obtains the information about the base class.

Specified by:
getBaseClass in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>
Returns:
null if this info extends from Object.

getProperties

java.util.List<? extends RuntimePropertyInfo> getProperties()
Description copied from interface: ClassInfo
Returns all the properties newly declared in this class.

This excludes properties defined in the super class.

If the properties are ordered, it will be returned in the order that appear in XML. Otherwise it will be returned in no particular order.

Properties marked with XmlTransient will not show up in this list. As far as JAXB is concerned, they are considered non-existent.

Specified by:
getProperties in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>
Returns:
always non-null, but can be empty.

getProperty

RuntimePropertyInfo getProperty(java.lang.String name)
Description copied from interface: ClassInfo
Gets the property that has the specified name.

This is just a convenience method for:

 for( PropertyInfo p : getProperties() ) {
   if(p.getName().equals(name))
     return p;
 }
 return null;
 

Specified by:
getProperty in interface ClassInfo<java.lang.reflect.Type,java.lang.Class>
Returns:
null if the property was not found.
See Also:
PropertyInfo.getName()

getFactoryMethod

java.lang.reflect.Method getFactoryMethod()

getAttributeWildcard

<BeanT> Accessor<BeanT,java.util.Map<javax.xml.namespace.QName,java.lang.String>> getAttributeWildcard()
If ClassInfo.hasAttributeWildcard() is true, returns the accessor to access the property.

Returns:
unoptimized accessor. non-null iff ClassInfo.hasAttributeWildcard()==true.
See Also:
Accessor#optimize()

getLocatorField

<BeanT> Accessor<BeanT,org.xml.sax.Locator> getLocatorField()
If this JAXB bean has a property annotated with XmlLocation, this method returns it.

Returns:
may be null.