public interface ExtendedPropertiesSupport
Modifier and Type | Method and Description |
---|---|
Map |
getExtendedProperties()
Returns a hash map with all new properties associated to this layer.
|
Object |
getProperty(Object key)
Returns a reference to an object (property) associated to this layer.
|
void |
setProperty(Object key,
Object obj)
Inserts an object as a property to this layer.
|
Object getProperty(Object key)
Returns a reference to an object (property) associated to this layer.
For example, you can attach a network definition to key "network" and check if a layer has a network loaded using getAssociatedObject("network") and that it's not null.
key
- the key associated to the propertynull
if key is not foundgetExtendedProperties()
,
setProperty(Object, Object)
void setProperty(Object key, Object obj)
key
- the key associated to the propertyobj
- the propertygetProperty(Object)
,
getExtendedProperties()
Map getExtendedProperties()
getProperty(Object)
,
setProperty(Object, Object)