Interface adopted by a container object which can hold custom attributes, such as those associated with an ECProperty, ECSchema, or ECClass. More...
#include <ECSchema.h>
Public Member Functions | |
bool | IsDefined (WStringCR schemaName, WStringCR className) const |
Returns true if the container has a custom attribute of a class of the specified name. More... | |
bool | IsDefined (ECClassCR classDefinition) const |
Returns true if the container has a custom attribute of a class of the specified class definition. More... | |
IECInstancePtr | GetCustomAttribute (WStringCR schemaName, WStringCR className) const |
Retrieves the custom attribute matching the class name. More... | |
IECInstancePtr | GetCustomAttribute (ECClassCR classDefinition) const |
Retrieves the custom attribute matching the class definition. More... | |
IECInstancePtr | GetCustomAttributeLocal (WStringCR schemaName, WStringCR className) const |
Retrieves the custom attribute matching the class name. More... | |
IECInstancePtr | GetCustomAttributeLocal (ECClassCR classDefinition) const |
Retrieves the custom attribute matching the class definition. More... | |
IECInstancePtr | GetPrimaryCustomAttribute (WStringCR schemaName, WStringCR className) const |
Retrieves the custom attribute matching the class name. More... | |
IECInstancePtr | GetPrimaryCustomAttribute (ECClassCR classDefinition) const |
Retrieves the custom attribute matching the class definition. More... | |
ECCustomAttributeInstanceIterable | GetCustomAttributes (bool includeBase) const |
Retrieves all custom attributes from the container including supplemental custom attributes. More... | |
ECCustomAttributeInstanceIterable | GetPrimaryCustomAttributes (bool includeBase) const |
Retrieves all custom attributes from the container NOT including supplemental custom attributes. More... | |
ECObjectsStatus | SetCustomAttribute (IECInstanceR customAttributeInstance) |
Adds a custom attribute to the container. More... | |
bool | RemoveCustomAttribute (WStringCR schemaName, WStringCR className) |
Removes a custom attribute from the container. More... | |
bool | RemoveCustomAttribute (ECClassCR classDefinition) |
Removes a custom attribute from the container. More... | |
bool | IsDefined (WStringCR className) const |
LEGECY METHODS. More... | |
IECInstancePtr | GetCustomAttribute (WStringCR className) const |
IECInstancePtr | GetCustomAttributeLocal (WStringCR className) const |
IECInstancePtr | GetPrimaryCustomAttribute (WStringCR className) const |
bool | RemoveCustomAttribute (WStringCR className) |
Interface adopted by a container object which can hold custom attributes, such as those associated with an ECProperty, ECSchema, or ECClass.
Retrieves the custom attribute matching the class name.
Includes supplemental custom attributes and custom attributes from the base containers
[in] | schemaName | The name of the schema the CustomAttribute is defined in |
[in] | className | The name of the CustomAttribute Class to look for an instance of |
IECInstancePtr GetCustomAttribute | ( | ECClassCR | classDefinition | ) | const |
Retrieves the custom attribute matching the class definition.
Includes supplemental custom attributes and custom attributes from the base containers
[in] | classDefinition | The ECClass to look for an instance of |
IECInstancePtr GetCustomAttribute | ( | WStringCR | className | ) | const |
Retrieves the custom attribute matching the class name.
Includes supplemental custom attributes but not base containers
[in] | schemaName | The name of the schema the CustomAttribute is defined in |
[in] | className | The name of the CustomAttribute Class to look for an instance of |
IECInstancePtr GetCustomAttributeLocal | ( | ECClassCR | classDefinition | ) | const |
Retrieves the custom attribute matching the class definition.
Includes supplemental custom attributes but not base containers
[in] | classDefinition | The ECClass to look for an instance of |
IECInstancePtr GetCustomAttributeLocal | ( | WStringCR | className | ) | const |
ECCustomAttributeInstanceIterable GetCustomAttributes | ( | bool | includeBase | ) | const |
Retrieves all custom attributes from the container including supplemental custom attributes.
[in] | includeBase | Whether to include custom attributes from the base containers |
Retrieves the custom attribute matching the class name.
Includes custom attributes from base containers but not supplemental custom attributes
[in] | schemaName | The name of the schema the CustomAttribute is defined in |
[in] | className | The name of the CustomAttribute Class to look for an instance of |
IECInstancePtr GetPrimaryCustomAttribute | ( | ECClassCR | classDefinition | ) | const |
Retrieves the custom attribute matching the class definition.
Includes custom attributes from base containers but not supplemental custom attributes
[in] | classDefinition | The ECClass to look for an instance of |
IECInstancePtr GetPrimaryCustomAttribute | ( | WStringCR | className | ) | const |
ECCustomAttributeInstanceIterable GetPrimaryCustomAttributes | ( | bool | includeBase | ) | const |
Retrieves all custom attributes from the container NOT including supplemental custom attributes.
[in] | includeBase | Whether to include custom attributes from the base containers |
Returns true if the container has a custom attribute of a class of the specified name.
bool IsDefined | ( | ECClassCR | classDefinition | ) | const |
Returns true if the container has a custom attribute of a class of the specified class definition.
bool IsDefined | ( | WStringCR | className | ) | const |
LEGECY METHODS.
Removes a custom attribute from the container.
[in] | schemaName | The name of the schema the CustomAttribute is defined in |
[in] | className | Name of the class of the custom attribute to remove |
bool RemoveCustomAttribute | ( | ECClassCR | classDefinition | ) |
Removes a custom attribute from the container.
[in] | classDefinition | ECClass of the custom attribute to remove |
bool RemoveCustomAttribute | ( | WStringCR | className | ) |
ECObjectsStatus SetCustomAttribute | ( | IECInstanceR | customAttributeInstance | ) |
Adds a custom attribute to the container.