Package com.esri.gpt.framework.isodate

Examples of com.esri.gpt.framework.isodate.IsoDateFormat


    @Override
    public Date getModifiedDate() {
      String modifedDateAsString = record.getModifiedDate();
      try {
        return new IsoDateFormat().parseObject(modifedDateAsString);
      } catch (ParseException ex) {
        return null;
      }
    }
  };
View Full Code Here


        value = parseDateTime(value);
        if(dateFormat.length() > 0){
          SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
          Date dt = null;
        try {
                    dt = new IsoDateFormat().parseObject(value);
                    if (dt!=null) {
                      value = sdf.format(dt);
                    } else {
                      value = "";
                    }
View Full Code Here

  LOGGER.finer("Advancing to the next group of records.");
  try {
    nextCswrecords = null;

    // submit CSW request
    IsoDateFormat IDF = new IsoDateFormat();
    CswSearchCriteria cswCriteria = new CswSearchCriteria();
    cswCriteria.setMaxRecords(criteria!=null && criteria.getMaxRecords()!=null? criteria.getMaxRecords(): 20);
    cswCriteria.setStartPosition(nextStartRecord);
    cswCriteria.setSearchText(criteria!=null && criteria.getSearchText()!=null? criteria.getSearchText(): "");
    cswCriteria.setEnvelope(getEnvelope());
View Full Code Here

               
                if (!app.append("dc:title", ii.getTitle())) {
                  app.append("dc:title", ii.getName());
                }
                if (ii.getModifiedDate()!=null) {
                  app.append("dc:date", new IsoDateFormat().format(ii.getModifiedDate()));
                }
                app.append("dc:identifier", ii.getId());
                if (!app.append("dc:description", ii.getDescription())) {
                  app.append("dc:description", ii.getSnippet());
                }
View Full Code Here

    public Date getModifiedDate() {
      String modifedDateAsString = record.getModifiedDate();
      try {
        return new IsoDateFormat().parseObject(modifedDateAsString);
      } catch (ParseException ex) {
        return null;
      }
    }
  };
View Full Code Here

  String beginPosition = sosContext.getBeginPosition();
  String endPosition = sosContext.getEndPosition();
  if (beginPosition.length() > 0) {
    if (endPosition.length() == 0) {
      Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
      endPosition = (new IsoDateFormat()).format(cal.getTime());
    }
    postData.append("<sos:eventTime>");
    postData.append("<ogc:TM_During>");
    postData.append("<ogc:PropertyName>om:samplingTime</ogc:PropertyName>");
    postData.append("<gml:TimePeriod>");
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.isodate.IsoDateFormat

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.