Annotation Interface PropertyAccessors


@Retention(CLASS) @Target({}) @Documented public @interface PropertyAccessors
Determines the accessibility and exceptions for the generated getter and setter methods for the associated GeneratedProperty.

Supported API: true

  • Element Details

    • getAccess

      GetAccess getAccess
      Indicates the access given to the generated getter method. Note that the properties themselves (that is, the Java fields) will be generated with default access to ensure they will always be accessible to the the "real" (annotated business) class.

      Rose conversion note: Corresponds to Class Attribute Specification -> General -> Export Control.

      Supported API: true

      Default:
      PUBLIC
    • getExceptions

      Class<? extends Exception>[] getExceptions
      Lists the exceptions the getter should throw. Getters don't typically throw exceptions. If exceptions are specified, it's assumed the generated getter will be overridden by the "real" (annotated business) class.

      Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> GetExceptions.

      Supported API: true

      Default:
      {}
    • setAccess

      SetAccess setAccess
      Indicates the access given to the generated setter method. Note that regardless of setting, the package will always be able to assign a value directly, as the corresponding Java field will always be generated with default access.

      Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> WriteAccess.

      Supported API: true

      Default:
      USE_GET_ACCESS
    • setExceptions

      Class<? extends Exception>[] setExceptions
      Lists the exceptions the setter should throw. Note that it's defaulted to WTPropertyVetoException (which corresponds to the old Rose "constrain" property). To unconstrain this property (throw no setter exception), simply give this property the value "{}". Any value/array of values other than WTPropertyVetoException or {} implies that the setter will be overwritten in the "real" (annotated business) class.

      Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> Constrain/SetExceptions

      Supported API: true

      Default:
      {wt.util.WTPropertyVetoException.class}