Package com.dubture.getcomposer.core.objects

Examples of com.dubture.getcomposer.core.objects.Namespace


    clear();
    if (obj instanceof LinkedHashMap) {
      LinkedHashMap json = (LinkedHashMap) obj;
     
      for (Entry<String, Object> entry : ((Map<String, Object>)json).entrySet()) {
        Namespace nmspc = new Namespace();
        nmspc.setNamespace(entry.getKey());
       
        if (entry.getValue() instanceof LinkedList) {
          for (Object path : (LinkedList)entry.getValue()) {
            nmspc.add((String)path);
          }
        } else {
          nmspc.add((String)entry.getValue());
        }
        add(nmspc);
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.dubture.getcomposer.core.objects.Namespace

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.