org.objectweb.jonathan.libs.kernel.decoders
Class PropertiesDecoder
java.lang.Object
org.objectweb.jonathan.libs.kernel.decoders.PropertiesDecoder
- Properties2Configuration
public class PropertiesDecoder
extends java.lang.Object
Common properties to configuration implementation.
May also create
JAtom
components.
void | importProperties(Context _configuration, Properties _props, String[] _except, boolean _force) - Imports properties in the given context, save those whose keys
begin with an excepted prefix.
|
void | importProperty(Context _context, String _name, String _value, boolean _force) - Imports a property in the given context.
|
PropertiesDecoder
public PropertiesDecoder()
importProperties
public void importProperties(Context _configuration,
Properties _props,
String[] _except,
boolean _force)
Imports properties in the given context, save those whose keys
begin with an excepted prefix. A property whose name ends with
.atom
is not translated into a JProperty, but into
a JAtom whose element name is the remaining part of the property
key.
- importProperties in interface Properties2Configuration
_configuration
- where the imported properties are added_props
- the properties to import_except
- the rejected property prefixes_force
- forces element overwriting
importProperty
public void importProperty(Context _context,
String _name,
String _value,
boolean _force)
Imports a property in the given context.
- importProperty in interface Properties2Configuration
_name
- the property name_value
- the property value_force
- forces element overwriting