Dynamically Resolved Attributes for Customizations
The following dynamically resolved attributes are provided by PTC, and can be used in customizations to return a specific set of attributes that are resolved at runtime. The values returned for the following attributes will be instances of AttribtueTypeIdentifierSet. The values represent the collection of AttributeTypeIdentifiers associated with that attribute. In addition, values for each of the attributes that is a member of the set will also be returned in the retrieved TypeInstance.
Attribute
Description
ALL_SOFT_ATTRIBUTES
Returns a list of all reusable attributes associated with the retrieved object as well as values for all of those attributes.
ALL_SOFT_CLASSIFICATION_ATTRIBUTES
Returns a list of all global attributes associated with the classification(s) of the retrieved object as well as values for all of those attributes.
ALL_SOFT_NON_SCHEMA_ATTRIBUTES
Returns a list of all reusable attributes associated with the retrieved object which are NOT global attribute on the type of the retrieved object as well as values for all of those attributes.
ALL_SOFT_SCHEMA_ATTRIBUTES
Returns a list of all global attributes associated with the type of the retrieved object as well as values for all of those attributes.
ALL_SOFT_SCHEMA_ATTRIBUTES_FOR_INPUT_TYPE
Returns a list of all global attributes associated with the type indicated by the context of the constructed AttributeTypeIdentifier as well as values for all of those attributes.
ALL_SOFT_NON_CLASSIFICATION_ATTRIBUTES
Returns a list of all reusable attributes associated with the retrieved object which are NOT global attributes associated with the classification(s) of the object, as well as the values for those attributes.
Example
TypeIdentifier type_x = ...;
AttributeTypeIdentifier ati = (AttributeTypeIdentifier)
IDENTIFIER_FACTORY.get("ALL_SOFT_SCHEMA_ATTRIBUTES_FOR_INPUT_TYPE"
,type_x);
If 'ati' is requested to be returned when a TypeInstance is retrieved, it will return a list of only the attributes associated with type_x, regardless of the actual type of the retrieved object.
This attribute is typically used for tables of objects which may or may not be of the same type, but all have a common supertype which defines the appropriate columns to display.
Attribute
Description
ALL_SOFT_NON_CLASSIFICATION_SCHEMA_ATTRIBUTES
Returns a list of all global attributes associated with the type of the retrieved object which are NOT associated with the classification(s) of the retrieved object as well as values for all of those attributes.
ALL_CUSTOM_HARD_ATTRIBUTES_FOR_INPUT_TYPE
Returns a list of all custom hard attributes associated with the type indicated by the context of the constructed AttributeTypeIdentifier as well as values for all of those attributes. 'Custom' hard attributes are defined to be all modeled attributes which are not inherited from classes in the 'wt' or 'com.ptc' packages.
Было ли это полезно?