|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.base.PropertyGroup
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.
Constructor Summary | |
PropertyGroup(PropertyGroup superGroup,
String name,
String description)
Creates a property group with a super group. |
|
PropertyGroup(String name,
String description)
Creates a property 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()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PropertyGroup(String name, String description)
name
- the name of the groupdescription
- the group descriptionpublic PropertyGroup(PropertyGroup superGroup, String name, String description)
superGroup
- the super group of this groupname
- the name of the groupdescription
- the group descriptionMethod Detail |
public PropertyGroup getSuperGroup()
public String getDescription()
public String getName()
public void addProperty(Property property)
property
- the property to addpublic int getPropertyCount()
public boolean hasProperty(Property property)
property
- the property
public Property getProperty(int index)
index
- the property index
public Property[] getProperties()
public String toString()
public Property getProperty(String name)
name
- the property name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |