Package sunlabs.brazil.util

Examples of sunlabs.brazil.util.StringMap


    boolean sent;

    public boolean init(RewriteContext hr) {
  checkConnection = false;
        sent = true;
  headers = new StringMap();
  super.init(hr);
  mailHost=hr.request.props.getProperty(hr.prefix + "host", "localhost");
  me = hr.server.hostName;
  return true;
    }
View Full Code Here


  indent(sb, level);
  sb.append("<" + node.getTag());

  // do the attributes

  StringMap attrs = node.getAttributes();
  if (attrs != null) {
      for(int i = 0; i< attrs.size(); i++) {
          String key = attrs.getKey(i);
          String value = fix(attrs.get(i));
          sb.append(" ").append(key).append("=").append(value);
      }
  }
  if (node.isSingle()) {
      sb.append (" />");
View Full Code Here

  } else if (suffix.equals("tag")) {
      result =  node.getTag();
  } else if (suffix.equals("index")) {
      result =  "" + node.getIndex();
  } else if (suffix.equals("attributes")) { // attribute list
      StringMap attributes = node.getAttributes();
      StringBuffer sb = new StringBuffer();
      for (i = 0; i<attributes.size();i++) {
    sb.append(attributes.getKey(i)).append(" ");
      }
      result =  sb.toString();
  } else if (suffix.equals("children")) {  // child names
      int count = node.childCount();
      if (count == 0) {
View Full Code Here

TOP

Related Classes of sunlabs.brazil.util.StringMap

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.