Example #1
0
  public ArrayList getIdentificadoresAv() throws java.lang.Exception {
    ArrayList l = new ArrayList();

    try {
      Identifier[] ident = general.getGroupGeneralGeneral().getIdentifier();

      if (ident != null) {
        for (int i = 0; i < ident.length; i++) {

          Catalog catalog =
              general
                  .getGroupGeneralGeneral()
                  .getIdentifier(i)
                  .getGroupIdentifierIdentifier()
                  .getCatalog();
          Entry entry =
              general
                  .getGroupGeneralGeneral()
                  .getIdentifier(i)
                  .getGroupIdentifierIdentifier()
                  .getEntry();
          String content = catalog.getGroupCatalogCatalog().getContent();
          String contEntry = entry.getGroupEntryEntry().getContent();
          if ((content != null) && (content.length() > 0)) {
            IdentificadorAgrega identAgrega = new IdentificadorAgrega();
            identAgrega.setCatalogo(content);
            identAgrega.setEntrada(contEntry);
            l.add(identAgrega);
          }
        }
      }
    } catch (Exception e) {
      String mensaje = "Warning: No es posible recoger los idendtificadores";
      logger.warn(mensaje);

      l = new ArrayList();
      return l;
      // throw e;
    }
    return l;
  }