public interface IConfigComplexEntity extends IConfigEntity
A complex entity extends a simple entity to be able to hold named property sets in addition to the default property set. The default property set is identified by the null key.
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties(String setname)
Get a set of properties from the entity's property set.
|
String |
getProperty(String setname,
String propname,
String defval)
Get a property value from an entity's property set.
|
Iterator<String> |
names()
Get an iterator to iterate over the names of the property sets
|
IConfigComplexEntity |
setProperties(String setname,
Properties props)
Set a set of properties in an entity's property set.
|
IConfigComplexEntity |
setProperty(String setname,
String propname,
String propval)
Set a property value in an entity's property set.
|
deserialize, getContainer, getName, serialize
clear, isDirty, setDirty
getAddress, getRepository
IConfigComplexEntity setProperties(String setname, Properties props)
setname
- The name of the property set in which to set the properties. A
property set name must be non-null.props
- The property table from where to set the properties. A value of
null will clear the properties for the specified property set.Properties getProperties(String setname)
setname
- The name of the property set from which to get the properties. A
property set name must be non-null.IConfigComplexEntity setProperty(String setname, String propname, String propval)
setname
- The name of the property set in which to set this value. A
property set name must be non-null.propname
- The property name.propval
- The property value.String getProperty(String setname, String propname, String defval)
setname
- The name of the property set from where to retrieve the property
value. A property set name must be non-null.propname
- The name of the property.defval
- The value to return in case the property was not found.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.