Package org.yaac.shared.stat.StatDTO

Examples of org.yaac.shared.stat.StatDTO.KindWrapper


   
    {
      List<KindWrapper> kinds = new LinkedList<KindWrapper>();
     
      {
        KindWrapper kind = new KindWrapper();
        kind.setKind(new Kind(500L, 5L, timestamp, "Kind_A"));
        kind.setNonRootKind(new KindNonRootEntity(400L, 3L, timestamp, "Kind_A"));
        kind.setRootKind(new KindIsRootEntity(100L, 2L, timestamp, "Kind_A"));
        kinds.add(kind);
      }
     
      {
        KindWrapper kind = new KindWrapper();
        kind.setKind(new Kind(400L, 3L, timestamp, "Kind_B"));
        kind.setNonRootKind(new KindNonRootEntity(400L, 3L, timestamp, "Kind_B"));
        kinds.add(kind);
      }
     
      {
        KindWrapper kind = new KindWrapper();
        kind.setKind(new Kind(100L, 2L, timestamp, "Kind_C"));
        kind.setRootKind(new KindIsRootEntity(100L, 2L, timestamp, "Kind_C"));
        kinds.add(kind);
      }
     
      kindsMap.put("", kinds);
    }
   
    {
      List<KindWrapper> kinds = new LinkedList<KindWrapper>();
     
      {
        KindWrapper kind = new KindWrapper();
        kind.setKind(new Kind(5000L, 42L, timestamp, "Kind_A"));
        kind.setNonRootKind(new KindNonRootEntity(4000L, 30L, timestamp, "Kind_A"));
        kind.setRootKind(new KindIsRootEntity(1000L, 12L, timestamp, "Kind_A"));
        kinds.add(kind);
      }
     
      {
        KindWrapper kind = new KindWrapper();
        kind.setKind(new Kind(50000L, 300L, timestamp, "Kind_B"));
        kind.setNonRootKind(new KindNonRootEntity(50000L, 300L, timestamp, "Kind_B"));
        kinds.add(kind);
      }
     
      kindsMap.put("namespace_A", kinds);
    }
View Full Code Here


    propertyTypes.add(new PropertyType(200L, 10L, timestamp, "Category"));
   
    List<KindWrapper> kinds = new LinkedList<KindWrapper>();
   
    {
      KindWrapper kind = new KindWrapper();
      kind.setKind(new Kind(500L, 5L, timestamp, "Kind_A"));
      kind.setNonRootKind(new KindNonRootEntity(400L, 3L, timestamp, "Kind_A"));
      kind.setRootKind(new KindIsRootEntity(100L, 2L, timestamp, "Kind_A"));
      kinds.add(kind);
    }
   
    {
      KindWrapper kind = new KindWrapper();
      kind.setKind(new Kind(400L, 3L, timestamp, "Kind_B"));
      kind.setNonRootKind(new KindNonRootEntity(400L, 3L, timestamp, "Kind_B"));
      kinds.add(kind);
    }
   
    {
      KindWrapper kind = new KindWrapper();
      kind.setKind(new Kind(100L, 2L, timestamp, "Kind_C"));
      kind.setRootKind(new KindIsRootEntity(100L, 2L, timestamp, "Kind_C"));
      kinds.add(kind);
    }
   
//    return new StatDTO(total, nsTotalsMap, propertyTypes, kinds);
    return null;
View Full Code Here

     
      for (String namespace : nsKindsMap.keySet()) {
        // kinds
        Map<String, KindWrapper> kindWrapperMap = new HashMap<String, KindWrapper>();
        for (Kind kind : nsKindsMap.get(namespace)) {
          KindWrapper kindWrapper = new KindWrapper();
          kindWrapper.setKind(kind);
          kindWrapperMap.put(kind.getKind_name(), kindWrapper);
        }
       
        for (KindIsRootEntity kindRoot : nsRootKindsMap.get(namespace)) {
          kindWrapperMap.get(kindRoot.getKind_name()).setRootKind(kindRoot);
View Full Code Here

TOP

Related Classes of org.yaac.shared.stat.StatDTO.KindWrapper

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.