Package org.apache.xmpbox.schema
Class PDFAIdentificationSchema
- java.lang.Object
-
- org.apache.xmpbox.type.AbstractField
-
- org.apache.xmpbox.type.AbstractComplexProperty
-
- org.apache.xmpbox.type.AbstractStructuredType
-
- org.apache.xmpbox.schema.XMPSchema
-
- org.apache.xmpbox.schema.PDFAIdentificationSchema
-
public class PDFAIdentificationSchema extends XMPSchema
Representation of PDF/A Identification Schema- Author:
- a183132
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAMDstatic java.lang.StringCONFORMANCEstatic java.lang.StringPARTstatic java.lang.StringREV-
Fields inherited from class org.apache.xmpbox.type.AbstractStructuredType
STRUCTURE_ARRAY_NAME
-
-
Constructor Summary
Constructors Constructor Description PDFAIdentificationSchema(XMPMetadata metadata)Constructor of a PDF/A Identification schemaPDFAIdentificationSchema(XMPMetadata metadata, java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAmd()Give the PDF/A Amendment Id (as an String)TextTypegetAmdProperty()Give the property corresponding to the PDF/A Amendment idjava.lang.StringgetAmendment()Give the PDFAAmendmentId (as an String)java.lang.StringgetConformance()Give the Conformance idTextTypegetConformanceProperty()Give the property corresponding to the PDF/A Conformance idjava.lang.IntegergetPart()Give the PDFAVersionId (as an integer)IntegerTypegetPartProperty()Give the property corresponding to the PDF/A Version idjava.lang.IntegergetRev()Give the PDF/A revision (as an integer)IntegerTypegetRevProperty()Give the property corresponding to the PDF/A revisionvoidsetAmd(java.lang.String value)Set the PDF/A amendment identifiervoidsetAmdProperty(TextType amd)Set the PDF/A amendment identifiervoidsetConformance(java.lang.String value)Set the PDF/A conformance levelvoidsetConformanceProperty(TextType conf)Set the PDF/A conformance levelvoidsetPart(java.lang.Integer value)Set the PDF/A Version identifier (with an int)voidsetPartProperty(IntegerType part)Set the PDF/A Version identifiervoidsetPartValueWithInt(int value)Set the PDF/A Version identifier (with an int)voidsetPartValueWithString(java.lang.String value)Set the PDF/A Version identifier (with string)voidsetRev(java.lang.Integer value)Set the PDF/A revision identifier (with an int)voidsetRevProperty(IntegerType rev)Set the PDF/A revision identifiervoidsetRevValueWithInt(int value)Set the PDF/A revision (with an int)voidsetRevValueWithString(java.lang.String value)Set the PDF/A revision (with string)-
Methods inherited from class org.apache.xmpbox.schema.XMPSchema
addBagValue, addBagValueAsSimple, addQualifiedBagValue, addSequenceDateValueAsSimple, addUnqualifiedSequenceDateValue, addUnqualifiedSequenceValue, addUnqualifiedSequenceValue, getAboutAttribute, getAboutValue, getAbstractProperty, getBooleanProperty, getBooleanPropertyValue, getBooleanPropertyValueAsSimple, getDateProperty, getDatePropertyValue, getDatePropertyValueAsSimple, getIntegerProperty, getIntegerPropertyValue, getIntegerPropertyValueAsSimple, getUnqualifiedArrayList, getUnqualifiedBagValueList, getUnqualifiedLanguagePropertyLanguagesValue, getUnqualifiedLanguagePropertyValue, getUnqualifiedSequenceDateValueList, getUnqualifiedSequenceValueList, getUnqualifiedTextProperty, getUnqualifiedTextPropertyValue, instanciateSimple, merge, removeUnqualifiedArrayValue, removeUnqualifiedBagValue, removeUnqualifiedSequenceDateValue, removeUnqualifiedSequenceValue, removeUnqualifiedSequenceValue, reorganizeAltOrder, setAbout, setAboutAsSimple, setBooleanProperty, setBooleanPropertyValue, setBooleanPropertyValueAsSimple, setDateProperty, setDatePropertyValue, setDatePropertyValueAsSimple, setIntegerProperty, setIntegerPropertyValue, setIntegerPropertyValueAsSimple, setTextProperty, setTextPropertyValue, setTextPropertyValueAsSimple, setUnqualifiedLanguagePropertyValue
-
Methods inherited from class org.apache.xmpbox.type.AbstractStructuredType
addSimpleProperty, createArrayProperty, createTextType, getDatePropertyAsCalendar, getNamespace, getPreferedPrefix, getPrefix, getPropertyValueAsString, setNamespace, setPrefix
-
Methods inherited from class org.apache.xmpbox.type.AbstractComplexProperty
addNamespace, addProperty, getAllNamespacesWithPrefix, getAllProperties, getArrayProperty, getContainer, getFirstEquivalentProperty, getNamespacePrefix, getProperty, removeProperty
-
Methods inherited from class org.apache.xmpbox.type.AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
-
-
-
Field Detail
-
PART
public static final java.lang.String PART
- See Also:
- Constant Field Values
-
AMD
public static final java.lang.String AMD
- See Also:
- Constant Field Values
-
CONFORMANCE
public static final java.lang.String CONFORMANCE
- See Also:
- Constant Field Values
-
REV
public static final java.lang.String REV
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PDFAIdentificationSchema
public PDFAIdentificationSchema(XMPMetadata metadata)
Constructor of a PDF/A Identification schema- Parameters:
metadata- The metadata to attach this schema
-
PDFAIdentificationSchema
public PDFAIdentificationSchema(XMPMetadata metadata, java.lang.String prefix)
-
-
Method Detail
-
setPartValueWithString
public void setPartValueWithString(java.lang.String value)
Set the PDF/A Version identifier (with string)- Parameters:
value- The version Id value to set
-
setPartValueWithInt
public void setPartValueWithInt(int value)
Set the PDF/A Version identifier (with an int)- Parameters:
value- The version Id value to set
-
setPart
public void setPart(java.lang.Integer value)
Set the PDF/A Version identifier (with an int)- Parameters:
value- The version Id property to set
-
setPartProperty
public void setPartProperty(IntegerType part)
Set the PDF/A Version identifier- Parameters:
part- set the PDF/A Version id property
-
setAmd
public void setAmd(java.lang.String value)
Set the PDF/A amendment identifier- Parameters:
value- The amendment identifier value to set
-
setAmdProperty
public void setAmdProperty(TextType amd)
Set the PDF/A amendment identifier- Parameters:
amd- The amendment identifier property to set
-
setConformance
public void setConformance(java.lang.String value) throws BadFieldValueExceptionSet the PDF/A conformance level- Parameters:
value- The conformance level value to set- Throws:
BadFieldValueException- If conformance value not 'A', 'B', 'U' (PDF/A-2 and PDF/A-3), 'e', 'f' (PDF/A-4)
-
setConformanceProperty
public void setConformanceProperty(TextType conf) throws BadFieldValueException
Set the PDF/A conformance level- Parameters:
conf- The conformance level property to set- Throws:
BadFieldValueException- If conformance value not 'A', 'B', 'U' (PDF/A-2 and PDF/A-3), 'e', 'f' (PDF/A-4)
-
getPart
public java.lang.Integer getPart()
Give the PDFAVersionId (as an integer)- Returns:
- Part value (Integer) or null if it is missing
-
getPartProperty
public IntegerType getPartProperty()
Give the property corresponding to the PDF/A Version id- Returns:
- Part property
-
getAmendment
public java.lang.String getAmendment()
Give the PDFAAmendmentId (as an String)- Returns:
- Amendment value
-
getAmdProperty
public TextType getAmdProperty()
Give the property corresponding to the PDF/A Amendment id- Returns:
- Amendment property
-
getAmd
public java.lang.String getAmd()
Give the PDF/A Amendment Id (as an String)- Returns:
- Amendment Value
-
getConformanceProperty
public TextType getConformanceProperty()
Give the property corresponding to the PDF/A Conformance id- Returns:
- conformance property
-
getConformance
public java.lang.String getConformance()
Give the Conformance id- Returns:
- conformance id value
-
setRevValueWithString
public void setRevValueWithString(java.lang.String value)
Set the PDF/A revision (with string)- Parameters:
value- The revision value to set
-
setRevValueWithInt
public void setRevValueWithInt(int value)
Set the PDF/A revision (with an int)- Parameters:
value- The revision value to set
-
setRev
public void setRev(java.lang.Integer value)
Set the PDF/A revision identifier (with an int)- Parameters:
value- The revision property to set
-
setRevProperty
public void setRevProperty(IntegerType rev)
Set the PDF/A revision identifier- Parameters:
rev- set the PDF/A revision id property
-
getRevProperty
public IntegerType getRevProperty()
Give the property corresponding to the PDF/A revision- Returns:
- revision property
-
getRev
public java.lang.Integer getRev()
Give the PDF/A revision (as an integer)- Returns:
- revision value (Integer) or null if it is missing
-
-