Top Description Methods
org.glassfish.jaxb.runtime

public Interface AccessorFactory

Known Direct Subinterfaces
org.glassfish.jaxb.runtime.InternalAccessorFactory
Imports
org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, jakarta.xml.bind.JAXBException, java.lang.reflect.Field, .Method

A means to allow the user to provide customized Accessor to be used by JAXB.

Method Summary

Modifier and TypeMethod and Description
public Accessor<BeanT, ValueT>

Returns:

Accessor the accessor for this field
createFieldAccessor
(Class<T>
the class to be processed.
bean
,
Field
the field within the class to be accessed.
f
,
boolean
the isStatic value of the field's modifier.
readOnly
)

Access a field of the class.

public Accessor<BeanT, ValueT>

Returns:

Accessor the accessor for these methods
createPropertyAccessor
(Class<T>
the class to be processed
bean
,
Method
the getter method to be accessed. The value can be null.
getter
,
Method
the setter method to be accessed. The value can be null.
setter
)

Access a property of the class.

Method Detail

createFieldAccessorback to summary
public Accessor<BeanT, ValueT> createFieldAccessor(Class<T> bean, Field f, boolean readOnly) throws JAXBException

Access a field of the class.

Parameters
bean:Class<T>

the class to be processed.

f:Field

the field within the class to be accessed.

readOnly:boolean

the isStatic value of the field's modifier.

Returns:Accessor<BeanT, ValueT>

Accessor the accessor for this field

Exceptions
JAXBException:
reports failures of the method.
createPropertyAccessorback to summary
public Accessor<BeanT, ValueT> createPropertyAccessor(Class<T> bean, Method getter, Method setter) throws JAXBException

Access a property of the class.

Parameters
bean:Class<T>

the class to be processed

getter:Method

the getter method to be accessed. The value can be null.

setter:Method

the setter method to be accessed. The value can be null.

Returns:Accessor<BeanT, ValueT>

Accessor the accessor for these methods

Exceptions
JAXBException:
reports failures of the method.