Examples of DateData


Examples of pspdash.data.DateData

            return maxDateOf(arguments, context);
    }

    private Object maxDateFor(List arguments, ExpressionContext context)
    {
        DateData result = null;
        Object val;

        String name = asString(getArg(arguments, 0));
        if (name == null) return null;

        Iterator i = collapseLists(arguments, 1).iterator();
        String path, dataName;
        while (i.hasNext()) {
            path = asStringVal(i.next());
            if (path == null) continue;

            dataName = DataRepository.createDataName(path, name);
            val = context.get(dataName);
            if (val == null)
                return null;
            if (val instanceof DateData &&
                (result == null || result.lessThan((DateData) val)))
                result = (DateData) val;
        }
        return result;
    }
View Full Code Here

Examples of pspdash.data.DateData

        return result;
    }

    private Object maxDateOf(List arguments, ExpressionContext context)
    {
        DateData result = null;
        Object val;

        Iterator i = collapseLists(arguments, 0).iterator();
        while (i.hasNext()) {
            val = i.next();
            if (val == null)
                return null;
            if (val instanceof DateData &&
                (result == null || result.lessThan((DateData) val)))
                result = (DateData) val;
        }
        return result;
    }
View Full Code Here

Examples of pspdash.data.DateData

    super(r, name, readOnly);
  }


  public void setBoolean(Boolean b) {
    value = (b.booleanValue() ? new DateData() : null);
  }
View Full Code Here

Examples of pspdash.data.DateData


    private void markCompleted() {
          // mark this phase as completed in the data repository.
      String dataName = getCompletedDataname(self);
      parent.data.userPutValue(dataName, new DateData());
    }
View Full Code Here

Examples of pspdash.data.DateData

                             new DoubleData(currentMinutes, false));
        //System.out.println("updating time to " + currentMinutes);

        if (stopwatch != null)
            parent.hierarchy.workPerformed
                (new DateData(stopwatch.createTime, true));
    }
View Full Code Here

Examples of uk.org.ogsadai.data.DateData

        {
            return new DataValue[] {new BooleanData((Boolean)object)};
        }
        else if (object instanceof Date)
        {
            return new DataValue[] {new DateData((Date) object)};
        }
        else if (object instanceof Calendar)
        {
            return new DataValue[] {new DateData(((Calendar) object).getTime())};
        }
        else if (object == ListMarker.BEGIN)
        {
            return new DataValue[] {ListBegin.VALUE};
        }
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.