Coverage Summary for Class: AreaXmlElementAccess (org.kitodo.dataformat.access)

Class Class, % Method, % Line, %
AreaXmlElementAccess 100% (1/1) 100% (3/3) 80% (4/5)


 /*
  * (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
  *
  * This file is part of the Kitodo project.
  *
  * It is licensed under GNU General Public License version 3 or later.
  *
  * For the full copyright and license information, please read the
  * GPL3-License.txt file that was distributed with this source code.
  */
 
 package org.kitodo.dataformat.access;
 
 import org.kitodo.api.dataformat.View;
 
 /**
  * A view on a physical division. The individual levels of the {@link DivXmlElementAccess} refer
  * to {@code View}s on {@link FileXmlElementAccess}s. At the moment, each {@code View}
  * refers to exactly one {@code PhysicalDivision} as a whole. This concept level has
  * been added here in order to be able to expand it in the future in order to be
  * able to refer to individual parts of a {@code PhysicalDivision}.
  */
 public class AreaXmlElementAccess {
 
     /**
      * The data object of this area XML element access.
      */
     private final View view = new View();
 
     /**
      * Creates a new view. This constructor can be called via the service loader
      * to create a new view.
      */
     public AreaXmlElementAccess() {
     }
 
     /**
      * Creates a new view that points to a media device. This constructor is
      * called module-internally when loading a METS file.
      * 
      * @param fileXmlElementAccess
      *            physical division in view
      */
     AreaXmlElementAccess(FileXmlElementAccess fileXmlElementAccess) {
         view.setPhysicalDivision(fileXmlElementAccess.getPhysicalDivision());
     }
 
     View getView() {
         return view;
     }
 }