Interface PropertySet

All Superinterfaces:
Iterable<Property<?>>

public interface PropertySet
extends Iterable<Property<?>>
Represents a Property Set of a Component. This interface provides access to all Properties in the Property Set. This class corresponds to IfcPropertySet in IFC specifications.
Since:
9.10.2
  • Method Details

    • getProperty

      <T> Optional<Property<T>> getProperty​(String propertyName)
      Returns an optional of the property in the property set with the given name. If this property set does not contain any property matching the given name , this method will return empty.
      Type Parameters:
      T - the type of the property to be returned
      Parameters:
      propertyName - the property name
      Returns:
      an optional of the property with the given name
      Since:
      9.10.2
    • getProperties

      Set<Property<?>> getProperties()
      Returns a set of properties in the property set.
      Returns:
      a set of properties in the property set
      Since:
      9.10.2
    • getPropertyNames

      Set<String> getPropertyNames()
      Returns the set of property names in the property set.
      Returns:
      the set of property names in the property set
      Since:
      9.10.2
    • getName

      String getName()
      Returns the name of the property set.
      Returns:
      the name of the property set
      Since:
      9.10.2
    • contains

      boolean contains​(String propertyName)
      Returns true if the property set contains a property with the given name.
      Parameters:
      propertyName - the property name
      Returns:
      true, if the property set contains a property with the given property name
      Since:
      9.10.2
    • containsAll

      boolean containsAll​(Set<String> propertyNames)
      Returns true if the property set contains all property names in the given set.
      Parameters:
      propertyNames - the set of property names
      Returns:
      true, if the property set contains all property names in the given set
      Since:
      9.10.2