Package com.ibm.commons.util

Examples of com.ibm.commons.util.IteratorWrapper


        protected abstract String getText(Object node);
        public abstract Iterator getNodeIterator();

        public Iterator getValueIterator() {
            return new IteratorWrapper(getNodeIterator()) {
                protected Object wrap( Object o ) {
                    return getText(o);
                }
            };
        }
View Full Code Here


    /**
     * Get all prefixes for the specified Namespace URI in this namespace context.
     * @fbscript
     */
    public Iterator getPrefixes(final String namespaceURI) {
      return new IteratorWrapper(
          new FilteredIterator(definitions.values().iterator()) {
            protected boolean accept( Object object ) {
              Definition d = (Definition)object;
              return StringUtil.equals(d.uri, namespaceURI);
            }
View Full Code Here

TOP

Related Classes of com.ibm.commons.util.IteratorWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.