Annotation Interface PropertyAccessors
Determines the accessibility and exceptions for the generated getter and setter methods
for the associated
GeneratedProperty.
Supported API: true
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionIndicates the access given to the generated getter method.Lists the exceptions the getter should throw.Indicates the access given to the generated setter method.Lists the exceptions the setter should throw.
-
Element Details
-
getAccess
GetAccess getAccessIndicates the access given to the generated getter method. Note that the properties themselves (that is, the Java fields) will be generated withdefaultaccess 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
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 setAccessIndicates 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 withdefaultaccess.Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> WriteAccess.
Supported API: true
- Default:
USE_GET_ACCESS
-
setExceptions
Lists the exceptions the setter should throw. Note that it's defaulted toWTPropertyVetoException(which corresponds to the oldRose"constrain" property). To unconstrain this property (throw no setter exception), simply give this property the value "{}". Any value/array of values other thanWTPropertyVetoExceptionor{}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}
-