public class ConfigSimpleEntityBase extends ConfigEntityBase implements IConfigSimpleEntity
This class supplies the base implementation for a simple configuration entity. The provider should extend this class and complete the implementation.
| Constructor and Description |
|---|
ConfigSimpleEntityBase(IConfigRepository repository,
String name,
IConfigSimpleEntityContainer container) |
| 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()
Implementation of
IConfigSimpleEntity.getProperties() |
String |
getProperty(String propname,
String defval)
Implementation of
IConfigSimpleEntity.getProperty(java.lang.String, java.lang.String) |
void |
serialize(StringBuilder builder)
Implementation of
IConfigEntity.serialize(java.lang.StringBuilder) |
IConfigSimpleEntity |
setProperties(Properties props)
Implementation of
IConfigSimpleEntity.setProperties(java.util.Properties) |
IConfigSimpleEntity |
setProperty(String propname,
String propval)
Implementation of
IConfigSimpleEntity.setProperty(java.lang.String, java.lang.String) |
String |
toString()
Returns a string representation of the simple entity object
|
getContainer, getNameisDirty, setDirtygetAddress, getRepositorygetTracerequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContainer, getNameisDirty, setDirtygetAddress, getRepositorypublic ConfigSimpleEntityBase(IConfigRepository repository, String name, IConfigSimpleEntityContainer container)
public final IConfigSimpleEntity setProperties(Properties props)
IConfigSimpleEntity.setProperties(java.util.Properties)setProperties in interface IConfigSimpleEntityprops - The property table from where to set the properties. A value of
null clears all entity properties.public final Properties getProperties()
IConfigSimpleEntity.getProperties()getProperties in interface IConfigSimpleEntitypublic final IConfigSimpleEntity setProperty(String propname, String propval)
IConfigSimpleEntity.setProperty(java.lang.String, java.lang.String)setProperty in interface IConfigSimpleEntitypropname - The property name.propval - The property value.public final String getProperty(String propname, String defval)
IConfigSimpleEntity.getProperty(java.lang.String, java.lang.String)getProperty in interface IConfigSimpleEntitypropname - The name of the property.defval - The value to return in case the property was not found.public final IConfigContentNode clear()
IConfigContentNode.clear()clear in interface IConfigContentNodepublic final void serialize(StringBuilder builder)
IConfigEntity.serialize(java.lang.StringBuilder)serialize in interface IConfigEntitybuilder - 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 IConfigEntitystr - The string to derialize from.markAsDirty - Indicates whether to mark the entity as dirty.EConfigExceptionpublic final String toString()
toString in class ConfigEntityBaseCopyright © 2019 Neeve Research, LLC. All Rights Reserved.