Package buri.ddmsence.ddms.summary

Examples of buri.ddmsence.ddms.summary.RelatedResource$Builder


   * @param resource the top-level element
   */
  private void loadRelatedResource(Element resource) throws InvalidDDMSException {
    Elements children = resource.getChildElements(RelatedResource.OLD_INNER_NAME, getNamespace());
    if (children.size() <= 1) {
      _relatedResources.add(new RelatedResource(resource));
    }
    else {
      for (int i = 0; i < children.size(); i++) {
        Element copy = new Element(resource);
        copy.removeChildren();
        copy.appendChild(new Element(children.get(i)));
        _relatedResources.add(new RelatedResource(copy));
      }
    }
  }
View Full Code Here

TOP

Related Classes of buri.ddmsence.ddms.summary.RelatedResource$Builder

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.