Package com.solibri.smc.api.model
Interface PropertySet
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 Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the property set contains a property with the given name.boolean
containsAll
(Set<String> propertyNames) Returns true if the property set contains all property names in the given set.getName()
Returns the name of the property set.Returns a set of properties in the property set.getProperty
(String propertyName) Returns an optional of the property in the property set with the given name.Returns the set of property names in the property set.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getProperty
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
Returns a set of properties in the property set.- Returns:
- a set of properties in the property set
- Since:
- 9.10.2
-
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
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
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
-