Class AbstractSelectorPath
- java.lang.Object
-
- org.smooks.engine.resource.config.xpath.AbstractSelectorPath
-
- All Implemented Interfaces:
Iterable<SelectorStep>
,Collection<SelectorStep>
,List<SelectorStep>
,SelectorPath
- Direct Known Subclasses:
JaxenPatternSelectorPath
public abstract class AbstractSelectorPath extends Object implements SelectorPath
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionEvaluator
expressionEvaluator
protected Properties
namespaces
protected String
selector
protected List<SelectorStep>
selectorSteps
-
Constructor Summary
Constructors Constructor Description AbstractSelectorPath()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
namespaces
protected final Properties namespaces
-
selectorSteps
protected final List<SelectorStep> selectorSteps
-
expressionEvaluator
protected ExpressionEvaluator expressionEvaluator
-
selector
protected String selector
-
-
Method Detail
-
getNamespaces
public Properties getNamespaces()
- Specified by:
getNamespaces
in interfaceSelectorPath
-
setNamespaces
public void setNamespaces(Properties namespaces)
- Specified by:
setNamespaces
in interfaceSelectorPath
-
getSelector
public String getSelector()
- Specified by:
getSelector
in interfaceSelectorPath
-
size
public int size()
- Specified by:
size
in interfaceCollection<SelectorStep>
- Specified by:
size
in interfaceList<SelectorStep>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<SelectorStep>
- Specified by:
isEmpty
in interfaceList<SelectorStep>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<SelectorStep>
- Specified by:
contains
in interfaceList<SelectorStep>
-
iterator
public Iterator<SelectorStep> iterator()
- Specified by:
iterator
in interfaceCollection<SelectorStep>
- Specified by:
iterator
in interfaceIterable<SelectorStep>
- Specified by:
iterator
in interfaceList<SelectorStep>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<SelectorStep>
- Specified by:
toArray
in interfaceList<SelectorStep>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<SelectorStep>
- Specified by:
toArray
in interfaceList<SelectorStep>
-
add
public boolean add(SelectorStep selectorStep)
- Specified by:
add
in interfaceCollection<SelectorStep>
- Specified by:
add
in interfaceList<SelectorStep>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<SelectorStep>
- Specified by:
remove
in interfaceList<SelectorStep>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<SelectorStep>
- Specified by:
containsAll
in interfaceList<SelectorStep>
-
addAll
public boolean addAll(Collection<? extends SelectorStep> c)
- Specified by:
addAll
in interfaceCollection<SelectorStep>
- Specified by:
addAll
in interfaceList<SelectorStep>
-
addAll
public boolean addAll(int index, Collection<? extends SelectorStep> c)
- Specified by:
addAll
in interfaceList<SelectorStep>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<SelectorStep>
- Specified by:
removeAll
in interfaceList<SelectorStep>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<SelectorStep>
- Specified by:
retainAll
in interfaceList<SelectorStep>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<SelectorStep>
- Specified by:
clear
in interfaceList<SelectorStep>
-
get
public SelectorStep get(int index)
- Specified by:
get
in interfaceList<SelectorStep>
-
set
public SelectorStep set(int index, SelectorStep element)
- Specified by:
set
in interfaceList<SelectorStep>
-
add
public void add(int index, SelectorStep element)
- Specified by:
add
in interfaceList<SelectorStep>
-
remove
public SelectorStep remove(int index)
- Specified by:
remove
in interfaceList<SelectorStep>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interfaceList<SelectorStep>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<SelectorStep>
-
listIterator
public ListIterator<SelectorStep> listIterator()
- Specified by:
listIterator
in interfaceList<SelectorStep>
-
listIterator
public ListIterator<SelectorStep> listIterator(int index)
- Specified by:
listIterator
in interfaceList<SelectorStep>
-
subList
public List<SelectorStep> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<SelectorStep>
-
setConditionEvaluator
public void setConditionEvaluator(ExpressionEvaluator expressionEvaluator)
- Specified by:
setConditionEvaluator
in interfaceSelectorPath
-
getConditionEvaluator
public ExpressionEvaluator getConditionEvaluator()
- Specified by:
getConditionEvaluator
in interfaceSelectorPath
-
-