-
public interface HandleUserPropertiesAn interface that describe an object that can handle user properties.- Since:
- 1.0.9
- Version:
- "1.0.12" - b202004280800L
- Author:
- Julien Seinturier - COMEX S.A. - contact@jorigin.org - https://github.com/jorigin/jeometry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearUserProperties()Clear the user properties associated to this object.ObjectgetUserProperty(String propertyName)Get the user property mapped with the givenname.List<String>getUserPropertyNames()Get the list of the names of all properties attached to this object.ObjectsetUserProperty(String name, Object value)Set the user property mapped with the givennameto the givenvalue.
-
-
-
Method Detail
-
getUserProperty
Object getUserProperty(String propertyName)
Get the user property mapped with the givenname. If no property is mapped,nullis returned.- Parameters:
propertyName- the name of the property.- Returns:
- the user property mapped with the given
name. If no property is mapped,nullis returned. - See Also:
setUserProperty(String, Object)
-
setUserProperty
Object setUserProperty(String name, Object value)
Set the user property mapped with the givennameto the givenvalue. If a property is already mapped with this name, the old value is returned.- Parameters:
name- the name of the property.value- the value of the property.- Returns:
- the old value of the property that was mapped.
- See Also:
getUserProperty(String)
-
getUserPropertyNames
List<String> getUserPropertyNames()
Get the list of the names of all properties attached to this object.- Returns:
- the list of the names of all properties attached to this object.
-
clearUserProperties
void clearUserProperties()
Clear the user properties associated to this object.
-
-