public abstract class ConfigComplexEntityBase extends ConfigEntityBase implements IConfigComplexEntity
This class supplies the base implementation for a complex configuration entity. The provider should extend this class and complete the implementation.
Modifier and Type | Method and Description |
---|---|
IConfigContentNode |
clear()
Implementation of
IConfigContentNode.clear() |
void |
deserialize(String str,
boolean markAsDirty)
Implementation of
IConfigEntity.deserialize(java.lang.String, boolean) |
Properties |
getProperties(String setname)
Implementation of
IConfigComplexEntity.getProperties(java.lang.String) |
String |
getProperty(String setname,
String propname,
String defval)
|
Iterator<String> |
names()
Implementation of
IConfigComplexEntity.names() |
void |
serialize(StringBuilder builder)
Implementation of
IConfigEntity.serialize(java.lang.StringBuilder) |
IConfigComplexEntity |
setProperties(String setname,
Properties props)
|
IConfigComplexEntity |
setProperty(String setname,
String propname,
String propval)
|
String |
toString()
Returns a string representation of the entity object
|
getContainer, getName
isDirty, setDirty
getAddress, getRepository
getTracer
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContainer, getName
isDirty, setDirty
getAddress, getRepository
public final IConfigComplexEntity setProperties(String setname, Properties props)
setProperties
in interface IConfigComplexEntity
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.public final Properties getProperties(String setname)
IConfigComplexEntity.getProperties(java.lang.String)
getProperties
in interface IConfigComplexEntity
setname
- The name of the property set from which to get the properties. A
property set name must be non-null.public final IConfigComplexEntity setProperty(String setname, String propname, String propval)
IConfigComplexEntity.setProperty(java.lang.String, java.lang.String, java.lang.String)
setProperty
in interface IConfigComplexEntity
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.public final String getProperty(String setname, String propname, String defval)
IConfigComplexEntity.getProperty(java.lang.String, java.lang.String, java.lang.String)
getProperty
in interface IConfigComplexEntity
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.public final Iterator<String> names()
IConfigComplexEntity.names()
names
in interface IConfigComplexEntity
public final IConfigContentNode clear()
IConfigContentNode.clear()
clear
in interface IConfigContentNode
public final void serialize(StringBuilder builder)
IConfigEntity.serialize(java.lang.StringBuilder)
serialize
in interface IConfigEntity
builder
- The string builder to serialize the entity to.public final void deserialize(String str, boolean markAsDirty) throws EConfigException
IConfigEntity.deserialize(java.lang.String, boolean)
deserialize
in interface IConfigEntity
str
- The string to derialize from.markAsDirty
- Indicates whether to mark the entity as dirty.EConfigException
public final String toString()
toString
in class ConfigEntityBase
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.