Interface RuntimeClassInfo
- All Superinterfaces:
ClassInfo<Type,
,Class> Locatable
,MaybeElement<Type,
,Class> NonElement<Type,
,Class> RuntimeNonElement
,RuntimeTypeInfo
,TypeInfo<Type,
Class>
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Field Summary
Fields inherited from interface com.sun.xml.bind.v2.model.core.NonElement
ANYTYPE_NAME
-
Method Summary
Modifier and TypeMethodDescriptionIfClassInfo.hasAttributeWildcard()
is true, returns the accessor to access the property.Obtains the information about the base class.If this JAXB bean has a property annotated withXmlLocation
, this method returns it.List
<? extends RuntimePropertyInfo> Returns all the properties newly declared in this class.getProperty
(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 Details
-
getBaseClass
RuntimeClassInfo getBaseClass()Description copied from interface:ClassInfo
Obtains the information about the base class.- Specified by:
getBaseClass
in interfaceClassInfo<Type,
Class> - Returns:
- null
if this info extends from
Object
.
-
getProperties
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 interfaceClassInfo<Type,
Class> - Returns:
- always non-null, but can be empty.
-
getProperty
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 interfaceClassInfo<Type,
Class> - Returns:
- null if the property was not found.
- See Also:
-
getFactoryMethod
Method getFactoryMethod() -
getAttributeWildcard
IfClassInfo.hasAttributeWildcard()
is true, returns the accessor to access the property.- Returns:
- unoptimized accessor.
non-null iff
ClassInfo.hasAttributeWildcard()
==true. - See Also:
-
getLocatorField
If this JAXB bean has a property annotated withXmlLocation
, this method returns it.- Returns:
- may be null.
-