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.Calendar; 019 020/** 021 * Utility for extracting information from files embedded in PDF file. 022 * 023 * @since 5.1 024 */ 025public class PdfAttachmentMetadata { 026 027 private Calendar creationDate; 028 private Calendar modificationDate; 029 private String subject; 030 private String name; 031 private String mimeType; 032 private byte[] data; 033 034 035 public Calendar getCreationDate() { 036 return creationDate; 037 } 038 039 public void setCreationDate( Calendar creationDate ) { 040 this.creationDate = creationDate; 041 } 042 043 public Calendar getModificationDate() { 044 return modificationDate; 045 } 046 047 public void setModificationDate( Calendar modificationDate ) { 048 this.modificationDate = modificationDate; 049 } 050 051 public String getSubject() { 052 return subject; 053 } 054 055 public void setSubject( String subject ) { 056 this.subject = subject; 057 } 058 059 public String getName() { 060 return name; 061 } 062 063 public void setName( String name ) { 064 this.name = name; 065 } 066 067 public String getMimeType() { 068 return mimeType; 069 } 070 071 public void setMimeType( String mimeType ) { 072 this.mimeType = mimeType; 073 } 074 075 public byte[] getData() { 076 return data; 077 } 078 079 public void setData( byte[] data ) { 080 this.data = data; 081 } 082 083 084}