Annotation Interface DerivedProperty
GeneratedProperty) or other derived properties and are generated to call the
real accessor methods for the actual properties they derive from. The derivedFrom()
string is used to indicate the path to the real property. For example, WTPart's
"name" is derivedFrom "master>name".
Supported API: true
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe property this property derives from.The name of this property. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionControls the accessibility and exceptions for generated accessor methods.The method body to generate for thegettermethod.A string representing theJavaDocto generate for this property.The method body to generate for thesettermethod.The supported nature of this property to be generated into your marvelousJavaDocIf specified, uses this class as the return/set type for the property, bypassing the normal algorithm used to chase down the real type for the derived property.
-
Element Details
-
name
String nameThe name of this property.Rose conversion note: Corresponds to Class Attribute Specification -> General -> Name.
Supported API: true
-
derivedFrom
String derivedFromThe property this property derives from. Specified via the same "dot" ("." or ">") notation used by queries as described by the following examples:WTPart's "name" derives from "master>name". The ">" is used for foreign key associations (the "master" is a foreign key link to aWTPartMaster)Iterated's "modifierName" derives from "iterationInfo.modifier.name". Here, "."s are used because "iterationInfo" is a cookie, "modifier" anObjectMappable, and "name" is a property of "modifier".
Rose conversion note: Corresponds to Class Attribute Specification -> Windchill -> DerivedFrom.
Supported API: true
-
javaDoc
String javaDocA string representing theJavaDocto generate for this property. Your opportunity to impress your peers and customers! Note that the default value ("") indicates that theJavaDocshould generate a link to the actual property'sJavaDoc.Rose conversion note: Corresponds to Class Attribute Specification -> General -> Documentation.
Supported API: true
- See Also:
- Default:
""
-
supportedAPI
SupportedAPI supportedAPIThe supported nature of this property to be generated into your marvelousJavaDocRose conversion note: Corresponds to Class Attribute Specification -> Windchill -> SupportedAPI.
Supported API: true
- Default:
PRIVATE
-
accessors
PropertyAccessors accessorsControls the accessibility and exceptions for generated accessor methods.Rose conversion note: Corresponds to various properties found in Class Attribute Specification -> Windchill.
Supported API: true
- Default:
@com.ptc.windchill.annotations.metadata.PropertyAccessors
-
type
Class typeIf specified, uses this class as the return/set type for the property, bypassing the normal algorithm used to chase down the real type for the derived property. This is useful when it's not possible for the normal algorithm to follow the ">"s and "."s to find the real property (and its type).NOTE!!! If this property is specified, you are on the hook to provide implementations for the getter/setter (using
getBody()andsetBody()) as well completely specifyingjavaDoc()andaccessors().Supported API: true
- Default:
java.lang.Object.class
-
getBody
String getBodyThe method body to generate for thegettermethod. When specified, the contents of this property will be pasted, verbatim, into the body of the getter method.Supported API: true
- Default:
""
-
setBody
String setBodyThe method body to generate for thesettermethod. When specified, the contents of this property will be pasted, verbatim, into the body of the setter method.Supported API: true
- Default:
""
-