Examples of ValueObject


Examples of com.addthis.bundle.value.ValueObject

            while (true) {
                typever = in.read();
                switch (type = typeMap.get(typever)) {
                    case BUNDLE_FIELD_INDEX:
                        int fi = 0;
                        ValueObject vo = null;
                        BundleField field;
                        try {
                            fi = in.read();
                            vo = decodeValue(in, classMap);
                            field = fieldMap.getObject(fi);
View Full Code Here

Examples of com.addthis.bundle.value.ValueObject

                return arr;
            case MAP:
                ValueMap map = ValueFactory.createMap();
                long count = Bytes.readLength(in);
                while (count-- > 0) {
                    ValueObject key = decodeValue(in, classMap);
                    ValueObject val = decodeValue(in, classMap);
                    map.put(key.toString(), val);
                }
                return map;
            case CUSTOM_INDEX:
                Class<? extends ValueObject> ci = classMap.getObject((int) Bytes.readLength(in));
View Full Code Here

Examples of com.addthis.bundle.value.ValueObject

            private BundleField peek = null;

            @Override
            public boolean hasNext() {
                while ((peek == null) && (index < bundle.length)) {
                    ValueObject value = bundle[index];
                    index += 1;
                    if (value == null) { // unset field, user nulls are NULL and those are returned
                        continue;
                    }
                    peek = new IndexBundleField(index);
View Full Code Here

Examples of com.addthis.bundle.value.ValueObject

        };
    }

    @Override
    public ValueObject getValue(BundleField field) throws BundleException {
        ValueObject value = bundle[field.getIndex()];
        if (value == NULL) {
            return null;
        }
        return value;
    }
View Full Code Here

Examples of com.addthis.bundle.value.ValueObject

            rawSet(index, ValueFactory.create(value));
        }
    }

    private void rawSet(int index, ValueObject value) throws BundleException {
        ValueObject prev = bundle[index];
        bundle[index] = value;
        if (prev == null) {
            count++;
        }
    }
View Full Code Here

Examples of com.franz.agbase.ValueObject

      log.debug("Number of solutions: " + it.getCount());
      for (int i=0; it.hasNext(); i++) {
      ValueObject[] objects = it.next();
      log.info("Solution " + (i+1) + ":");
      for (int j = 0; j < objects.length; j++) {
        ValueObject term = objects[j];
        log.info("  " + var[j] + " = " + printValueObject(term));
      }
    }
  }
View Full Code Here

Examples of com.franz.agbase.ValueObject

      for (int i=0; it.hasNext(); i++) {
        ValueObject[] objects = it.next();
//        log.info("Solution " + (i+1) + ":");
      comma = "";
        for (int j = 0; j < objects.length; j++) {
          ValueObject term = objects[j];
          String value = printValueObject(term);
        if ( value.indexOf(',') >= 0 ) {
          value = "\"" +value+ "\"";
        }
        out.printf("%s%s", comma, value);
View Full Code Here

Examples of com.franz.agbase.ValueObject

      for (int i=0; it.hasNext(); i++) {
        ValueObject[] objects = it.next();
//        log.info("Solution " + (i+1) + ":");
      comma = "";
        for (int j = 0; j < objects.length; j++) {
          ValueObject term = objects[j];
          String value = printValueObject(term);
        if ( value.indexOf(',') >= 0 ) {
          value = "\"" +value+ "\"";
        }
        out.printf("%s%s", comma, value);
View Full Code Here

Examples of com.franz.agbase.ValueObject

      for (int i=0; it.hasNext(); i++) {
        out.printf("<tr>%n");
        ValueObject[] objects = it.next();
//        log.info("Solution " + (i+1) + ":");
        for (int j = 0; j < objects.length; j++) {
          ValueObject term = objects[j];
          String value = printValueObject(term);
         
        String link = Util.getLink(value);
        if ( link != null ) {
          out.printf("\t<td><a href=\"%s\">%s</a></td>%n", link, Util.toHtml(value));
View Full Code Here

Examples of net.sf.gwtseam.model.ValueObject

  {
    public void execute()
    {
      currentObject = CurrentObject.VALUE_OBJECT;
     
      currentValueObject = new ValueObject ();
      currentValueObject.setClazz(getAttributes().getValue("class"));
      currentValueObject.setPackage(getAttributes().getValue("package"));
    }
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.