Interface RuntimeClassInfo
-
- All Superinterfaces:
ClassInfo<Type,Class>,Locatable,MaybeElement<Type,Class>,NonElement<Type,Class>,RuntimeNonElement,RuntimeTypeInfo,TypeInfo<Type,Class>
public interface RuntimeClassInfo extends ClassInfo<Type,Class>, RuntimeNonElement
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Field Summary
-
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <BeanT> Accessor<BeanT,Map<QName,String>>getAttributeWildcard()IfClassInfo.hasAttributeWildcard()is true, returns the accessor to access the property.RuntimeClassInfogetBaseClass()Obtains the information about the base class.MethodgetFactoryMethod()<BeanT> Accessor<BeanT,Locator>getLocatorField()If this JAXB bean has a property annotated withXmlLocation, this method returns it.List<? extends RuntimePropertyInfo>getProperties()Returns all the properties newly declared in this class.RuntimePropertyInfogetProperty(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.annotation.Locatable
getLocation, getUpstream
-
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.runtime.RuntimeNonElement
getTransducer
-
Methods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
-
-
-
-
Method Detail
-
getBaseClass
RuntimeClassInfo getBaseClass()
Description copied from interface:ClassInfoObtains the information about the base class.- Specified by:
getBaseClassin interfaceClassInfo<Type,Class>- Returns:
- null
if this info extends from
Object.
-
getProperties
List<? extends RuntimePropertyInfo> getProperties()
Description copied from interface:ClassInfoReturns 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
XmlTransientwill not show up in this list. As far as JAXB is concerned, they are considered non-existent.- Specified by:
getPropertiesin interfaceClassInfo<Type,Class>- Returns:
- always non-null, but can be empty.
-
getProperty
RuntimePropertyInfo getProperty(String name)
Description copied from interface:ClassInfoGets 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:
getPropertyin interfaceClassInfo<Type,Class>- Returns:
- null if the property was not found.
- See Also:
PropertyInfo.getName()
-
getFactoryMethod
Method getFactoryMethod()
-
getAttributeWildcard
<BeanT> Accessor<BeanT,Map<QName,String>> getAttributeWildcard()
IfClassInfo.hasAttributeWildcard()is true, returns the accessor to access the property.- Returns:
- unoptimized accessor.
non-null iff
ClassInfo.hasAttributeWildcard()==true. - See Also:
Accessor.optimize(JAXBContextImpl)
-
getLocatorField
<BeanT> Accessor<BeanT,Locator> getLocatorField()
If this JAXB bean has a property annotated withXmlLocation, this method returns it.- Returns:
- may be null.
-
-