@Immutable @Loggable(value=1) public final class Directives extends AbstractCollection<Directive>
Directive
s, instantiable from String
.
For example, to fetch directives from a string and apply to the DOM document:
Document dom = DocumentBuilderFactory.newInstance() .newDocumentBuilder().newDocument(); dom.appendChild(dom.createElement("root")); new Xembler( new Directives("XPATH 'root'; ADD 'employee';") ).exec(dom);
Constructor and Description |
---|
Directives(String text)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Directive> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public Directives(String text) throws XemblySyntaxException
text
- Xembly scriptXemblySyntaxException
- If syntax is brokenpublic Iterator<Directive> iterator()
iterator
in interface Iterable<Directive>
iterator
in interface Collection<Directive>
iterator
in class AbstractCollection<Directive>
public int size()
size
in interface Collection<Directive>
size
in class AbstractCollection<Directive>
Copyright © 2013 Xembly. All rights reserved.