public boolean containsAll(Collection<?> c) { for (Object o : c) { if(!contains(o)) return false; } return true; }
public boolean isEmpty() { if(archive.isEmpty()) fetch(); return archive.isEmpty(); }
public <T>T[] toArray(T[] a) { fetchAll(); return archive.toArray(a); }
/** * Evaluates the SCD against the given set of context nodes and * returns the matched nodes. * * @param contextNodes * {@link XSComponent}s that represent the context node against * which {@link SCD} is evaluated. * * @return * could be empty but never be null. */ public final Collection<XSComponent> select(Collection<? extends XSComponent> contextNodes) { return new DeferedCollection<XSComponent>(select(contextNodes.iterator())); }
/** * Evaluates the SCD against the given set of context nodes and * returns the matched nodes. * * @param contextNodes * {@link XSComponent}s that represent the context node against * which {@link SCD} is evaluated. * * @return * could be empty but never be null. */ public final Collection<XSComponent> select(Collection<? extends XSComponent> contextNodes) { return new DeferedCollection<XSComponent>(select(contextNodes.iterator())); }
public Object[] toArray() { fetchAll(); return archive.toArray(); }
/** * Evaluates the SCD against the given set of context nodes and * returns the matched nodes. * * @param contextNodes * {@link XSComponent}s that represent the context node against * which {@link SCD} is evaluated. * * @return * could be empty but never be null. */ public final Collection<XSComponent> select(Collection<? extends XSComponent> contextNodes) { return new DeferedCollection<XSComponent>(select(contextNodes.iterator())); }
public boolean isEmpty() { if(archive.isEmpty()) fetch(); return archive.isEmpty(); }
public boolean containsAll(Collection<?> c) { for (Object o : c) { if(!contains(o)) return false; } return true; }
public Object[] toArray() { fetchAll(); return archive.toArray(); }
/** * Evaluates the SCD against the given set of context nodes and * returns the matched nodes. * * @param contextNodes * {@link XSComponent}s that represent the context node against * which {@link SCD} is evaluated. * * @return * could be empty but never be null. */ public final Collection<XSComponent> select(Collection<? extends XSComponent> contextNodes) { return new DeferedCollection<XSComponent>(select(contextNodes.iterator())); }
public boolean isEmpty() { if(archive.isEmpty()) fetch(); return archive.isEmpty(); }
public boolean containsAll(Collection<?> c) { for (Object o : c) { if(!contains(o)) return false; } return true; }
public int size() { fetchAll(); return archive.size(); }
/** * Evaluates the SCD against the given set of context nodes and * returns the matched nodes. * * @param contextNodes * {@link XSComponent}s that represent the context node against * which {@link SCD} is evaluated. * * @return * could be empty but never be null. */ public final Collection<XSComponent> select(Collection<? extends XSComponent> contextNodes) { return new DeferedCollection<XSComponent>(select(contextNodes.iterator())); }
public boolean isEmpty() { if(archive.isEmpty()) fetch(); return archive.isEmpty(); }
public boolean containsAll(Collection<?> c) { for (Object o : c) { if(!contains(o)) return false; } return true; }
public <T>T[] toArray(T[] a) { fetchAll(); return archive.toArray(a); }
/** * Evaluates the SCD against the given context node and * returns the matched nodes. * * @return * could be empty but never be null. */ public final Collection<XSComponent> select(XSComponent contextNode) { return new DeferedCollection<XSComponent>(select(Iterators.singleton(contextNode))); }
public boolean isEmpty() { if(archive.isEmpty()) fetch(); return archive.isEmpty(); }