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, getName
isDirty, setDirty
getAddress, getRepository
getTracer
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContainer, getName
isDirty, setDirty
getAddress, getRepository
public ConfigSimpleEntityBase(IConfigRepository repository, String name, IConfigSimpleEntityContainer container)
public final IConfigSimpleEntity setProperties(Properties props)
IConfigSimpleEntity.setProperties(java.util.Properties)
setProperties
in interface IConfigSimpleEntity
props
- 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 IConfigSimpleEntity
public final IConfigSimpleEntity setProperty(String propname, String propval)
IConfigSimpleEntity.setProperty(java.lang.String, java.lang.String)
setProperty
in interface IConfigSimpleEntity
propname
- 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 IConfigSimpleEntity
propname
- 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 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.