001/* 002 * ModeShape (http://www.modeshape.org) 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.modeshape.sequencer.pdf; 017 018import java.util.ArrayList; 019import java.util.List; 020 021/** 022 * Utility for extracting metadata from PDF files' pages. 023 * 024 * @since 5.1 025 */ 026public class PdfPageMetadata { 027 028 private Integer pageNumber; 029 private List<PdfAttachmentMetadata> attachments = new ArrayList<PdfAttachmentMetadata>(); 030 031 032 public Integer getPageNumber() { 033 return pageNumber; 034 } 035 036 public void setPageNumber( Integer pageNumber ) { 037 this.pageNumber = pageNumber; 038 } 039 040 public List<PdfAttachmentMetadata> getAttachments() { 041 return attachments; 042 } 043 044 public void setAttachments( List<PdfAttachmentMetadata> attachments ) { 045 this.attachments = attachments; 046 } 047 048 public void addAttachment( PdfAttachmentMetadata attachment ) { 049 this.attachments.add(attachment); 050 } 051 052}