Uses of Class
com.itextpdf.xmp.XMPException
Packages that use XMPException
Package
Description
Package containing the xmpcore interface.
Package containing the xmpcore implementation.
Package containing the XMPPath handling.
Package containing the option classes.
-
Uses of XMPException in com.itextpdf.text.xml.xmp
Methods in com.itextpdf.text.xml.xmp that throw XMPExceptionModifier and TypeMethodDescriptionstatic void
Adds a single author.static void
DublinCoreProperties.addDescription
(XMPMeta xmpMeta, String desc) Adds a description.void
XmpWriter.addDocInfoProperty
(Object key, String value) static void
DublinCoreProperties.addPublisher
(XMPMeta xmpMeta, String publisher) Adds a single publisher.private void
PdfAXmpWriter.addRdfDescription
(PdfAConformanceLevel conformanceLevel) Adds information about the PDF/A conformance level to the XMP metadata.static void
DublinCoreProperties.addSubject
(XMPMeta xmpMeta, String subject) Adds a subject.static void
Adds a title.void
XmpWriter.appendAlternateArrayItem
(String schemaNS, String arrayName, String value) Simplifies the construction of an alternate array by not requiring that you pre-create an empty array.void
XmpWriter.appendArrayItem
(String schemaNS, String arrayName, String value) Simplifies the construction of an array by not requiring that you pre-create an empty array.void
XmpWriter.appendOrderedArrayItem
(String schemaNS, String arrayName, String value) Simplifies the construction of an ordered array by not requiring that you pre-create an empty array.void
XmpWriter.serialize
(OutputStream externalOutputStream) Flushes and closes the XmpWriter.static void
Sets an array of authors.static void
PdfAProperties.setConformance
(XMPMeta xmpMeta, String conformance) Adds the conformance.static void
XmpBasicProperties.setCreateDate
(XMPMeta xmpMeta, String date) Adds the creation date.static void
XmpBasicProperties.setCreatorTool
(XMPMeta xmpMeta, String creator) Adds the creatortool.static void
DublinCoreProperties.setDescription
(XMPMeta xmpMeta, String desc, String genericLang, String specificLang) Sets a description.static void
XmpBasicProperties.setIdentifiers
(XMPMeta xmpMeta, String[] id) Sets the identifier.static void
PdfProperties.setKeywords
(XMPMeta xmpMeta, String keywords) Adds keywords.static void
XmpBasicProperties.setMetaDataDate
(XMPMeta xmpMeta, String date) Adds the meta data date.static void
XmpBasicProperties.setModDate
(XMPMeta xmpMeta, String date) Adds the modification date.static void
XmpBasicProperties.setNickname
(XMPMeta xmpMeta, String name) Adds the nickname.static void
Adds part.static void
PdfProperties.setProducer
(XMPMeta xmpMeta, String producer) Adds the producer.void
XmpWriter.setProperty
(String schemaNS, String propName, Object value) static void
DublinCoreProperties.setPublisher
(XMPMeta xmpMeta, String[] publisher) Sets an array of publishers.static void
DublinCoreProperties.setSubject
(XMPMeta xmpMeta, String[] subject) Sets a subject.static void
DublinCoreProperties.setTitle
(XMPMeta xmpMeta, String title, String genericLang, String specificLang) Sets a title.static void
PdfProperties.setVersion
(XMPMeta xmpMeta, String version) Adds the version. -
Uses of XMPException in com.itextpdf.xmp
Methods in com.itextpdf.xmp that throw XMPExceptionModifier and TypeMethodDescriptionvoid
XMPMeta.appendArrayItem
(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) Simplifies the construction of an array by not requiring that you pre-create an empty array.void
XMPMeta.appendArrayItem
(String schemaNS, String arrayName, String itemValue) static void
XMPUtils.appendProperties
(XMPMeta source, XMPMeta dest, boolean doAllProperties, boolean replaceOldValues) Alias without the new optiondeleteEmptyValues
.static void
XMPUtils.appendProperties
(XMPMeta source, XMPMeta dest, boolean doAllProperties, boolean replaceOldValues, boolean deleteEmptyValues) Append properties from one XMP object to another.private static void
XMPPathFactory.assertFieldName
(String fieldName) ParameterAsserts that a struct field name is set.private static void
XMPPathFactory.assertFieldNS
(String fieldNS) ParameterAsserts that a struct field namespace is set.private static void
XMPPathFactory.assertQualName
(String qualName) ParameterAsserts that a qualifier name is set.private static void
XMPPathFactory.assertQualNS
(String qualNS) ParameterAsserts that a qualifier namespace is set.static String
XMPUtils.catenateArrayItems
(XMPMeta xmp, String schemaNS, String arrayName, String separator, String quotes, boolean allowCommas) Create a single edit string from an array of strings.static String
XMPPathFactory.composeArrayItemPath
(String arrayName, int itemIndex) Compose the path expression for an item in an array.static String
XMPPathFactory.composeFieldSelector
(String arrayName, String fieldNS, String fieldName, String fieldValue) Compose the path expression to select an alternate item by a field's value.static String
XMPPathFactory.composeQualifierPath
(String qualNS, String qualName) Compose the path expression for a qualifier.static String
XMPPathFactory.composeStructFieldPath
(String fieldNS, String fieldName) Compose the path expression for a field in a struct.static boolean
XMPUtils.convertToBoolean
(String value) Convert from string to Boolean.static XMPDateTime
XMPUtils.convertToDate
(String rawValue) Converts a string value to anXMPDateTime
.static double
XMPUtils.convertToDouble
(String rawValue) Converts a string value to adouble
.static int
XMPUtils.convertToInteger
(String rawValue) Converts a string value to anint
.static long
XMPUtils.convertToLong
(String rawValue) Converts a string value to along
.int
XMPMeta.countArrayItems
(String schemaNS, String arrayName) Returns the number of items in the array.static XMPDateTime
XMPDateTimeFactory.createFromISO8601
(String strValue) Creates anXMPDateTime
from an ISO 8601 string.static byte[]
XMPUtils.decodeBase64
(String base64String) Decode from Base64 encoded string to raw data.XMPMeta.getArrayItem
(String schemaNS, String arrayName, int itemIndex) Provides access to items within an array.XMPMeta.getLocalizedText
(String schemaNS, String altTextName, String genericLang, String specificLang) These functions provide convenient support for localized text properties, including a number of special and obscure aspects.XMPMeta.getProperty
(String schemaNS, String propName) The property value getter-methods all take a property specification: the first two parameters are always the top level namespace URI (the "schema" namespace) and the basic name of the property being referenced.byte[]
XMPMeta.getPropertyBase64
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyBoolean
(String schemaNS, String propName) These are very similar togetProperty()
andSetProperty()
above, but the value is returned or provided in a literal form instead of as a UTF-8 string.XMPMeta.getPropertyCalendar
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyDate
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyDouble
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyInteger
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyLong
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getPropertyString
(String schemaNS, String propName) Convenience method to retrieve the literal value of a property.XMPMeta.getQualifier
(String schemaNS, String propName, String qualNS, String qualName) Provides access to a qualifier attached to a property.XMPMeta.getStructField
(String schemaNS, String structName, String fieldNS, String fieldName) Provides access to fields within a nested structure.void
XMPMeta.insertArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue) void
XMPMeta.insertArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Inserts an item into an array previous to the given index.XMPMeta.iterator()
Constructs an iterator for the properties within this XMP object.XMPMeta.iterator
(IteratorOptions options) Constructs an iterator for the properties within this XMP object using some options.XMPMeta.iterator
(String schemaNS, String propName, IteratorOptions options) Construct an iterator for the properties within an XMP object.void
XMPMeta.normalize
(ParseOptions options) Perform the normalization as a separate parsing step.static XMPMeta
XMPMetaFactory.parse
(InputStream in) Parsing with default options.static XMPMeta
XMPMetaFactory.parse
(InputStream in, ParseOptions options) These functions support parsing serialized RDF into an XMP object, and serailizing an XMP object into RDF.static XMPMeta
XMPMetaFactory.parseFromBuffer
(byte[] buffer) Parsing with default options.static XMPMeta
XMPMetaFactory.parseFromBuffer
(byte[] buffer, ParseOptions options) Creates anXMPMeta
-object from a byte-buffer.static XMPMeta
XMPMetaFactory.parseFromString
(String packet) Parsing with default options.static XMPMeta
XMPMetaFactory.parseFromString
(String packet, ParseOptions options) Creates anXMPMeta
-object from a string.XMPSchemaRegistry.registerNamespace
(String namespaceURI, String suggestedPrefix) Register a namespace URI with a suggested prefix.static void
XMPUtils.removeProperties
(XMPMeta xmp, String schemaNS, String propName, boolean doAllProperties, boolean includeAliases) Remove multiple properties from an XMP object.static void
XMPUtils.separateArrayItems
(XMPMeta xmp, String schemaNS, String arrayName, String catedStr, PropertyOptions arrayOptions, boolean preserveCommas) Separate a single edit string into an array of strings.static void
XMPMetaFactory.serialize
(XMPMeta xmp, OutputStream out) Serializes anXMPMeta
-object as RDF into anOutputStream
with default options.static void
XMPMetaFactory.serialize
(XMPMeta xmp, OutputStream out, SerializeOptions options) Serializes anXMPMeta
-object as RDF into anOutputStream
.static byte[]
XMPMetaFactory.serializeToBuffer
(XMPMeta xmp, SerializeOptions options) Serializes anXMPMeta
-object as RDF into a byte buffer.static String
XMPMetaFactory.serializeToString
(XMPMeta xmp, SerializeOptions options) Serializes anXMPMeta
-object as RDF into a string.void
XMPMeta.setArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue) void
XMPMeta.setArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Replaces an item within an array.void
XMPMeta.setLocalizedText
(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) void
XMPMeta.setLocalizedText
(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) Modifies the value of a selected item in an alt-text array.void
XMPMeta.setProperty
(String schemaNS, String propName, Object propValue) void
XMPMeta.setProperty
(String schemaNS, String propName, Object propValue, PropertyOptions options) The property valuesetters
all take a property specification, their differences are in the form of this.void
XMPMeta.setPropertyBase64
(String schemaNS, String propName, byte[] propValue) void
XMPMeta.setPropertyBase64
(String schemaNS, String propName, byte[] propValue, PropertyOptions options) Convenience method to set a property from a binarybyte[]
-array, which is serialized as base64-string.void
XMPMeta.setPropertyBoolean
(String schemaNS, String propName, boolean propValue) void
XMPMeta.setPropertyBoolean
(String schemaNS, String propName, boolean propValue, PropertyOptions options) Convenience method to set a property to a literalboolean
value.void
XMPMeta.setPropertyCalendar
(String schemaNS, String propName, Calendar propValue) void
XMPMeta.setPropertyCalendar
(String schemaNS, String propName, Calendar propValue, PropertyOptions options) Convenience method to set a property with a Java Calendar-object, which is serialized to an ISO8601 date.void
XMPMeta.setPropertyDate
(String schemaNS, String propName, XMPDateTime propValue) void
XMPMeta.setPropertyDate
(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) Convenience method to set a property with an XMPDateTime-object, which is serialized to an ISO8601 date.void
XMPMeta.setPropertyDouble
(String schemaNS, String propName, double propValue) void
XMPMeta.setPropertyDouble
(String schemaNS, String propName, double propValue, PropertyOptions options) Convenience method to set a property to a literaldouble
value.void
XMPMeta.setPropertyInteger
(String schemaNS, String propName, int propValue) void
XMPMeta.setPropertyInteger
(String schemaNS, String propName, int propValue, PropertyOptions options) Convenience method to set a property to a literalint
value.void
XMPMeta.setPropertyLong
(String schemaNS, String propName, long propValue) void
XMPMeta.setPropertyLong
(String schemaNS, String propName, long propValue, PropertyOptions options) Convenience method to set a property to a literallong
value.void
XMPMeta.setQualifier
(String schemaNS, String propName, String qualNS, String qualName, String qualValue) void
XMPMeta.setQualifier
(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) Provides access to a qualifier attached to a property.void
XMPMeta.setStructField
(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) void
XMPMeta.setStructField
(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) Provides access to fields within a nested structure. -
Uses of XMPException in com.itextpdf.xmp.impl
Methods in com.itextpdf.xmp.impl that throw XMPExceptionModifier and TypeMethodDescriptionvoid
Adds a node as child to this node.void
Adds a node as child to this node.private static XMPNode
ParseRDF.addChildNode
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, String value, boolean isTopLevel) Adds a child node.private void
XMPSerializerRDF.addPadding
(int tailLength) Calculates the padding according to the options and write it to the stream.void
XMPNode.addQualifier
(XMPNode qualNode) Appends a qualifier to the qualifier list and sets respective options.private static XMPNode
ParseRDF.addQualifierNode
(XMPNode xmpParent, String name, String value) Adds a qualifier node.void
XMPMetaImpl.appendArrayItem
(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) void
XMPMetaImpl.appendArrayItem
(String schemaNS, String arrayName, String itemValue) (package private) static void
XMPNodeUtils.appendLangItem
(XMPNode arrayNode, String itemLang, String itemValue) Appends a language item to an alt text array.static void
XMPUtilsImpl.appendProperties
(XMPMeta source, XMPMeta destination, boolean doAllProperties, boolean replaceOldValues, boolean deleteEmptyValues) private static void
XMPUtilsImpl.appendSubtree
(XMPMetaImpl destXMP, XMPNode sourceNode, XMPNode destParent, boolean replaceOldValues, boolean deleteEmptyValues) static void
ParameterAsserts.assertArrayName
(String arrayName) Asserts that an array name is set.private void
XMPNode.assertChildNotExisting
(String childName) Checks that a node name is not existing on the same level, except for array items.static void
ParameterAsserts.assertImplementation
(XMPMeta xmp) Asserts that the xmp object is of this implemention (XMPMetaImpl
).static void
ParameterAsserts.assertNotNull
(Object param) Asserts that any string parameter is set.static void
ParameterAsserts.assertPrefix
(String prefix) Asserts that a prefix is set.static void
ParameterAsserts.assertPropName
(String propName) Asserts that a property name is set.private void
XMPNode.assertQualifierNotExisting
(String qualifierName) Checks that a qualifier name is not existing on the same level.static void
ParameterAsserts.assertSchemaNS
(String schemaNS) Asserts that a schema namespace is set.static void
ParameterAsserts.assertSpecificLang
(String specificLang) Asserts that a specific language is set.static void
ParameterAsserts.assertStructName
(String structName) Asserts that a struct name is set.static String
XMPUtilsImpl.catenateArrayItems
(XMPMeta xmp, String schemaNS, String arrayName, String separator, String quotes, boolean allowCommas) protected void
XMPSerializerRDF.checkOptionsConsistence()
Checks if the supplied options are consistent.private static char
XMPUtilsImpl.checkQuotes
(String quotes, char openQuote) Make sure the open and close quotes are a legitimate pair and return the correct closing quote or an exception.private static void
XMPUtilsImpl.checkSeparator
(String separator) Make sure the separator is OK.(package private) static Object[]
XMPNodeUtils.chooseLocalizedText
(XMPNode arrayNode, String genericLang, String specificLang) Look for an exact match with the specific language.private static void
XMPNormalizer.compareAliasedSubtrees
(XMPNode aliasNode, XMPNode baseNode, boolean outerCall) The outermost call is special.int
XMPMetaImpl.countArrayItems
(String schemaNS, String arrayName) private void
XMPMetaImpl.doSetArrayItem
(XMPNode arrayNode, int itemIndex, String itemValue, PropertyOptions itemOptions, boolean insert) Locate or create the item node and set the value.private Object
XMPMetaImpl.evaluateNodeValue
(int valueType, XMPNode propNode) Evaluates a raw node value to the given value type, apply special conversions for defined types in XMP.(package private) static XMPNode
XMPNodeUtils.findChildNode
(XMPNode parent, String childName, boolean createNodes) Find or create a child node under a given parent node.private static int
XMPNodeUtils.findIndexedItem
(XMPNode arrayNode, String segment, boolean createNodes) (package private) static XMPNode
XMPNodeUtils.findNode
(XMPNode xmpTree, XMPPath xpath, boolean createNodes, PropertyOptions leafOptions) Follow an expanded path expression to find or create a node.private static XMPNode
XMPNodeUtils.findQualifierNode
(XMPNode parent, String qualName, boolean createNodes) Find or create a qualifier node under a given parent node.(package private) static XMPNode
XMPNodeUtils.findSchemaNode
(XMPNode tree, String namespaceURI, boolean createNodes) Find or create a schema node ifcreateNodes
is false and(package private) static XMPNode
XMPNodeUtils.findSchemaNode
(XMPNode tree, String namespaceURI, String suggestedPrefix, boolean createNodes) Find or create a schema node ifcreateNodes
is true.private static void
XMPNormalizer.fixGPSTimeStamp
(XMPNode exifSchema) Fixes the GPS Timestamp in EXIF.private static void
ParseRDF.fixupQualifiedNode
(XMPNode xmpParent) The parent is an RDF pseudo-struct containing an rdf:value field.private static XMPNode
XMPNodeUtils.followXPathStep
(XMPNode parentNode, XMPPathSegment nextStep, boolean createNodes) After processing by ExpandXPath, a step can be of these forms: qualName - A top level property or struct field.int
Parses a integer from the source and sets the pointer after it.XMPMetaImpl.getArrayItem
(String schemaNS, String arrayName, int itemIndex) XMPMetaImpl.getLocalizedText
(String schemaNS, String altTextName, String genericLang, String specificLang) XMPMetaImpl.getProperty
(String schemaNS, String propName) protected XMPProperty
XMPMetaImpl.getProperty
(String schemaNS, String propName, int valueType) Returns a property, but the result value can be requested.byte[]
XMPMetaImpl.getPropertyBase64
(String schemaNS, String propName) XMPMetaImpl.getPropertyBoolean
(String schemaNS, String propName) XMPMetaImpl.getPropertyCalendar
(String schemaNS, String propName) XMPMetaImpl.getPropertyDate
(String schemaNS, String propName) XMPMetaImpl.getPropertyDouble
(String schemaNS, String propName) XMPMetaImpl.getPropertyInteger
(String schemaNS, String propName) XMPMetaImpl.getPropertyLong
(String schemaNS, String propName) protected Object
XMPMetaImpl.getPropertyObject
(String schemaNS, String propName, int valueType) Returns a property, but the result value can be requested.XMPMetaImpl.getPropertyString
(String schemaNS, String propName) XMPMetaImpl.getQualifier
(String schemaNS, String propName, String qualNS, String qualName) XMPMetaImpl.getStructField
(String schemaNS, String structName, String fieldNS, String fieldName) void
XMPMetaImpl.insertArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue) void
XMPMetaImpl.insertArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) private static boolean
XMPUtilsImpl.itemValuesMatch
(XMPNode leftNode, XMPNode rightNode) Compares two nodes including its children and qualifier.XMPMetaImpl.iterator()
XMPMetaImpl.iterator
(IteratorOptions options) XMPMetaImpl.iterator
(String schemaNS, String propName, IteratorOptions options) private static int
XMPNodeUtils.lookupFieldSelector
(XMPNode arrayNode, String fieldName, String fieldValue) Searches for a field selector in a node: [fieldName="value] - an element in an array of structs, chosen by a field value.(package private) static int
XMPNodeUtils.lookupLanguageItem
(XMPNode arrayNode, String language) Looks for the appropriate language item in a text alternative array.itemprivate static int
XMPNodeUtils.lookupQualSelector
(XMPNode arrayNode, String qualName, String qualValue, int aliasForm) Searches for a qualifier selector in a node: [?qualName="value"] - an element in an array, chosen by a qualifier value.private static void
XMPNormalizer.moveExplicitAliases
(XMPNode tree, ParseOptions options) Visit all of the top level nodes looking for aliases.void
XMPMetaImpl.normalize
(ParseOptions options) private static void
XMPNormalizer.normalizeDCArrays
(XMPNode dcSchema) Undo the denormalization performed by the XMP used in Acrobat 5.
If a Dublin Core array had only one item, it was serialized as a simple property.static XMPDateTime
Converts an ISO 8601 string to anXMPDateTime
.static XMPDateTime
ISO8601Converter.parse
(String iso8601String, XMPDateTime binValue) (package private) static XMPMetaImpl
The main parsing method.static XMPMeta
XMPMetaParser.parse
(Object input, ParseOptions options) Parses the input source into an XMP metadata object, including de-aliasing and normalisation.private static Document
XMPMetaParser.parseInputSource
(InputSource source) Runs the XML-Parser.private static Document
XMPMetaParser.parseXml
(Object input, ParseOptions options) Parses the raw XML metadata packet considering the parsing options.private static Document
XMPMetaParser.parseXmlFromBytebuffer
(ByteBuffer buffer, ParseOptions options) Parses XML from a byte buffer, fixing the encoding (Latin-1 to UTF-8) and illegal control character optionally.private static Document
XMPMetaParser.parseXmlFromInputStream
(InputStream stream, ParseOptions options) Parses XML from anInputStream
, fixing the encoding (Latin-1 to UTF-8) and illegal control character optionally.private static Document
XMPMetaParser.parseXmlFromString
(String input, ParseOptions options) Parses XML from aString
, fixing the illegal control character optionally.(package private) static XMPMeta
XMPNormalizer.process
(XMPMetaImpl xmp, ParseOptions options) Normalizes a raw parsed XMPMeta-Objectprivate static void
ParseRDF.rdf_EmptyPropertyElement
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.21 emptyPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, ( resourceAttr | nodeIdAttr )?, propertyAttr* ) ) end-element() invalid input: '<'ns:Prop1/> invalid input: '<'ns:Prop2 rdf:resource="http: *www.adobe.com/"/> invalid input: '<'ns:Prop3 rdf:value="..." ns:Qual="..."/> invalid input: '<'ns:Prop4 ns:Field1="..." ns:Field2="..."/> An emptyPropertyElt is an element with no contained content, just a possibly empty set of attributes.private static void
ParseRDF.rdf_LiteralPropertyElement
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.16 literalPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, datatypeAttr?) ) text() end-element() Add a leaf node with the text value and qualifiers for the attributes.private static void
ParseRDF.rdf_NodeElement
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.5 nodeElementURIs anyURI - ( coreSyntaxTerms | rdf:li | oldTerms ) 7.2.11 nodeElement start-element ( URI == nodeElementURIs, attributes == set ( ( idAttr | nodeIdAttr | aboutAttr )?, propertyAttr* ) ) propertyEltList end-element() A node element URI is rdf:Description or anything else that is not an RDF term.private static void
ParseRDF.rdf_NodeElementAttrs
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.7 propertyAttributeURIs anyURI - ( coreSyntaxTerms | rdf:Description | rdf:li | oldTerms ) 7.2.11 nodeElement start-element ( URI == nodeElementURIs, attributes == set ( ( idAttr | nodeIdAttr | aboutAttr )?, propertyAttr* ) ) propertyEltList end-element() Process the attribute list for an RDF node element.private static void
ParseRDF.rdf_NodeElementList
(XMPMetaImpl xmp, XMPNode xmpParent, Node rdfRdfNode) 7.2.10 nodeElementList
ws* ( nodeElement ws* )* Note: this method is only called from the rdf:RDF-node (top level)private static void
ParseRDF.rdf_ParseTypeCollectionPropertyElement()
7.2.19 parseTypeCollectionPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseCollection ) ) nodeElementList end-element()private static void
ParseRDF.rdf_ParseTypeLiteralPropertyElement()
7.2.17 parseTypeLiteralPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseLiteral ) ) literal end-element()private static void
ParseRDF.rdf_ParseTypeOtherPropertyElement()
7.2.20 parseTypeOtherPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseOther ) ) propertyEltList end-element()private static void
ParseRDF.rdf_ParseTypeResourcePropertyElement
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.18 parseTypeResourcePropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseResource ) ) propertyEltList end-element() Add a new struct node with a qualifier for the possible rdf:ID attribute.private static void
ParseRDF.rdf_PropertyElement
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.14 propertyElt resourcePropertyElt | literalPropertyElt | parseTypeLiteralPropertyElt | parseTypeResourcePropertyElt | parseTypeCollectionPropertyElt | parseTypeOtherPropertyElt | emptyPropertyElt 7.2.15 resourcePropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr? ) ) ws* nodeElement ws* end-element() 7.2.16 literalPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, datatypeAttr?) ) text() end-element() 7.2.17 parseTypeLiteralPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseLiteral ) ) literal end-element() 7.2.18 parseTypeResourcePropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseResource ) ) propertyEltList end-element() 7.2.19 parseTypeCollectionPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseCollection ) ) nodeElementList end-element() 7.2.20 parseTypeOtherPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseOther ) ) propertyEltList end-element() 7.2.21 emptyPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, ( resourceAttr | nodeIdAttr )?, propertyAttr* ) ) end-element() The various property element forms are not distinguished by the XML element name, but by their attributes for the most part.private static void
ParseRDF.rdf_PropertyElementList
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlParent, boolean isTopLevel) 7.2.13 propertyEltList ws* ( propertyElt ws* )*(package private) static void
ParseRDF.rdf_RDF
(XMPMetaImpl xmp, Node rdfRdfNode) Each of these parsing methods is responsible for recognizing an RDF syntax production and adding the appropriate structure to the XMP tree.private static void
ParseRDF.rdf_ResourcePropertyElement
(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, boolean isTopLevel) 7.2.15 resourcePropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr? ) ) ws* nodeElement ws* end-element() This handles structs using an rdf:Description node, arrays using rdf:Bag/Seq/Alt, and typedNodes.(package private) void
XMPSchemaRegistryImpl.registerAlias
(String aliasNS, String aliasProp, String actualNS, String actualProp, AliasOptions aliasForm) Associates an alias name with an actual name.XMPSchemaRegistryImpl.registerNamespace
(String namespaceURI, String suggestedPrefix) private void
XMPSchemaRegistryImpl.registerStandardAliases()
Register the standard aliases.private void
XMPSchemaRegistryImpl.registerStandardNamespaces()
Register the standard namespaces of schemas and types that are included in the XMP Specification and some other Adobe private namespaces.static void
XMPUtilsImpl.removeProperties
(XMPMeta xmp, String schemaNS, String propName, boolean doAllProperties, boolean includeAliases) private static void
XMPNormalizer.repairAltText
(XMPNode arrayNode) Make sure that the array is well-formed AltText.static void
XMPUtilsImpl.separateArrayItems
(XMPMeta xmp, String schemaNS, String arrayName, String catedStr, PropertyOptions arrayOptions, boolean preserveCommas) private static XMPNode
XMPUtilsImpl.separateFindCreateArray
(String schemaNS, String arrayName, PropertyOptions arrayOptions, XMPMetaImpl xmp) Utility to find or create the array used byseparateArrayItems()
.static void
XMPSerializerHelper.serialize
(XMPMetaImpl xmp, OutputStream out, SerializeOptions options) Static method to serialize the metadata object.void
XMPSerializerRDF.serialize
(XMPMeta xmp, OutputStream out, SerializeOptions options) The actual serialization.private String
XMPSerializerRDF.serializeAsRDF()
Writes the (optional) packet header and the outer rdf-tags.private void
XMPSerializerRDF.serializeCanonicalRDFProperty
(XMPNode node, boolean useCanonicalRDF, boolean emitAsRDFValue, int indent) Recursively handles the "value" for a node.private void
XMPSerializerRDF.serializeCanonicalRDFSchema
(XMPNode schemaNode, int level) Serializes one schema with all contained properties in pretty-printed manner.
Each schema's properties are written to a single rdf:Description element.private void
XMPSerializerRDF.serializeCanonicalRDFSchemas
(int level) Serializes the metadata in pretty-printed manner.private void
XMPSerializerRDF.serializeCompactRDFArrayProp
(XMPNode node, int indent) Serializes an array property.private void
XMPSerializerRDF.serializeCompactRDFElementProps
(XMPNode parentNode, int indent) Recursively handles the "value" for a node that must be written as an RDF property element.private void
XMPSerializerRDF.serializeCompactRDFGeneralQualifier
(int indent, XMPNode node) Serializes the general qualifier.private void
XMPSerializerRDF.serializeCompactRDFSchemas
(int level) Serializes the metadata in compact manner.private boolean
XMPSerializerRDF.serializeCompactRDFStructProp
(XMPNode node, int indent, boolean hasRDFResourceQual) Serializes a struct property.static byte[]
XMPSerializerHelper.serializeToBuffer
(XMPMetaImpl xmp, SerializeOptions options) Serializes anXMPMeta
-object as RDF into a byte buffer.static String
XMPSerializerHelper.serializeToString
(XMPMetaImpl xmp, SerializeOptions options) Serializes anXMPMeta
-object as RDF into a string.void
XMPMetaImpl.setArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue) void
XMPMetaImpl.setArrayItem
(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) void
XMPMetaImpl.setLocalizedText
(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) void
XMPMetaImpl.setLocalizedText
(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) (package private) void
XMPMetaImpl.setNode
(XMPNode node, Object value, PropertyOptions newOptions, boolean deleteExisting) The internals for setProperty() and related calls, used after the node is found or created.void
XMPMetaImpl.setProperty
(String schemaNS, String propName, Object propValue) void
XMPMetaImpl.setProperty
(String schemaNS, String propName, Object propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyBase64
(String schemaNS, String propName, byte[] propValue) void
XMPMetaImpl.setPropertyBase64
(String schemaNS, String propName, byte[] propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyBoolean
(String schemaNS, String propName, boolean propValue) void
XMPMetaImpl.setPropertyBoolean
(String schemaNS, String propName, boolean propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyCalendar
(String schemaNS, String propName, Calendar propValue) void
XMPMetaImpl.setPropertyCalendar
(String schemaNS, String propName, Calendar propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyDate
(String schemaNS, String propName, XMPDateTime propValue) void
XMPMetaImpl.setPropertyDate
(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyDouble
(String schemaNS, String propName, double propValue) void
XMPMetaImpl.setPropertyDouble
(String schemaNS, String propName, double propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyInteger
(String schemaNS, String propName, int propValue) void
XMPMetaImpl.setPropertyInteger
(String schemaNS, String propName, int propValue, PropertyOptions options) void
XMPMetaImpl.setPropertyLong
(String schemaNS, String propName, long propValue) void
XMPMetaImpl.setPropertyLong
(String schemaNS, String propName, long propValue, PropertyOptions options) void
XMPMetaImpl.setQualifier
(String schemaNS, String propName, String qualNS, String qualName, String qualValue) void
XMPMetaImpl.setQualifier
(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) void
XMPMetaImpl.setStructField
(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) void
XMPMetaImpl.setStructField
(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) private static void
XMPNormalizer.touchUpDataModel
(XMPMetaImpl xmp) Visit all schemas to do general fixes and handle special cases.private static void
XMPNormalizer.transplantArrayItemAlias
(Iterator propertyIt, XMPNode childNode, XMPNode baseArray) Moves an alias node of array form to another schema into an arrayprivate static void
XMPNormalizer.tweakOldXMP
(XMPNode tree) Tweak old XMP: Move an instance ID from rdf:about to the xmpMM:InstanceID property.(package private) static PropertyOptions
XMPNodeUtils.verifySetOptions
(PropertyOptions options, Object itemValue) Verifies the PropertyOptions for consistancy and updates them as needed.Constructors in com.itextpdf.xmp.impl that throw XMPExceptionModifierConstructorDescriptionXMPDateTimeImpl
(String strValue) Creates anXMPDateTime
-instance from an ISO 8601 string.XMPIteratorImpl
(XMPMetaImpl xmp, String schemaNS, String propPath, IteratorOptions options) Constructor with optionsl initial values. -
Uses of XMPException in com.itextpdf.xmp.impl.xpath
Methods in com.itextpdf.xmp.impl.xpath that throw XMPExceptionModifier and TypeMethodDescriptionstatic XMPPath
XMPPathParser.expandXPath
(String schemaNS, String path) Split an XMPPath expression apart at the conceptual steps, adding the root namespace prefix to the first property component.private static XMPPathSegment
XMPPathParser.parseIndexSegment
(PathPosition pos) Parses an array index segment.private static void
XMPPathParser.parseRootNode
(String schemaNS, PathPosition pos, XMPPath expandedXPath) Parses the root node of an XMP Path, checks if namespace and prefix fit together and resolve the property to the base property if it is an alias.private static XMPPathSegment
XMPPathParser.parseStructSegment
(PathPosition pos) Parses a struct segmentprivate static void
XMPPathParser.skipPathDelimiter
(String path, PathPosition pos) private static void
XMPPathParser.verifyQualName
(String qualName) Verifies whether the qualifier name is not XML conformant or the namespace prefix has not been registered.private static void
XMPPathParser.verifySimpleXMLName
(String name) Verify if an XML name is conformant.private static String
XMPPathParser.verifyXPathRoot
(String schemaNS, String rootProp) Set up the first 2 components of the expanded XMPPath. -
Uses of XMPException in com.itextpdf.xmp.options
Methods in com.itextpdf.xmp.options that throw XMPExceptionModifier and TypeMethodDescriptionprotected void
Options.assertConsistency
(int options) The inheriting option class can do additional checks on the options.void
PropertyOptions.assertConsistency
(int options) Checks that a node not a struct and array at the same time; and URI cannot be a struct.private void
Options.assertOptionsValid
(int options) Checks options before they are set.void
PropertyOptions.mergeWith
(PropertyOptions options) Merges the set options of a another options object with this.void
Options.setOptions
(int options) AliasOptions.toPropertyOptions()
Constructors in com.itextpdf.xmp.options that throw XMPExceptionModifierConstructorDescriptionAliasOptions
(int options) Options
(int options) Constructor with the options bit mask.PropertyOptions
(int options) Intialization constructorSerializeOptions
(int options) Constructor using inital options