Package com.solibri.smc.api.model
Interface PropertySet
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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
-
-