Class AbstractSelectorPath
- java.lang.Object
-
- org.smooks.engine.resource.config.xpath.AbstractSelectorPath
-
- All Implemented Interfaces:
Iterable<org.smooks.api.resource.config.xpath.SelectorStep>,Collection<org.smooks.api.resource.config.xpath.SelectorStep>,List<org.smooks.api.resource.config.xpath.SelectorStep>,org.smooks.api.resource.config.xpath.SelectorPath
- Direct Known Subclasses:
JaxenPatternSelectorPath
public abstract class AbstractSelectorPath extends Object implements org.smooks.api.resource.config.xpath.SelectorPath
-
-
Field Summary
Fields Modifier and Type Field Description protected org.smooks.api.expression.ExpressionEvaluatorexpressionEvaluatorprotected Propertiesnamespacesprotected Stringselectorprotected List<org.smooks.api.resource.config.xpath.SelectorStep>selectorSteps
-
Constructor Summary
Constructors Constructor Description AbstractSelectorPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, org.smooks.api.resource.config.xpath.SelectorStep element)booleanadd(org.smooks.api.resource.config.xpath.SelectorStep selectorStep)booleanaddAll(int index, Collection<? extends org.smooks.api.resource.config.xpath.SelectorStep> c)booleanaddAll(Collection<? extends org.smooks.api.resource.config.xpath.SelectorStep> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)org.smooks.api.resource.config.xpath.SelectorStepget(int index)org.smooks.api.expression.ExpressionEvaluatorgetConditionEvaluator()PropertiesgetNamespaces()StringgetSelector()intindexOf(Object o)booleanisEmpty()Iterator<org.smooks.api.resource.config.xpath.SelectorStep>iterator()intlastIndexOf(Object o)ListIterator<org.smooks.api.resource.config.xpath.SelectorStep>listIterator()ListIterator<org.smooks.api.resource.config.xpath.SelectorStep>listIterator(int index)org.smooks.api.resource.config.xpath.SelectorStepremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)org.smooks.api.resource.config.xpath.SelectorStepset(int index, org.smooks.api.resource.config.xpath.SelectorStep element)voidsetConditionEvaluator(org.smooks.api.expression.ExpressionEvaluator expressionEvaluator)voidsetNamespaces(Properties namespaces)intsize()List<org.smooks.api.resource.config.xpath.SelectorStep>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)StringtoString()-
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<org.smooks.api.resource.config.xpath.SelectorStep> selectorSteps
-
expressionEvaluator
protected org.smooks.api.expression.ExpressionEvaluator expressionEvaluator
-
selector
protected String selector
-
-
Method Detail
-
getNamespaces
public Properties getNamespaces()
- Specified by:
getNamespacesin interfaceorg.smooks.api.resource.config.xpath.SelectorPath
-
setNamespaces
public void setNamespaces(Properties namespaces)
- Specified by:
setNamespacesin interfaceorg.smooks.api.resource.config.xpath.SelectorPath
-
getSelector
public String getSelector()
- Specified by:
getSelectorin interfaceorg.smooks.api.resource.config.xpath.SelectorPath
-
size
public int size()
- Specified by:
sizein interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
sizein interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
isEmptyin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
containsin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
iterator
public Iterator<org.smooks.api.resource.config.xpath.SelectorStep> iterator()
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
toArrayin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
toArrayin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
add
public boolean add(org.smooks.api.resource.config.xpath.SelectorStep selectorStep)
- Specified by:
addin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
addin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
removein interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
containsAllin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
addAll
public boolean addAll(Collection<? extends org.smooks.api.resource.config.xpath.SelectorStep> c)
- Specified by:
addAllin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
addAllin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
addAll
public boolean addAll(int index, Collection<? extends org.smooks.api.resource.config.xpath.SelectorStep> c)
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
removeAllin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
retainAllin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<org.smooks.api.resource.config.xpath.SelectorStep>- Specified by:
clearin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
get
public org.smooks.api.resource.config.xpath.SelectorStep get(int index)
-
set
public org.smooks.api.resource.config.xpath.SelectorStep set(int index, org.smooks.api.resource.config.xpath.SelectorStep element)
-
add
public void add(int index, org.smooks.api.resource.config.xpath.SelectorStep element)
-
remove
public org.smooks.api.resource.config.xpath.SelectorStep remove(int index)
-
indexOf
public int indexOf(Object o)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
listIterator
public ListIterator<org.smooks.api.resource.config.xpath.SelectorStep> listIterator()
- Specified by:
listIteratorin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
listIterator
public ListIterator<org.smooks.api.resource.config.xpath.SelectorStep> listIterator(int index)
- Specified by:
listIteratorin interfaceList<org.smooks.api.resource.config.xpath.SelectorStep>
-
subList
public List<org.smooks.api.resource.config.xpath.SelectorStep> subList(int fromIndex, int toIndex)
-
setConditionEvaluator
public void setConditionEvaluator(org.smooks.api.expression.ExpressionEvaluator expressionEvaluator)
- Specified by:
setConditionEvaluatorin interfaceorg.smooks.api.resource.config.xpath.SelectorPath
-
getConditionEvaluator
public org.smooks.api.expression.ExpressionEvaluator getConditionEvaluator()
- Specified by:
getConditionEvaluatorin interfaceorg.smooks.api.resource.config.xpath.SelectorPath
-
-