Class RawAccessor<B,V>

java.lang.Object
org.glassfish.jaxb.runtime.api.RawAccessor<B,V>

public abstract class RawAccessor<B,V> extends Object
Accesses a particular property of a bean.

This interface allows JAX-RPC to access an element property of a JAXB bean.

Subject to change without notice.

Since:
2.0 EA1
Author:
Kohsuke Kawaguchi
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract V
    get(B bean)
    Gets the value of the property of the given bean object.
    abstract void
    set(B bean, V value)
    Sets the value of the property of the given bean object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RawAccessor

      protected RawAccessor()
      Default constructor.
  • Method Details

    • get

      public abstract V get(B bean) throws AccessorException
      Gets the value of the property of the given bean object.
      Parameters:
      bean - must not be null.
      Throws:
      AccessorException - if failed to set a value. For example, the getter method may throw an exception.
      Since:
      2.0 EA1
    • set

      public abstract void set(B bean, V value) throws AccessorException
      Sets the value of the property of the given bean object.
      Parameters:
      bean - must not be null.
      value - the value to be set. Setting value to null means resetting to the VM default value (even for primitive properties.)
      Throws:
      AccessorException - if failed to set a value. For example, the setter method may throw an exception.
      Since:
      2.0 EA1