org.jconfig
Class NestedCategory

java.lang.Object
  |
  +--org.jconfig.DefaultCategory
        |
        +--org.jconfig.NestedCategory
All Implemented Interfaces:
Category

public class NestedCategory
extends DefaultCategory

This class is the result of countless discussions of what a Category should be. After determing that it should be another class, and that we can do something useful, we created this Category. A Category is a logical extension of the Configuration has Categories has Properties has Value frame-of-mind. The primary goal is to reduce redundancy in source code when using setter and getters that include Category information.

Since:
2.2
Author:
Andreas Mecky , Terry Dye

Constructor Summary
NestedCategory(java.lang.String categoryName)
           
 
Method Summary
 void addCategory(Category cat)
           
 NestedCategory getCategory(java.lang.String name)
           
 java.util.Collection getChildCategories()
           
 
Methods inherited from class org.jconfig.DefaultCategory
addCategoryListener, addPropertyListener, fireCategoryChangedEvent, firePropertyChangedEvent, getArray, getArray, getBooleanProperty, getCategoryName, getCharProperty, getConfigurationName, getDoubleProperty, getExtendsCategory, getIntProperty, getLongProperty, getProperties, getProperty, getProperty, removeCategoryListener, removePropertyListener, setBooleanProperty, setCharProperty, setConfigurationName, setDoubleProperty, setExtendsCategory, setIntProperty, setLongProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedCategory

public NestedCategory(java.lang.String categoryName)
Parameters:
categoryName -  
Since:
2.2
Method Detail

addCategory

public void addCategory(Category cat)

getCategory

public NestedCategory getCategory(java.lang.String name)

getChildCategories

public java.util.Collection getChildCategories()


Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.