org.oddjob.values.types
Class PropertyType
java.lang.Object
org.oddjob.values.types.PropertyType
- All Implemented Interfaces:
- Serializable, org.apache.commons.beanutils.DynaBean
public class PropertyType
- extends Object
- implements org.apache.commons.beanutils.DynaBean, Serializable
Description
This is an internal type used to allow nested properties
in a PropertiesJob
.- See Also:
- Serialized Form
Method Summary |
boolean |
contains(String name,
String key)
|
Object |
get(String name)
|
Object |
get(String name,
int index)
|
Object |
get(String name,
String key)
|
org.apache.commons.beanutils.DynaClass |
getDynaClass()
|
void |
remove(String name,
String key)
|
void |
set(String name,
int index,
Object value)
|
void |
set(String name,
Object value)
|
void |
set(String name,
String key,
Object value)
|
int |
size()
Get the size, which is the number of children,
for this property. |
Properties |
toProperties()
Converts this PropertyType into Properties. |
String |
toString()
Override toString(). |
PropertyType
public PropertyType()
- Only public constructor. Used to create the root of a property
hierarchy.
toProperties
public Properties toProperties()
- Converts this PropertyType into Properties.
- Returns:
size
public int size()
- Get the size, which is the number of children,
for this property.
- Returns:
- The number of children.
contains
public boolean contains(String name,
String key)
- Specified by:
contains
in interface org.apache.commons.beanutils.DynaBean
get
public Object get(String name)
- Specified by:
get
in interface org.apache.commons.beanutils.DynaBean
get
public Object get(String name,
int index)
- Specified by:
get
in interface org.apache.commons.beanutils.DynaBean
get
public Object get(String name,
String key)
- Specified by:
get
in interface org.apache.commons.beanutils.DynaBean
getDynaClass
public org.apache.commons.beanutils.DynaClass getDynaClass()
- Specified by:
getDynaClass
in interface org.apache.commons.beanutils.DynaBean
remove
public void remove(String name,
String key)
- Specified by:
remove
in interface org.apache.commons.beanutils.DynaBean
set
public void set(String name,
int index,
Object value)
- Specified by:
set
in interface org.apache.commons.beanutils.DynaBean
set
public void set(String name,
Object value)
- Specified by:
set
in interface org.apache.commons.beanutils.DynaBean
set
public void set(String name,
String key,
Object value)
- Specified by:
set
in interface org.apache.commons.beanutils.DynaBean
toString
public String toString()
- Override toString().
- Overrides:
toString
in class Object
- Returns:
- a String or null if the resolved value is null.