org.apache.jetspeed.page.document.impl
Class NodeSetImpl
java.lang.Object
org.apache.jetspeed.page.document.impl.NodeSetImpl
- All Implemented Interfaces:
- NodeSet
public class NodeSetImpl
- extends java.lang.Object
- implements NodeSet
NodeSetImpl
- Version:
- $Id$
- Author:
- Randy Watler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_NODE_SET
public static final NodeSetImpl EMPTY_NODE_SET
NodeSetImpl
public NodeSetImpl(java.util.List nodes,
java.util.Comparator comparator)
NodeSetImpl
public NodeSetImpl(java.util.List nodes)
NodeSetImpl
public NodeSetImpl(java.util.Comparator comparator)
NodeSetImpl
public NodeSetImpl(NodeSet nodeSet)
NodeSetImpl
public NodeSetImpl()
add
public void add(Node node)
- Specified by:
add
in interface NodeSet
get
public Node get(java.lang.String name)
- Description copied from interface:
NodeSet
get
Returns a Node based on name
. name
can either be the fully quallified path, folder1/folder2/myPage.psml
as returned by Node.getPath(), or the page name relative the Node.getParent().getPath()
as return by Node.getName()that this DocumentSet was generated for.
- Specified by:
get
in interface NodeSet
- Returns:
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface NodeSet
subset
public NodeSet subset(java.lang.String type)
- Specified by:
subset
in interface NodeSet
inclusiveSubset
public NodeSet inclusiveSubset(java.lang.String regex)
- Specified by:
inclusiveSubset
in interface NodeSet
exclusiveSubset
public NodeSet exclusiveSubset(java.lang.String regex)
- Specified by:
exclusiveSubset
in interface NodeSet
size
public int size()
- Specified by:
size
in interface NodeSet
contains
public boolean contains(Node node)
- Specified by:
contains
in interface NodeSet
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface NodeSet
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.