Package org.apache.xalan.xsltc.runtime

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


  _cdataStack.push(new Integer(-1));   // push dummy value
    }

    protected void initNamespaces() {
  // Namespaces
  _namespaces = new Hashtable();
  _nodeStack = new Stack();
  _prefixStack = new Stack();

  // Define the default namespace (initially maps to "" uri)
  Stack stack;
View Full Code Here


  _cdataStack.push(new Integer(-1));   // push dummy value
    }

    protected void initNamespaces() {
  // Namespaces
  _namespaces = new Hashtable();
  _nodeStack = new Stack();
  _prefixStack = new Stack();

  // Define the default namespace (initially maps to "" uri)
  Stack stack;
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

  // 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

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

        Iterator idEntries = m_idAttributes.entrySet().iterator();
        if (!idEntries.hasNext()) {
            return null;
        }

        Hashtable idAttrsTable = new Hashtable();
       
        while (idEntries.hasNext()) {
            Map.Entry entry = (Map.Entry) idEntries.next();
            idAttrsTable.put(entry.getKey(), entry.getValue());
        }

        return idAttrsTable;
    }
View Full Code Here

            throw new IllegalArgumentException(err.toString());
        }
            
  if (_isIdentity) {
      if (_parameters == null) {
    _parameters = new Hashtable();
      }
      _parameters.put(name, value);
  }
  else {
      _translet.addParameter(name, value);
View Full Code Here

    handler.setIndent(
        value != null && value.toLowerCase().equals("yes"));
      }
      else if (name.equals(OutputKeys.CDATA_SECTION_ELEMENTS)) {
    if (value != null) {
        Hashtable table = new Hashtable();
        StringTokenizer e = new StringTokenizer(value);
        while (e.hasMoreTokens()) {
      final String token = e.nextToken();
      table.put(token, token);
        }
        handler.setCdataElements(table);
    }
      }
  }
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, false);
View Full Code Here

TOP

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

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.