Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsCore InfrastructureCore Attribute Provider

Core Attribute Provider

Quick Facts

PropertyValue
ClassOlpCorePythonAttributeProvider
Modulecenpyolpcore.OlpCorePythonAttributeProvider
Packagecenpyolpcore
ReleaseR2025.2.4
Methods17
SubclassesCore Item, Core Program Component

Inheritance

Quick Start

# Boilerplate Example coreAttributeProvider = ... # obtained from the runtime context result = coreAttributeProvider.GetAttributes()

Method Index

MethodReturnsSummary
GetAttributeslistGets all attributes
GetIntegerAttributeOlpCorePythonIntegerAttributeGets the first integer attribute with the given name.
GetDoubleAttributeOlpCorePythonDoubleAttributeGets the first double attribute with the given name.
GetStringAttributeOlpCorePythonStringAttributeGets the first string attribute with the given name.
GetBoolAttributeOlpCorePythonBoolAttributeGets the first bool attribute with the given name.
GetIntegerArrayAttributeOlpCorePythonIntegerArrayAttributeGets the first integer array attribute with the given name.
GetDoubleArrayAttributeOlpCorePythonDoubleArrayAttributeGets the first double array attribute with the given name.
GetStringArrayAttributeOlpCorePythonStringArrayAttributeGets the first string array attribute with the given name.
GetLiteralAttributeOlpCorePythonLiteralAttributeGets the first literal attribute with the given name.
GetIntegerintGets the value of the first integer attribute found with the given attribute name
GetDoublefloatGets the value of the first double attribute found with the given attribute name
GetStringstrGets the value of the first string attribute found with the given attribute name
GetBoolboolGets the value of the first bool attribute found with the given attribute name
GetIntegerArraylistGets the values of the first integer array attribute found with the given attribute name
GetDoubleArraylistGets the values of the first double array attribute found with the given attribute name
GetStringArraylistGets the values of the first string array attribute found with the given attribute name
GetLiteralstrGets the value of the first literal attribute found with the given attribute name

Query Methods

GetAttributes

def GetAttributes() -> list

Gets all attributes

Returns: list — Returns a list containing all attributes of this provider

GetIntegerAttribute

def GetIntegerAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonIntegerAttribute

Gets the first integer attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonIntegerAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetDoubleAttribute

def GetDoubleAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonDoubleAttribute

Gets the first double attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonDoubleAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetStringAttribute

def GetStringAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonStringAttribute

Gets the first string attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonStringAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetBoolAttribute

def GetBoolAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonBoolAttribute

Gets the first bool attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonBoolAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetIntegerArrayAttribute

def GetIntegerArrayAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonIntegerArrayAttribute

Gets the first integer array attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonIntegerArrayAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetDoubleArrayAttribute

def GetDoubleArrayAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonDoubleArrayAttribute

Gets the first double array attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonDoubleArrayAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetStringArrayAttribute

def GetStringArrayAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonStringArrayAttribute

Gets the first string array attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonStringArrayAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetLiteralAttribute

def GetLiteralAttribute(attributeName: str, bubbleUp: bool) -> OlpCorePythonLiteralAttribute

Gets the first literal attribute with the given name.

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: OlpCorePythonLiteralAttribute — returns the first attribute with the given name, None if no matching attribute was found

GetInteger

def GetInteger(attributeName: str, bubbleUp: bool) -> int

Gets the value of the first integer attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: int — returns the first attribute value with the given name, min() if no matching attribute was found

GetDouble

def GetDouble(attributeName: str, bubbleUp: bool) -> float

Gets the value of the first double attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: float — returns the first attribute value with the given name, NaN if no matching attribute was found

GetString

def GetString(attributeName: str, bubbleUp: bool) -> str

Gets the value of the first string attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: str — returns the first attribute value with the given name, empty string if no matching attribute was found

GetBool

def GetBool(attributeName: str, bubbleUp: bool) -> bool

Gets the value of the first bool attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: bool — returns the first attribute value with the given name, False if no matching attribute was found

GetIntegerArray

def GetIntegerArray(attributeName: str, bubbleUp: bool) -> list

Gets the values of the first integer array attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: list — returns a list with the values of the first attribute found. If no attribute was found, the list is empty

GetDoubleArray

def GetDoubleArray(attributeName: str, bubbleUp: bool) -> list

Gets the values of the first double array attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: list — returns a list with the values of the first attribute found. If no attribute was found, the list is empty

GetStringArray

def GetStringArray(attributeName: str, bubbleUp: bool) -> list

Gets the values of the first string array attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: list — returns a list with the values of the first attribute found. If no attribute was found, the list is empty

GetLiteral

def GetLiteral(attributeName: str, bubbleUp: bool) -> str

Gets the value of the first literal attribute found with the given attribute name

Parameters:

NameTypeDescription
attributeNamestrname of the attribute
bubbleUpboolbubble up the parents if possible

Returns: str — returns the first attribute value with the given name, empty string if no matching attribute was found

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?