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, isOrderedMethods inherited from interface com.sun.xml.bind.v2.model.annotation.Locatable
getLocation, getUpstreamMethods inherited from interface com.sun.xml.bind.v2.model.core.MaybeElement
asElement, getElementName, isElementMethods inherited from interface com.sun.xml.bind.v2.model.core.NonElement
getTypeName, isSimpleTypeMethods inherited from interface com.sun.xml.bind.v2.model.runtime.RuntimeNonElement
getTransducerMethods inherited from interface com.sun.xml.bind.v2.model.core.TypeInfo
canBeReferencedByIDREF, getType
-
Method Details
-
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
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:
-
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.
-