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 aComponent
. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsValue()
Returns true if the property contains a value.String
getName()
Returns the name of this property.Optional<T>
getValue()
Returns an optional of the value of this property.String
getValueAsString()
Returns the value of the property as string.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of this property.- Returns:
- the name of this property
- Since:
- 9.10.2
-
getValue
Optional<T> 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
-
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
-
-