Examples of Kind


Examples of org.jboss.marshalling.util.Kind

                }
                final SerializableField[] fields = sc.getFields();
                writeShort(fields.length);
                // first write primitive fields, then object fields
                for (SerializableField field : fields) {
                    final Kind kind = field.getKind();
                    final String name = field.getName();
                    final Class<?> type;
                    try {
                        type = field.getType();
                    } catch (ClassNotFoundException e) {
                        // not possible
                        throw new InvalidClassException(forClass.getName(), "Field " + name + "'s class was not found");
                    }
                    if (kind != Kind.OBJECT) {
                        write(primitives.get(type, -1));
                        writeUTF(name);
                    }
                }
                for (SerializableField field : fields) {
                    final Kind kind = field.getKind();
                    final String name = field.getName();
                    final Class<?> type;
                    try {
                        type = field.getType();
                    } catch (ClassNotFoundException e) {
View Full Code Here

Examples of org.netbeans.gradle.project.ProjectInfo.Kind

                for (ProjectInfo.Kind kind: ProjectInfo.Kind.values()) {
                    infoMap.put(kind, new LinkedList<String>());
                }

                Kind mostImportantKind = Kind.INFO;
                for (ProjectInfo info: infos) {
                    for (ProjectInfo.Entry entry: info.getEntries()) {
                        Kind kind = entry.getKind();
                        if (mostImportantKind.getImportance() < kind.getImportance()) {
                            mostImportantKind = kind;
                        }
                        infoMap.get(kind).add(entry.getInfo());
                    }
                }
View Full Code Here

Examples of org.sbml.jsbml.Unit.Kind

    } else if (id.equals(LENGTH)) {
      u.setKind(Kind.METRE);
    } else if (id.equals(TIME)) {
      u.setKind(Kind.SECOND);
    } else {
      Kind kind = null;
      try {
        kind = Kind.valueOf(id.toUpperCase());
      } catch (IllegalArgumentException exc) {
        logger.warn(MessageFormat.format(
          "No such unit kind ''{0}'' in SBML Level {1,number,integer} Version {2,number,integer}",
View Full Code Here

Examples of org.sbml.jsbml.Unit.Kind

  private void checkForDimensionlessOrInvalidUnits(UnitDefinition units) {
    units.simplify();
    String illegal = null;

    if (units.getUnitCount() == 1) {
      Kind kind = units.getUnit(0).getKind();

      if ((kind != Kind.DIMENSIONLESS) && (kind != Kind.ITEM)
          && (kind != Kind.RADIAN) && (kind != Kind.STERADIAN)
          && (kind != Kind.INVALID)) {
        illegal = kind.toString();
      }
    } else {
      illegal = units.toString();
    }
    if (illegal != null) {
View Full Code Here

Examples of org.yaac.shared.stat.models.Kind

    {
      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

Examples of org.yaac.shared.stat.models.Kind

   
    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);
View Full Code Here

Examples of wyautl_old.util.Generator.Kind

        } else if(args[index].equals("-m") || args[index].equals("-model")) {
          config.RECURSIVE = false;
          maxSize++;
          kindUpdate(Type.K_UNION,null);
          kindUpdate(Type.K_NEGATION,null);
          kindUpdate(Type.K_SET,new Kind(true,0,2,null));
          kindUpdate(Type.K_LIST,new Kind(true,0,2,null));
          // could do more
        }
        index++;
      }
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.