Package nl.siegmann.epublib.domain

Examples of nl.siegmann.epublib.domain.SpineReference


      if(resource == null) {
        log.error("resource with id \'" + id + "\' not found");
        continue;
      }
     
      SpineReference spineReference = new SpineReference(resource);
      if (OPFValues.no.equalsIgnoreCase(DOMUtil.getAttribute(spineItem, NAMESPACE_OPF, OPFAttributes.linear))) {
        spineReference.setLinear(false);
      }
      spineReferences.add(spineReference);
    }
    result.setSpineReferences(spineReferences);
    return result;
View Full Code Here


    for (String resourceHref: resourceHrefs) {
      Resource resource = resources.getByHref(resourceHref);
      if (resource.getMediaType() == MediatypeService.NCX) {
        result.setTocResource(resource);
      } else if (resource.getMediaType() == MediatypeService.XHTML) {
        result.addSpineReference(new SpineReference(resource));
      }
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of nl.siegmann.epublib.domain.SpineReference

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.