public class PropertyGroup
extends java.lang.Object
Constructor and Description |
---|
PropertyGroup(PropertyGroup superGroup,
java.lang.String name,
java.lang.String description)
Creates a property group with a super group.
|
PropertyGroup(java.lang.String name,
java.lang.String description)
Creates a property group.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(Property property)
Add a property to this group.
|
java.lang.String |
getDescription()
Returns the description for this group.
|
java.lang.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(java.lang.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.
|
java.lang.String |
toString() |
public PropertyGroup(java.lang.String name, java.lang.String description)
name
- the name of the groupdescription
- the group descriptionpublic PropertyGroup(PropertyGroup superGroup, java.lang.String name, java.lang.String description)
superGroup
- the super group of this groupname
- the name of the groupdescription
- the group descriptionpublic PropertyGroup getSuperGroup()
public java.lang.String getDescription()
public java.lang.String getName()
public void addProperty(Property property)
property
- the property to addpublic int getPropertyCount()
public boolean hasProperty(Property property)
property
- the propertypublic Property getProperty(int index)
index
- the property indexpublic Property[] getProperties()
public java.lang.String toString()
toString
in class java.lang.Object
public Property getProperty(java.lang.String name)
name
- the property name