org.apache.jetspeed.page.document.impl
Class NodeSetImpl
java.lang.Object
org.apache.jetspeed.page.document.impl.NodeSetImpl
- All Implemented Interfaces:
- org.apache.jetspeed.page.document.NodeSet
public class NodeSetImpl
- extends Object
- implements org.apache.jetspeed.page.document.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
patternCache
private static final Map patternCache
nodes
private Map nodes
comparator
private Comparator comparator
NodeSetImpl
public NodeSetImpl(List nodes,
Comparator comparator)
NodeSetImpl
public NodeSetImpl(List nodes)
NodeSetImpl
public NodeSetImpl(Comparator comparator)
NodeSetImpl
public NodeSetImpl(org.apache.jetspeed.page.document.NodeSet nodeSet)
NodeSetImpl
public NodeSetImpl()
getCachedPattern
private Pattern getCachedPattern(String regex)
- getCachedPattern
- Parameters:
regex
- pattern
- Returns:
- cached pattern
add
public void add(org.apache.jetspeed.page.document.Node node)
- Specified by:
add
in interface org.apache.jetspeed.page.document.NodeSet
get
public org.apache.jetspeed.page.document.Node get(String name)
- Specified by:
get
in interface org.apache.jetspeed.page.document.NodeSet
iterator
public Iterator iterator()
- Specified by:
iterator
in interface org.apache.jetspeed.page.document.NodeSet
subset
public org.apache.jetspeed.page.document.NodeSet subset(String type)
- Specified by:
subset
in interface org.apache.jetspeed.page.document.NodeSet
inclusiveSubset
public org.apache.jetspeed.page.document.NodeSet inclusiveSubset(String regex)
- Specified by:
inclusiveSubset
in interface org.apache.jetspeed.page.document.NodeSet
exclusiveSubset
public org.apache.jetspeed.page.document.NodeSet exclusiveSubset(String regex)
- Specified by:
exclusiveSubset
in interface org.apache.jetspeed.page.document.NodeSet
size
public int size()
- Specified by:
size
in interface org.apache.jetspeed.page.document.NodeSet
contains
public boolean contains(org.apache.jetspeed.page.document.Node node)
- Specified by:
contains
in interface org.apache.jetspeed.page.document.NodeSet
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface org.apache.jetspeed.page.document.NodeSet
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.