com.neeve.config
Interface IConfigSimpleEntity

All Superinterfaces:
IConfigContentNode, IConfigEntity, IConfigNode

public interface IConfigSimpleEntity
extends IConfigEntity

Represents a simple entity in the configuration repository.

A simple entity is an entity whose node forms a leaf node in the configuration tree. A simple entity contains a single property set.

Threading:
This class is not safe for concurrent access by multiple threads

Method Summary
 Properties getProperties()
          Get the entity's property set.
 String getProperty(String propname, String defval)
          Get a property value from an entity's property set.
 IConfigSimpleEntity setProperties(Properties props)
          Set a set of properties in an entity's property set.
 IConfigSimpleEntity setProperty(String propname, String propval)
          Set a property value in an entity's property set.
 
Methods inherited from interface com.neeve.config.IConfigEntity
deserialize, getContainer, getName, serialize
 
Methods inherited from interface com.neeve.config.IConfigContentNode
clear, isDirty, setDirty
 
Methods inherited from interface com.neeve.config.IConfigNode
getAddress, getRepository
 

Method Detail

setProperties

IConfigSimpleEntity setProperties(Properties props)
Set a set of properties in an entity's property set.

Parameters:
props - The property table from where to set the properties. A value of null clears all entity properties.
Returns:
Returns the entity on which the method was invoked for invocation chaining.
Threading:
This class is not safe for concurrent access by multiple threads

getProperties

Properties getProperties()
Get the entity's property set.

Returns:
Returns the entity's property set.
Threading:
This class is not safe for concurrent access by multiple threads

setProperty

IConfigSimpleEntity setProperty(String propname,
                                String propval)
Set a property value in an entity's property set.

Parameters:
propname - The property name.
propval - The property value.
Returns:
Returns the entity on which the method was invoked for invocation chaining.
Threading:
This class is not safe for concurrent access by multiple threads

getProperty

String getProperty(String propname,
                   String defval)
Get a property value from an entity's property set.

Parameters:
propname - The name of the property.
defval - The value to return in case the property was not found.
Threading:
This class is not safe for concurrent access by multiple threads


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.