com.ibm.ftt.properties.util
Class AbstractCategory

java.lang.Object
  extended by com.ibm.ftt.properties.util.AbstractCategory
All Implemented Interfaces:
ICategory

public abstract class AbstractCategory
extends Object
implements ICategory

An implementation of part of the ICategory interface. You may subclass from this class to provide your own implementation.


Field Summary
static String COPY_RIGHT
           
 
Constructor Summary
AbstractCategory(String name, List infos)
           
 
Method Summary
 boolean deleteInstance(ICategoryInstance instance)
          Deletes a category instance from this category.
abstract  void exportInstances(OutputStream output)
           
 List getInstances()
          Returns all of the category instances for this category.
 String getName()
          Returns the name of the category.
 List getPropertyInformation()
          Returns the property info objects that contain information about the properties registered with the category in the property group manager.
abstract  void importInstances(InputStream input)
           
abstract  ICategoryInstance makeInstance()
          Makes an instance of this category.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_RIGHT

public static final String COPY_RIGHT
See Also:
Constant Field Values
Constructor Detail

AbstractCategory

public AbstractCategory(String name,
                        List infos)
Method Detail

exportInstances

public abstract void exportInstances(OutputStream output)
                              throws IOException,
                                     UnsupportedOperationException
Throws:
IOException
UnsupportedOperationException

getInstances

public List getInstances()
Description copied from interface: ICategory
Returns all of the category instances for this category.

Specified by:
getInstances in interface ICategory
Returns:
The category instances for this category. The returned list is unmodifiable.

getName

public String getName()
Description copied from interface: ICategory
Returns the name of the category.

Specified by:
getName in interface ICategory
Returns:
The name of the category. The category name is unique among all of the categories registered with a property group manager.

getPropertyInformation

public List getPropertyInformation()
Description copied from interface: ICategory
Returns the property info objects that contain information about the properties registered with the category in the property group manager.

Specified by:
getPropertyInformation in interface ICategory
Returns:
The list of property info objects for the properties in the category. The returned list is unmodifiable.

importInstances

public abstract void importInstances(InputStream input)
                              throws IOException,
                                     UnsupportedOperationException,
                                     DuplicateInstanceException,
                                     IllegalCategoryException
Throws:
IOException
UnsupportedOperationException
DuplicateInstanceException
IllegalCategoryException

makeInstance

public abstract ICategoryInstance makeInstance()
Description copied from interface: ICategory
Makes an instance of this category.

Specified by:
makeInstance in interface ICategory
Returns:
The category instance

deleteInstance

public boolean deleteInstance(ICategoryInstance instance)
Description copied from interface: ICategory
Deletes a category instance from this category.

Specified by:
deleteInstance in interface ICategory
Returns:
true if the instance was deleted; false otherwise.