Package org.apache.xalan.xsltc.runtime

Examples of org.apache.xalan.xsltc.runtime.Hashtable$HashtableEnumerator


        Enumeration idValues = m_idAttributes.keys();
        if (!idValues.hasMoreElements()) {
            return null;
        }

        Hashtable idAttrsTable = new Hashtable();

        while (idValues.hasMoreElements()) {
            Object idValue = idValues.nextElement();

            idAttrsTable.put(idValue, m_idAttributes.get(idValue));
        }

        return idAttrsTable;
    }
View Full Code Here


     * @param value The value to assign to the parameter
     */
    public void setParameter(String name, Object value) {
  if (_isIdentity) {
      if (_parameters == null) {
    _parameters = new Hashtable();
      }
      _parameters.put(name, value);
  }
  else {
      _translet.addParameter(name, value);
View Full Code Here

     * @see org.apache.xml.dtm.DTMWSFilter
     * @see org.apache.xsltc.StripFilter
     */
    public DOMWSFilter(AbstractTranslet translet) {
        m_translet = translet;
        m_mappings = new Hashtable();

        if (translet instanceof StripFilter) {
            m_filter = (StripFilter) translet;
        }
    }
View Full Code Here

                _document = (Document)node;
            }
            else {
                _document = node.getOwnerDocument();
            }
            _node2Ids = new Hashtable();
        }                         
    }
View Full Code Here

        Enumeration idValues = m_idAttributes.keys();
        if (!idValues.hasMoreElements()) {
            return null;
        }

        Hashtable idAttrsTable = new Hashtable();

        while (idValues.hasMoreElements()) {
            Object idValue = idValues.nextElement();

            idAttrsTable.put(idValue, m_idAttributes.get(idValue));
        }

        return idAttrsTable;
    }
View Full Code Here

  try {
      final int classCount = _bytecodes.length;
      _class = new Class[classCount];

      if (classCount > 1) {
          _auxClasses = new Hashtable();
      }

      for (int i = 0; i < classCount; i++) {
    _class[i] = loader.defineClass(_bytecodes[i]);
    final Class superClass = _class[i].getSuperclass();
View Full Code Here

  // it contains pairs of element types (Integer) mapping to ID attribute
  // types (Integer). This eliminates string comparisons, and makes it
  // possible for us to traverse the input DOM just once.
  Enumeration elements = _idAttributes.keys();
  if (elements.nextElement() instanceof String) {
      Hashtable newAttributes = new Hashtable();
      elements = _idAttributes.keys();
      while (elements.hasMoreElements()) {
    String element = (String)elements.nextElement();
    String attribute = (String)_idAttributes.get(element);
    int elemType = dom.getGeneralizedType(element);
    int attrType = dom.getGeneralizedType(attribute);
    newAttributes.put(new Integer(elemType), new Integer(attrType));
      }
      _idAttributes = newAttributes;
  }

  // Get all nodes in the DOM
View Full Code Here

    /**
     * Sets up a translet-to-dom type mapping table
     */
    private Hashtable setupMapping(String[] namesArray) {
  final int nNames = namesArray.length;
  final Hashtable types = new Hashtable(nNames);
  for (int i = 0; i < nNames; i++) {
      types.put(namesArray[i], new Integer(i + NTYPES));
  }
  return types;
    }
View Full Code Here

  /**
   * SAX2: Receive notification of the beginning of a document.
   */
  public void startDocument() throws SAXException {
      _shortTexts     = new Hashtable();
      _names          = new Hashtable();
      _sp             = 0;
      _parentStack[0] = ROOTNODE;  // root
      _currentNode    = ROOTNODE + 1;
      _currentAttributeNode = 1;
      _type2[0] = NAMESPACE;
View Full Code Here

     * @see org.apache.xml.dtm.DTMWSFilter
     * @see org.apache.xsltc.StripFilter
     */
    public DOMWSFilter(AbstractTranslet translet) {
        m_translet = translet;
        m_mappings = new Hashtable();

        if (translet instanceof StripFilter) {
            m_filter = (StripFilter) translet;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.xalan.xsltc.runtime.Hashtable$HashtableEnumerator

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.