Interface RuntimeClassInfo

    • 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()
      • 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.