public interface EPGMAttributed
| Modifier and Type | Method and Description |
|---|---|
Properties |
getProperties()
Returns all properties of that entity.
|
int |
getPropertyCount()
Returns the number of properties stored at that entity.
|
Iterable<String> |
getPropertyKeys()
Returns all property keys of that entity or
null it that entity has
no properties. |
PropertyValue |
getPropertyValue(String key)
Returns the object referenced by the given key or
null if the key
does not exist. |
boolean |
hasProperty(String key)
Returns true, if the element has a property with the given property key.
|
PropertyValue |
removeProperty(String key)
Removes the properties associated with the given key.
|
void |
setProperties(Properties properties)
Sets the given properties as new properties.
|
void |
setProperty(Property property)
Adds a given property to that entity.
|
void |
setProperty(String key,
Object value)
Adds a given property to that entity.
|
void |
setProperty(String key,
PropertyValue value)
Adds a given property to that entity.
|
@Nullable Properties getProperties()
Iterable<String> getPropertyKeys()
null it that entity has
no properties.PropertyValue getPropertyValue(String key)
null if the key
does not exist.key - property keynull if key does not existvoid setProperties(Properties properties)
properties - new propertiesvoid setProperty(Property property)
property - propertyvoid setProperty(String key, PropertyValue value)
key does not exist, a new
property will be created. Otherwise, the existing property value will be
overwritten by the given value.key - property keyvalue - property valuevoid setProperty(String key, Object value)
key does not exist, a new
property will be created. Otherwise, the existing property value will be
overwritten by the given value.key - property keyvalue - property valuePropertyValue removeProperty(String key)
key - property keynull if the key was not foundint getPropertyCount()
boolean hasProperty(String key)
key - property keyCopyright © 2014 - 2018–2018 University of Leipzig. All rights reserved.