Examples of MonadDate


Examples of net.sf.chellow.monad.types.MonadDate

      element.setAttribute("is-hh", isHh.toString());
    }
    if (tprCount != null) {
      element.setAttribute("tpr-count", String.valueOf(tprCount));
    }
    MonadDate fromDate = new MonadDate(validFrom);
    fromDate.setLabel("from");
    element.appendChild(fromDate.toXml(doc));
    if (validTo != null) {
      MonadDate toDate = new MonadDate(validTo);
      toDate.setLabel("to");
      element.appendChild(toDate.toXml(doc));
    }
    return element;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    source.appendChild(toXml(doc, new XmlTree("party")));
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    source.appendChild(new MonadDate().toXml(doc));
    return doc;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

      request_map.put(
          Thread.currentThread().getId(),
          inv.getRequest()
              .getRequestURL()
              .append('?' + inv.getRequest().getQueryString()
                  + ' ' + new MonadDate() + ' '
                  + inv.getRequest().getRemoteAddr())
              .toString());

      interp.exec(script);
    } catch (Throwable e) {
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

      return false;
    }
  }

  public Date getDate(String baseName) throws InternalException {
    MonadDate date = getMonadDate(baseName);
    if (date == null) {
      return null;
    } else {
      return date.getDate();
    }
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

    Integer day = getInteger(baseName + "-day");
    Integer hour = getInteger(baseName + "-hour");
    Integer minute = getInteger(baseName + "-minute");
    Date date = null;
    if (isValid()) {
      MonadDate mDate = new MonadDate(year, month, day, hour, minute);
      if (isValid()) {
        date = mDate.getDate();
      }
    }
    return date;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

  }

  public Element toXml(Document doc) throws HttpException {
    Element element = doc.createElement("raw-bill");
    element.setAttribute("reference", reference);
    element.appendChild(new MonadDate("issue", issueDate).toXml(doc));
    startDate.setLabel("start");
    element.appendChild(startDate.toXml(doc));
    finishDate.setLabel("finish");
    element.appendChild(finishDate.toXml(doc));
    element.setAttribute("kwh", kwh.toString());
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

        new XmlTree("contract", new XmlTree("party"))).put("supply")));
    for (ReadType type : (List<ReadType>) Hiber.session().createQuery(
        "from ReadType type order by type.code").list()) {
      source.appendChild(type.toXml(doc));
    }
    source.appendChild(new MonadDate().toXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    source.appendChild(MonadDate.getMonthsXml(doc));
    return doc;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

    Element element = super.toXml(doc, "ssc");

    element.setAttribute("code", toString());
    element.setAttribute("is-import", Boolean.toString(isImport));
    element.setAttribute("description", description);
    MonadDate fromDate = new MonadDate(validFrom);
    fromDate.setLabel("from");
    element.appendChild(fromDate.toXml(doc));
    if (validTo != null) {
      MonadDate toDate = new MonadDate(validTo);
      toDate.setLabel("to");
      element.appendChild(toDate.toXml(doc));
    }
    return element;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

        .list()) {
      docElem.appendChild(contract.toXml(doc));
    }
    docElem.appendChild(MonadDate.getMonthsXml(doc));
    docElem.appendChild(MonadDate.getDaysXml(doc));
    docElem.appendChild(new MonadDate().toXml(doc));
    return doc;
  }
View Full Code Here

Examples of net.sf.chellow.monad.types.MonadDate

        .setEntity("channel", channel).setMaxResults(PAGE_SIZE).list()) {
      snagsElement.appendChild(snag.toXml(doc));
    }
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    source.appendChild(new MonadDate().toXml(doc));
    inv.sendOk(doc);
  }
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.