|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.ftt.properties.util.AbstractCategoryInstance
public abstract class AbstractCategoryInstance
Implementation of part of the ICategoryInstance interface. You can subclass this class to provide your own implementation.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Constructor Summary | |
|---|---|
AbstractCategoryInstance(ICategory category)
|
|
| Method Summary | |
|---|---|
ICategoryInstance |
copy()
|
boolean |
equals(Object object)
|
ICategory |
getCategory()
Returns the category that defines this instance. |
abstract String |
getName()
The name of this instance. |
List |
getProperties()
Returns all of the properties for this category instance. |
List |
getPropertyGroups()
Returns the property groups this category instance belongs to. |
String |
getValue(String name)
Convenience method for returning the value of a property belonging to this category instance. |
abstract void |
setName(String name)
Sets the name of this instance. |
abstract void |
setValue(String name,
String value)
Sets the value of a property belonging to the category instance. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COPY_RIGHT
| Constructor Detail |
|---|
public AbstractCategoryInstance(ICategory category)
| Method Detail |
|---|
public ICategory getCategory()
ICategoryInstance
getCategory in interface ICategoryInstancepublic abstract String getName()
ICategoryInstance
getName in interface ICategoryInstancepublic List getProperties()
ICategoryInstance
getProperties in interface ICategoryInstancepublic List getPropertyGroups()
ICategoryInstance
getPropertyGroups in interface ICategoryInstance
public String getValue(String name)
throws UnregisteredPropertyException
ICategoryInstance
getValue in interface ICategoryInstancename - The name of the property
UnregisteredPropertyException - If the name given name is not the name of a property
belonging to this instance.
public abstract void setName(String name)
throws DuplicateInstanceException
ICategoryInstance
setName in interface ICategoryInstancename - The instance name. The name must be unique among all of the instances of a
category.
DuplicateInstanceException - If the name is the name of an existing instance.
public abstract void setValue(String name,
String value)
throws UnregisteredPropertyException
ICategoryInstance
setValue in interface ICategoryInstancename - The name of the propertyvalue - The value for the property.
UnregisteredPropertyException - If the given name is not the name of a
property belonging to this instance.public ICategoryInstance copy()
public boolean equals(Object object)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||