Package dnb.data.impl

Examples of dnb.data.impl.CatalogNumberHibernateImpl


 
  public static void assignLabelcodes(LabelcodeConfirmInteraction interaction, List<Folder> list, Set<String> labelCodes,
      Set<String> ignored, boolean folderNameIsLabelcode, boolean lookupLabelcodeInNfo) {
    for (Folder f : list) {
      if (f.findLabelcode() == null) { // no label code for this folder yet => assign
        CatalogNumberHibernateImpl lc = null;
        // walk bottom up and try to find label code
        Folder cur = f;
        if (folderNameIsLabelcode) {
          while(cur.getParent().getName() != null) { // walk until root
            lc = LabelcodeMatcher.findLabelcode(cur.getName());
View Full Code Here


 
  private static CatalogNumberHibernateImpl fromNfo(Folder f) {
   
    final int s = f.size();
    Component c;
    CatalogNumberHibernateImpl lc = null;
    String lm = null;
    for (int i = 0; i < s; i++) {
      c = f.get(i);
      if (c instanceof NfoFile) {
        String pth = c.pathString();
View Full Code Here

  private static final Pattern LBLCODE3 = Pattern.compile("(\\p{Alnum}+\\p{Alpha}+)\\s*(\\d{1,})(\\p{Alpha}*\\d*)");
 
  static CatalogNumberHibernateImpl findLabelcode2(String n) {
    Matcher m = LBLCODE2.matcher(n);
    if (m.find()) {
      return new CatalogNumberHibernateImpl(m.group(1), Integer.parseInt(m.group(2)), m.group(3));
    }
    return null;
  }
View Full Code Here

  }

  static CatalogNumber findLabelcode3(String n) {
    Matcher m = LBLCODE3.matcher(n);
    if (m.find()) {
      return new CatalogNumberHibernateImpl(m.group(1), Integer.parseInt(m.group(2)), m.group(3));
    }
    return null;
  }
View Full Code Here

    if (ret == null) {
      return null;
    }   
    m = LBLCODE1.matcher(ret);
    m.find();
    return new CatalogNumberHibernateImpl(m.group(1), Integer.parseInt(m.group(2)), m.group(3));
  }
View Full Code Here

    }
    if(matchSource.containsKey(NfoField.LABEL_CODE)
        && matchSource.containsKey(NfoField.LABEL_CODE_NO)
        && matchSource.containsKey(NfoField.LABEL_CODE_SUFFIX)) {
       
      target.setLabelCode(new CatalogNumberHibernateImpl(matchSource.get(NfoField.LABEL_CODE).getMatch(),
          Integer.parseInt(matchSource.get(NfoField.LABEL_CODE_NO).getMatch()),
          matchSource.get(NfoField.LABEL_CODE_SUFFIX).getMatch()));
      if (l != null) {
        l.addCode(matchSource.get(NfoField.LABEL_CODE).getMatch());
      }
View Full Code Here

TOP

Related Classes of dnb.data.impl.CatalogNumberHibernateImpl

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.