net.infonode.properties.base
public class PropertyGroup extends Object
Version: $Revision: 1.6 $
| Constructor Summary | |
|---|---|
| PropertyGroup(String name, String description)
Creates a property group.
| |
| PropertyGroup(PropertyGroup superGroup, String name, String description)
Creates a property group with a super group.
| |
| Method Summary | |
|---|---|
| void | addProperty(Property property)
Add a property to this group.
|
| String | getDescription()
Returns the description for this group.
|
| String | getName()
Returns the name of this group.
|
| Property[] | getProperties()
Returns an array with the properties in this group.
|
| Property | getProperty(int index)
Returns the property at the index,
This does not include properties in super groups.
|
| Property | getProperty(String name)
Returns the property with the given name.
|
| int | getPropertyCount()
Returns the number of properties in this group.
|
| PropertyGroup | getSuperGroup()
Returns the super group of this group.
|
| boolean | hasProperty(Property property)
Returns true if this group or one of it's super groups contains the property.
|
| String | toString() |
Parameters: name the name of the group description the group description
Parameters: superGroup the super group of this group name the name of the group description the group description
Parameters: property the property to add
Returns: the description for this group
Returns: the name of this group
Returns: an array with the properties in this group
Parameters: index the property index
Returns: the property at the index
Parameters: name the property name
Returns: the property with the given name, null if no property was found
Returns: the number of properties in this group
Returns: the super group of this group, null if it has no super group
Parameters: property the property
Returns: true if this group or one of it's super groups contains the property