|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.cms.site.NodeSet
public class NodeSet
A set containing nodes.
| Constructor Summary | |
|---|---|
NodeSet(DocumentSet documents)
Ctor. |
|
NodeSet(org.apache.avalon.framework.service.ServiceManager manager)
Ctor. |
|
NodeSet(org.apache.avalon.framework.service.ServiceManager manager,
SiteNode[] _nodes)
Ctor. |
|
| Method Summary | |
|---|---|
void |
add(SiteNode node)
Adds a node to this set. |
void |
addAll(NodeSet set)
Adds all nodes from a node set to this. |
NodeIterator |
ascending()
|
void |
clear()
Removes all nodes. |
boolean |
contains(SiteNode node)
|
NodeIterator |
descending()
|
Document[] |
getDocuments()
|
SiteNode[] |
getNodes()
Returns the documents contained in this set. |
protected SiteNode[] |
getNodesAscending()
|
protected java.util.Set |
getSet()
Returns the list object that stores the documents. |
boolean |
isEmpty()
Checks if this set is empty. |
void |
remove(SiteNode resource)
Removes a node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeSet(org.apache.avalon.framework.service.ServiceManager manager)
manager - The service manager.
public NodeSet(org.apache.avalon.framework.service.ServiceManager manager,
SiteNode[] _nodes)
manager - The service manager._nodes - The initial nodes.public NodeSet(DocumentSet documents)
documents - The corresponding documents to derive nodes from.| Method Detail |
|---|
public boolean contains(SiteNode node)
node - A node.
protected java.util.Set getSet()
public SiteNode[] getNodes()
public void add(SiteNode node)
node - The node to add.public boolean isEmpty()
public void remove(SiteNode resource)
resource - The node.public void clear()
public NodeIterator ascending()
public NodeIterator descending()
protected SiteNode[] getNodesAscending()
public Document[] getDocuments()
public void addAll(NodeSet set)
set - The set.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||