Home » pdfbox-1.1.0-src » org.apache.jempbox.xmp.pdfa » [javadoc | source]

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   package org.apache.jempbox.xmp.pdfa;
   18   
   19   import org.apache.jempbox.xmp.XMPMetadata;
   20   import org.apache.jempbox.xmp.XMPSchema;
   21   import org.w3c.dom.Element;
   22   
   23   /**
   24    * Define XMP properties used PDFA extension schema description schemas.
   25    * 
   26    * @author Karsten Krieg (kkrieg@intarsys.de)
   27    * @version $Revision: 1.1 $
   28    */
   29   public class XMPSchemaPDFASchema extends XMPSchema
   30   {
   31       /**
   32        * The namespace for this schema.
   33        */
   34       public static final String NAMESPACE = "http://www.aiim.org/pdfa/ns/schema";
   35       
   36       /**
   37        * Construct a new blank PDFA schema.
   38        *
   39        * @param parent The parent metadata schema that this will be part of.
   40        */
   41       public XMPSchemaPDFASchema( XMPMetadata parent )
   42       {
   43           super( parent, "pdfaSchema", NAMESPACE );
   44       }
   45       
   46       /**
   47        * Constructor from existing XML element.
   48        * 
   49        * @param element The existing element.
   50        * @param prefix The schema prefix.
   51        */
   52       public XMPSchemaPDFASchema( Element element, String prefix )
   53       {
   54           super( element , prefix);
   55       }
   56       
   57       /**
   58        * PDFA schema.
   59        *
   60        * @param schema The optional description of schema.
   61        */
   62       public void setSchema( String schema )
   63       {
   64           setTextProperty( "pdfaSchema:schema", schema);
   65       }
   66       
   67       /**
   68        * Get the PDFA schema.
   69        *
   70        * @return The optional description of schema.
   71        */
   72       public String getSchema()
   73       {
   74           return getTextProperty( "pdfaSchema:schema" );
   75       }
   76   
   77       /**
   78        * PDFA Schema prefix.
   79        *
   80        * @param prefix Preferred schema namespace prefix.
   81        */
   82       public void setPrefix( String prefix)
   83       {
   84           setTextProperty( "pdfaSchema:prefix", prefix);
   85       }
   86       
   87       /**
   88        * Get the PDFA Schema prefix.
   89        *
   90        * @return Preferred schema namespace prefix.
   91        */
   92       public String getPrefix()
   93       {
   94           return getTextProperty( "pdfaSchema:prefix" );
   95       }
   96   
   97   
   98   }

Home » pdfbox-1.1.0-src » org.apache.jempbox.xmp.pdfa » [javadoc | source]