| java.lang.Object net.infonode.properties.base.PropertyGroup
All known Subclasses: net.infonode.properties.propertymap.PropertyMapGroup,
PropertyGroup | public class PropertyGroup (Code) | | A group of properties. The group have a name and a description. It can also have a super group from which it inherit
all it's properties. You can think of a property group as similar to a Java class, and properties similar to class
fields.
author: $Author: jesper $ version: $Revision: 1.6 $ |
PropertyGroup | public PropertyGroup(String name, String description)(Code) | | Creates a property group.
Parameters: name - the name of the group Parameters: description - the group description |
PropertyGroup | public PropertyGroup(PropertyGroup superGroup, String name, String description)(Code) | | Creates a property group with a super group.
All properties in the super group will be inherited to this group.
Parameters: superGroup - the super group of this group Parameters: name - the name of the group Parameters: description - the group description |
addProperty | public void addProperty(Property property)(Code) | | Add a property to this group.
Parameters: property - the property to add |
getDescription | public String getDescription()(Code) | | Returns the description for this group.
the description for this group |
getName | public String getName()(Code) | | Returns the name of this group.
the name of this group |
getProperties | public Property[] getProperties()(Code) | | Returns an array with the properties in this group.
This does not include properties in super groups.
an array with the properties in this group |
getProperty | public Property getProperty(int index)(Code) | | Returns the property at the index,
This does not include properties in super groups.
Parameters: index - the property index the property at the index |
getProperty | public Property getProperty(String name)(Code) | | Returns the property with the given name.
This includes properties in super groups.
Parameters: name - the property name the property with the given name, null if no property was found |
getPropertyCount | public int getPropertyCount()(Code) | | Returns the number of properties in this group.
This does not include properties in super groups.
the number of properties in this group |
getSuperGroup | public PropertyGroup getSuperGroup()(Code) | | Returns the super group of this group.
the super group of this group, null if it has no super group |
hasProperty | public boolean hasProperty(Property property)(Code) | | Returns true if this group or one of it's super groups contains the property.
Parameters: property - the property true if this group or one of it's super groups contains the property |
|
|