Package com.ngt.jopenmetaverse.shared.structureddata

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDMap.entrySet()


                throw new IllegalArgumentException("LLSD must be in the Map structure");

            OSDMap map = (OSDMap)osd;
            List<Primitive> prims = new ArrayList<Primitive>(map.count());

            for(Map.Entry<String, OSD> kvp : map.entrySet())
            {
                Primitive prim = Primitive.FromOSD(kvp.getValue());
                prim.LocalID = Long.parseLong(kvp.getKey());
                prims.add(prim);
            }
View Full Code Here


      Location = obj.get("location").asVector3d();
      GroupOwned = obj.get("is_group_owned").asBoolean();
      OwnerID = obj.get("owner_id").asUUID();
      OSDMap resources = (OSDMap)obj.get("resources");
      Resources = new HashMap<String, Integer>(resources.keys().size());
      for (Entry<String, OSD> kvp : resources.entrySet())
      {
        Resources.put(kvp.getKey(), kvp.getValue().asInteger());
      }
    }
View Full Code Here

//                      }
//                      writer.WriteEndElement();
                     
                      newChild = doc.createElement("map");
                     
                      for(Map.Entry<String, OSD> entry: map.entrySet())
                      {
                        Node keyNode = doc.createElement("key");
                        keyNode.appendChild(doc.createTextNode(entry.getKey()));
                        newChild.appendChild(keyNode);
                        SerializeLLSDXmlElement(doc, newChild, entry.getValue());
View Full Code Here

      break;
    case Map:
      OSDMap map = (OSDMap)data;

      doc.beginObject();
      for(Map.Entry<String, OSD> entry: map.entrySet())
      {
        JsonWriter tempWriter = doc.name(entry.getKey());
       
        SerializeLLSDJsonElement(tempWriter, entry.getValue());       
      }     
View Full Code Here

      OSDMap agent_updates = (OSDMap)map.get("agent_updates");
      SessionID = map.get("session_id").asUUID();

      List<AgentUpdatesBlock> updatesList = new ArrayList<AgentUpdatesBlock>();

      for(Entry<String, OSD> kvp :agent_updates.entrySet())
      {

        if (kvp.getKey().equals("updates"))
        {
          // This appears to be redundant and duplicated by the info block, more dumps will confirm this
View Full Code Here

    {
        if (osd.getType().equals(OSDType.Map))
        {
            OSDMap map = (OSDMap)osd;
            Map<String, String> dict = new HashMap<String, String>(map.count());
            for(Entry<String, OSD> entry : map.entrySet())
                dict.put(entry.getKey(), entry.getValue().asString());
            return dict;
        }

        return new HashMap<String, String>(0);
View Full Code Here

    {
        if (osd.getType().equals(OSDType.Map))
        {
            OSDMap map = (OSDMap)osd;
            Map<URI, URI> dict = new HashMap<URI, URI>(map.count());
            for(Entry<String, OSD> entry : map.entrySet())
                dict.put(new URI(entry.getKey()), entry.getValue().asUri());
            return dict;
        }

        return new HashMap<URI, URI>(0);
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.