Examples of LSFocStringMap


Examples of de.foconis.lsext.LSFocStringMap

    if (iProtLevel > 1)
      protocol("solve: mapStr='" + wrStr + "'\n\tcontextStr='" + contextStr + "'");
    if (iParser == null)
      return nothing();
    LSFocStringMap docMap = null;
    LSFocStringMap contextMap = null;
    try {
      LSExt2Java e2j = new LSExt2Java(wrStr);
      Object docObj = e2j.toJavaObj();
      if (iProtLevel > 2)
        protocol("DocObj:", e2j, docObj);
      e2j = new LSExt2Java(contextStr);
      Object contextObj = e2j.toJavaObj();
      if (iProtLevel > 2)
        protocol("ContextObj:", e2j, contextObj);
      if (docObj == null)
        docObj = new LSFocStringMap(true);
      else if (!(docObj instanceof LSFocStringMap))
        throw new IllegalArgumentException("Deserialized doc map of class " + docObj.getClass().getName());
      docMap = (LSFocStringMap) docObj;
      if (contextObj == null)
        contextObj = new LSFocStringMap();
      else if (!(contextObj instanceof LSFocStringMap))
        throw new IllegalArgumentException("Deserialized context map of class " + contextObj.getClass().getName());
      contextMap = (LSFocStringMap) contextObj;
    } catch (Exception e) {
      iLastException = e;
View Full Code Here

Examples of de.foconis.lsext.LSFocStringMap

    return nothing();
  }

  /*----------------------------------------------------------------------------*/
  private String getSolveRetStr(final List<?> res, final LSFocStringMap docMap) {
    LSFocStringMap retDocMap = new LSFocStringMap(true);
    Iterator<String> itr = docMap.getRemovedKeys().iterator();
    while (itr.hasNext()) {
      String key = itr.next();
      retDocMap.put(key, docMap.get(key));
    }
    itr = docMap.getWrittenKeys().iterator();
    while (itr.hasNext()) {
      String key = itr.next();
      retDocMap.put(key, docMap.get(key));
    }
    List<Object> ret = new ArrayList<Object>(2);
    ret.add(res);
    ret.add(retDocMap);
    if (iProtLevel > 1)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.