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
Representation of PDF/A Identification Schema
- Author:
- a183132
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractStructuredType
STRUCTURE_ARRAY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPDFAIdentificationSchema(XMPMetadata metadata) Constructor of a PDF/A Identification schemaPDFAIdentificationSchema(XMPMetadata metadata, String prefix) -
Method Summary
Modifier and TypeMethodDescriptiongetAmd()Give the PDF/A Amendment Id (as an String)Give the property corresponding to the PDF/A Amendment idGive the PDFAAmendmentId (as an String)Give the Conformance idGive the property corresponding to the PDF/A Conformance idgetPart()Give the PDFAVersionId (as an integer)Give the property corresponding to the PDF/A Version idgetRev()Give the PDF/A revision (as an integer)Give the property corresponding to the PDF/A revisionvoidSet the PDF/A amendment identifiervoidsetAmdProperty(TextType amd) Set the PDF/A amendment identifiervoidsetConformance(String value) Set the PDF/A conformance levelvoidSet the PDF/A conformance levelvoidSet 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(String value) Set the PDF/A Version identifier (with string)voidSet the PDF/A revision identifier (with an int)voidSet the PDF/A revision identifiervoidsetRevValueWithInt(int value) Set the PDF/A revision (with an int)voidsetRevValueWithString(String value) Set the PDF/A revision (with string)Methods inherited from class 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, setUnqualifiedLanguagePropertyValueMethods inherited from class AbstractStructuredType
addSimpleProperty, createArrayProperty, createTextType, getDatePropertyAsCalendar, getNamespace, getPreferedPrefix, getPrefix, getPropertyValueAsString, setNamespace, setPrefixMethods inherited from class AbstractComplexProperty
addNamespace, addProperty, getAllNamespacesWithPrefix, getAllProperties, getArrayProperty, getContainer, getFirstEquivalentProperty, getNamespacePrefix, getProperty, removePropertyMethods inherited from class AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
Field Details
-
PART
- See Also:
-
AMD
- See Also:
-
CONFORMANCE
- See Also:
-
REV
- See Also:
-
-
Constructor Details
-
PDFAIdentificationSchema
Constructor of a PDF/A Identification schema- Parameters:
metadata- The metadata to attach this schema
-
PDFAIdentificationSchema
-
-
Method Details
-
setPartValueWithString
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
Set the PDF/A Version identifier (with an int)- Parameters:
value- The version Id property to set
-
setPartProperty
Set the PDF/A Version identifier- Parameters:
part- set the PDF/A Version id property
-
setAmd
Set the PDF/A amendment identifier- Parameters:
value- The amendment identifier value to set
-
setAmdProperty
Set the PDF/A amendment identifier- Parameters:
amd- The amendment identifier property to set
-
setConformance
Set 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
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
Give the PDFAVersionId (as an integer)- Returns:
- Part value (Integer) or null if it is missing
-
getPartProperty
Give the property corresponding to the PDF/A Version id- Returns:
- Part property
-
getAmendment
-
getAmdProperty
Give the property corresponding to the PDF/A Amendment id- Returns:
- Amendment property
-
getAmd
-
getConformanceProperty
Give the property corresponding to the PDF/A Conformance id- Returns:
- conformance property
-
getConformance
-
setRevValueWithString
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
Set the PDF/A revision identifier (with an int)- Parameters:
value- The revision property to set
-
setRevProperty
Set the PDF/A revision identifier- Parameters:
rev- set the PDF/A revision id property
-
getRevProperty
Give the property corresponding to the PDF/A revision- Returns:
- revision property
-
getRev
Give the PDF/A revision (as an integer)- Returns:
- revision value (Integer) or null if it is missing
-