public class PropertiesDecoder extends java.lang.Object implements Properties2Configuration
JAtom
components.Constructor and Description |
---|
PropertiesDecoder() |
Modifier and Type | Method and Description |
---|---|
void |
importProperties(Context _configuration,
java.util.Properties _props,
java.lang.String[] _except,
boolean _force)
Imports properties in the given context, save those whose keys
begin with an excepted prefix.
|
void |
importProperty(Context _context,
java.lang.String _name,
java.lang.String _value,
boolean _force)
Imports a property in the given context.
|
public void importProperties(Context _configuration, java.util.Properties _props, java.lang.String[] _except, boolean _force)
.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 overwritingpublic void importProperty(Context _context, java.lang.String _name, java.lang.String _value, boolean _force)
importProperty
in interface Properties2Configuration
_configuration
- where the imported property is added_name
- the property name_value
- the property value_force
- forces element overwriting