|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--arlut.csd.ganymede.CategoryDump
This class is intended to serve as a stub to hold basic information about server side categories for the client to process locally.
Note that even though this class is implementing a remote interface, it is doing so for the purpose of providing a consistent interface for the client, not for actual remote access. Thus, we are not extending UnicastRemoteObject as we would if we were truly a remote object.
| Field Summary | |
(package private) java.util.Vector |
contents
|
private int |
lastIndex
|
(package private) java.lang.String |
name
|
(package private) CategoryDump |
parent
|
| Constructor Summary | |
CategoryDump(CategoryDump parent,
char[] src,
int index)
|
|
| Method Summary | |
void |
addNodeAfter(CategoryNode node,
java.lang.String prevNodeName)
This method is used to place a Category Node under us. |
void |
addNodeBefore(CategoryNode node,
java.lang.String nextNodeName)
This method is used to place a Category Node under us. |
java.util.Vector |
getBases()
This method returns a vector of BaseDump objects, one for each base held under this base. |
private void |
getBases(java.util.Vector inout)
|
Category |
getCategory()
This method returns the category that this category node belongs to. |
private java.lang.String |
getChunk(char[] chars,
int startDex)
|
int |
getLastIndex()
|
java.lang.String |
getName()
Returns the name of this category. |
CategoryNode |
getNode(java.lang.String name)
Returns a subcategory of name |
java.util.Vector |
getNodes()
Returns child nodes |
java.lang.String |
getPath()
Returns the full path to this category, with levels in the hierarchy separated by '/'s. |
boolean |
isUnder(Category cat)
This method returns true if this is a subcategory of cat. |
void |
moveCategoryNode(java.lang.String catPath,
java.lang.String prevNodeName)
This method can be used to move a Category from another Category to this Category, or to move a Category around within this Category. |
Category |
newSubCategory()
This creates a new subcategory under this category, with displayOrder after the last item currently in the category. |
void |
removeNode(CategoryNode node)
This method is used to remove a Category Node from under us. |
void |
removeNode(java.lang.String name)
This method is used to remove a Category Node from under us. |
void |
setCategory(Category category)
This method tells the CategoryNode what it's containing category is. |
boolean |
setName(java.lang.String newName)
Sets the name of this node. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
CategoryDump parent
java.lang.String name
java.util.Vector contents
private int lastIndex
| Constructor Detail |
public CategoryDump(CategoryDump parent,
char[] src,
int index)
| Method Detail |
public int getLastIndex()
public java.lang.String getName()
getName in interface Categorypublic java.lang.String getPath()
getPath in interface Categorypublic java.util.Vector getBases()
private void getBases(java.util.Vector inout)
public boolean setName(java.lang.String newName)
setName in interface Categorypublic void setCategory(Category category)
setCategory in interface CategoryNodepublic Category getCategory()
getCategory in interface Categorypublic java.util.Vector getNodes()
getNodes in interface Categorypublic CategoryNode getNode(java.lang.String name)
getNode in interface Category
public void addNodeAfter(CategoryNode node,
java.lang.String prevNodeName)
This method is used to place a Category Node under us. This method adds a new node into this category, after prevNodeName if prevNodeName is not null, or at the end of the category if it is.
addNodeAfter in interface Categorynode - Node to place under this categoryprevNodeName - the name of the node that the new node is to be added afterCategory
public void addNodeBefore(CategoryNode node,
java.lang.String nextNodeName)
This method is used to place a Category Node under us. This method adds a new node into this category, before nextNodeName if nextNodeName is not null, or at the beginning of the category if it is.
addNodeBefore in interface Categorynode - Node to place under this categorynextNodeName - the name of the node that the new node is to be added before,
must not be path-qualified.Category
public void moveCategoryNode(java.lang.String catPath,
java.lang.String prevNodeName)
moveCategoryNode in interface Categorynode - Node to place under this categoryprevNodeName - the name of the node that the new node is to be added afterpublic void removeNode(CategoryNode node)
removeNode in interface Categorypublic void removeNode(java.lang.String name)
removeNode in interface Categorypublic Category newSubCategory()
newSubCategory in interface Categorypublic boolean isUnder(Category cat)
isUnder in interface Category
private java.lang.String getChunk(char[] chars,
int startDex)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||