Top Methods
org.glassfish.jaxb.runtime.v2.model.runtime

public Interface RuntimeClassInfo

extends ClassInfo<Type, Class<T>>, RuntimeNonElement
Known Direct Implementers
org.glassfish.jaxb.runtime.v2.model.impl.RuntimeClassInfoImpl
Imports
org.glassfish.jaxb.core.annotation.XmlLocation, org.glassfish.jaxb.core.v2.model.core.ClassInfo, org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, org.xml.sax.Locator, javax.xml.namespace.QName, java.lang.reflect.Method, .Type, java.util.List, .Map

Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public <BeanT> Accessor<BeanT, Map<QName, String>>

Returns:

unoptimized accessor. non-null iff hasAttributeWildcard()==true.
getAttributeWildcard
()

If hasAttributeWildcard() is true, returns the accessor to access the property.

public RuntimeClassInfo
getBaseClass()

Redeclares org.glassfish.jaxb.core.v2.model.core.ClassInfo.getBaseClass.

Obtains the information about the base class.

public Method
public <BeanT> Accessor<BeanT, Locator>

Returns:

may be null.
getLocatorField
()

If this JAXB bean has a property annotated with XmlLocation, this method returns it.

public List<? extends RuntimePropertyInfo>
getProperties()

Redeclares org.glassfish.jaxb.core.v2.model.core.ClassInfo.getProperties.

Returns all the properties newly declared in this class.

public RuntimePropertyInfo
getProperty(String name)

Redeclares org.glassfish.jaxb.core.v2.model.core.ClassInfo.getProperty.

Gets the property that has the specified name.

Inherited from org.glassfish.jaxb.core.v2.model.core.ClassInfo:
declaresAttributeWildcardgetClazzgetNamehasAttributeWildcardhasPropertieshasSubClasseshasValuePropertyinheritsAttributeWildcardisAbstractisFinalisOrdered
Inherited from org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeNonElement:
getTransducer

Method Detail

getAttributeWildcardback to summary
public <BeanT> Accessor<BeanT, Map<QName, String>> getAttributeWildcard()

If hasAttributeWildcard() is true, returns the accessor to access the property.

Returns:Accessor<BeanT, Map<QName, String>>

unoptimized accessor. non-null iff hasAttributeWildcard()==true.

See Also
Accessor#optimize(JAXBContextImpl)
getBaseClassback to summary
public RuntimeClassInfo getBaseClass()

Redeclares org.glassfish.jaxb.core.v2.model.core.ClassInfo.getBaseClass.

Doc from org.glassfish.jaxb.core.v2.model.core.ClassInfo.getBaseClass.

Obtains the information about the base class.

Annotations
@Override
getFactoryMethodback to summary
public Method getFactoryMethod()
getLocatorFieldback to summary
public <BeanT> Accessor<BeanT, Locator> getLocatorField()

If this JAXB bean has a property annotated with XmlLocation, this method returns it.

Returns:Accessor<BeanT, Locator>

may be null.

getPropertiesback to summary
public List<? extends RuntimePropertyInfo> getProperties()

Redeclares org.glassfish.jaxb.core.v2.model.core.ClassInfo.getProperties.

Doc from org.glassfish.jaxb.core.v2.model.core.ClassInfo.getProperties.

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.

Annotations
@Override
getPropertyback to summary
public RuntimePropertyInfo getProperty(String name)

Redeclares org.glassfish.jaxb.core.v2.model.core.ClassInfo.getProperty.

Doc from org.glassfish.jaxb.core.v2.model.core.ClassInfo.getProperty.

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;
Annotations
@Override