com.sun.xml.bind
Class AccessorFactoryImpl
java.lang.Object
com.sun.xml.bind.AccessorFactoryImpl
- All Implemented Interfaces:
- AccessorFactory
public class AccessorFactoryImpl
- extends Object
- implements AccessorFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static AccessorFactoryImpl getInstance()
createFieldAccessor
public Accessor createFieldAccessor(Class bean,
Field field,
boolean readOnly)
- Access a field of the class.
- Specified by:
createFieldAccessor
in interface AccessorFactory
- Parameters:
bean
- the class to be processed.field
- the field within the class to be accessed.readOnly
- the isStatic value of the field's modifier.
- Returns:
- Accessor the accessor for this field
- Throws:
JAXBException
- reports failures of the method.
createPropertyAccessor
public Accessor createPropertyAccessor(Class bean,
Method getter,
Method setter)
- Access a property of the class.
- Specified by:
createPropertyAccessor
in interface AccessorFactory
- Parameters:
bean
- the class to be processedgetter
- the getter method to be accessed. The value can be null.setter
- the setter method to be accessed. The value can be null.
- Returns:
- Accessor the accessor for these methods
- Throws:
JAXBException
- reports failures of the method.