Package dnb.data

Examples of dnb.data.NfoDate


  private static void storeDates(ReleaseData target, Map<NfoField, MatchResult> matchSource,
      int dayGroupIndex, int monthGroupIndex, int yearGroupIndex) {
    if (matchSource.containsKey(NfoField.RELEASE_DATE)) {
      Matcher mt = DATE.matcher(matchSource.get(NfoField.RELEASE_DATE).getMatch());
      if (mt.matches()) {
        target.setReleaseDate(new NfoDate(mt.group(dayGroupIndex),
            mt.group(monthGroupIndex), mt.group(yearGroupIndex)));
      }             
    }
   
    if (matchSource.containsKey(NfoField.STREET_DATE)) {
      Matcher mt = DATE.matcher(matchSource.get(NfoField.STREET_DATE).getMatch());
      if (mt.matches()) {
        target.setStreetDate(new NfoDate(mt.group(3), mt.group(2), mt.group(1)));
      }     
    }
  }
View Full Code Here

TOP

Related Classes of dnb.data.NfoDate

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.