org.geotools.data.complex.filter
Class XPathUtil.StepList

Object
  extended by AbstractCollection<E>
      extended by AbstractList<E>
          extended by ArrayList<E>
              extended by CheckedArrayList<XPathUtil.Step>
                  extended by XPathUtil.StepList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<XPathUtil.Step>, Collection<XPathUtil.Step>, List<XPathUtil.Step>, RandomAccess, CheckedCollection<XPathUtil.Step>
Enclosing class:
XPathUtil

public static class XPathUtil.StepList
extends CheckedArrayList<XPathUtil.Step>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class AbstractList
modCount
 
Constructor Summary
XPathUtil.StepList(XPathUtil.StepList steps)
           
 
Method Summary
 XPathUtil.StepList clone()
          Returns a shallow copy of this list.
 boolean containsPredicate()
           
 boolean equalsIgnoreIndex(XPathUtil.StepList propertyName)
          Compares this StepList with another for equivalence regardless of the indexes of each Step.
 void setIndex(int index, String xpath, String separator)
          Find the first steps matching the xpath within this list, and set an index to it.
 boolean startsWith(XPathUtil.StepList other)
           
 XPathUtil.StepList subList(int fromIndex, int toIndex)
           
 String toString()
          Returns a string representation of this list.
 
Methods inherited from class CheckedArrayList
add, add, addAll, addAll, checkWritePermission, clear, contains, ensureCapacity, ensureValidType, equals, get, getElementType, getLock, hashCode, indexOf, isEmpty, iterator, lastIndexOf, remove, remove, removeAll, retainAll, set, size, toArray, toArray, trimToSize
 
Methods inherited from class ArrayList
removeRange
 
Methods inherited from class AbstractList
listIterator, listIterator
 
Methods inherited from class AbstractCollection
containsAll
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Collection
containsAll
 
Methods inherited from interface List
containsAll, listIterator, listIterator
 

Constructor Detail

XPathUtil.StepList

public XPathUtil.StepList(XPathUtil.StepList steps)
Method Detail

toString

public String toString()
Description copied from class: CheckedArrayList
Returns a string representation of this list.

Overrides:
toString in class CheckedArrayList<XPathUtil.Step>

containsPredicate

public boolean containsPredicate()

startsWith

public boolean startsWith(XPathUtil.StepList other)

subList

public XPathUtil.StepList subList(int fromIndex,
                                  int toIndex)
Specified by:
subList in interface List<XPathUtil.Step>
Overrides:
subList in class AbstractList<XPathUtil.Step>

clone

public XPathUtil.StepList clone()
Description copied from class: CheckedArrayList
Returns a shallow copy of this list.

Overrides:
clone in class CheckedArrayList<XPathUtil.Step>
Returns:
A shallow copy of this list.
See Also:
Object.clone()

equalsIgnoreIndex

public boolean equalsIgnoreIndex(XPathUtil.StepList propertyName)
Compares this StepList with another for equivalence regardless of the indexes of each Step.

Parameters:
propertyName -
Returns:
true if this step list has the same location paths than propertyName ignoring the indexes in each step. false otherwise.

setIndex

public void setIndex(int index,
                     String xpath,
                     String separator)
Find the first steps matching the xpath within this list, and set an index to it.

Parameters:
index - the new index for the matching steps
xpath - the xpath to be searched


Copyright © 1996-2014 Geotools. All Rights Reserved.