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 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 Details

    • 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