Package com.solibri.smc.api.model
Interface PropertySet
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 Summary
Modifier and Type Method Description boolean
contains(String propertyName)
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.String
getName()
Returns the name of the property set.Set<Property<?>>
getProperties()
Returns a set of properties in the property set.<T> Optional<Property<T>>
getProperty(String propertyName)
Returns an optional of the property in the property set with the given name.Set<String>
getPropertyNames()
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
-