Package org.apache.xalan.xsltc.dom

Examples of org.apache.xalan.xsltc.dom.KeyIndex


     *   @value is the value that will look up the node in the given index
     */
    public void buildKeyIndex(String name, int node, Object value) {
  if (_keyIndexes == null) _keyIndexes = new Hashtable();
 
  KeyIndex index = (KeyIndex)_keyIndexes.get(name);
  if (index == null) {
      _keyIndexes.put(name, index = new KeyIndex(_indexSize));
  }
  index.add(value, node);
    }
View Full Code Here


    public KeyIndex getKeyIndex(String name) {
  // Return an empty key index iterator if none are defined
  if (_keyIndexes == null) return(_emptyKeyIndex);

  // Look up the requested key index
  final KeyIndex index = (KeyIndex)_keyIndexes.get(name);

  // Return an empty key index iterator if the requested index not found
  if (index == null) return(_emptyKeyIndex);

  return(index);
View Full Code Here

  if (size > _indexSize)
      _indexSize = size;
    }

    public void buildKeyIndex(String name, int node, String value) {
  KeyIndex index = (KeyIndex)_keyIndexes.get(name);
  if (index == null) {
      _keyIndexes.put(name, index = new KeyIndex(_indexSize));
  }
  index.add(value, node);
    }
View Full Code Here

  }
  index.add(value, node);
    }

    public KeyIndex createKeyIndex() {
  return(new KeyIndex(_indexSize));
    }
View Full Code Here

    public KeyIndex createKeyIndex() {
  return(new KeyIndex(_indexSize));
    }

    public KeyIndex getKeyIndex(String name) {
  final KeyIndex index = (KeyIndex)_keyIndexes.get(name);
  return index != null ? index : _emptyKeyIndex;
    }
View Full Code Here

TOP

Related Classes of org.apache.xalan.xsltc.dom.KeyIndex

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.