Package com.cardence.lawshelf.cfr

Examples of com.cardence.lawshelf.cfr.CfrContentContainer.addContent()


    for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
      if (obj instanceof JAXBElement) {
        final JAXBElement jaxb = (JAXBElement) obj;
        if (StringUtils.equals("RESERVED", jaxb.getName().getLocalPart())) {
          CfrContentContainer content = new CfrContentContainer();
          content.addContent(jaxb.getValue().toString());
          return content.getContentText();
        }
      }
    }
    for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
View Full Code Here


      }
    }
    for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
      if (obj instanceof String) {
        CfrContentContainer content = new CfrContentContainer();
        content.addContent((String) obj);
        return content.getContentText();
      }
    }
    return null;
  }
View Full Code Here

    if (hd == null) {
      final String alternativeText = subTitle.getRESERVED();
      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for subtitle");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
View Full Code Here

      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for subtitle");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
  }
View Full Code Here

    if (hd == null) {
      final String alternativeText = findAlternativeToHD(unknownObjects);
      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for chapter");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
View Full Code Here

      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for chapter");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
  }
View Full Code Here

  }

  private static HD determineBestCanddiateHD(List<HD> candidates) {
    for (HD hd : candidates) {
      final CfrContentContainer content = new CfrContentContainer();
      content.addContent(hd);
      if (StringUtils.isNotBlank(content.getContentText())) {
        return hd;
      }
    }
    return null;
View Full Code Here

    if (hd == null) {
      final String alternativeText = findAlternativeToHD(unknownObjects);
      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for subpart");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
View Full Code Here

      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for subpart");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
  }
View Full Code Here

    if (hd == null) {
      final String alternativeText = findAlternativeToHD(unknownObjects);
      if (alternativeText == null) {
        throw new RuntimeException("Could not find a header text for part");
      }
      content.addContent(alternativeText);
    } else {
      content.addContent(hd);
    }

    return content.getContentText();
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.