Package com.solibri.smc.api.model
Interface Property<T>
- Type Parameters:
T
- type of property
public interface Property<T>
Represents a Property of a PropertySet in a
Component
.
Allows to get the name, value, and check if the Property contains a value.
This class corresponds to IfcProperty in IFC specifications.- Since:
- 9.10.2
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the property contains a value.Returns the imported value type, such as, IFCLABEL, when available.getName()
Returns the name of this property.getValue()
Returns an optional of the value of this property.Returns the value of the property as string.
-
Method Details
-
getName
String getName()Returns the name of this property.- Returns:
- the name of this property
- Since:
- 9.10.2
-
getValue
Returns an optional of the value of this property. If this Property does not contain a value, this method will return empty.- Returns:
- an option of the value of this property
- Since:
- 9.10.2
-
getImportedValueType
Returns the imported value type, such as, IFCLABEL, when available.- Returns:
- the value type or Optional.empty() if not available
- Since:
- 9.13.2
-
getValueAsString
String getValueAsString()Returns the value of the property as string.- Returns:
- the value of the property
- Since:
- 9.10.2
-
containsValue
boolean containsValue()Returns true if the property contains a value.- Returns:
- true, if the property contains a value
- Since:
- 9.10.2
-