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 voidAdds a single author.static voidDublinCoreProperties.addDescription(XMPMeta xmpMeta, String desc) Adds a description.voidXmpWriter.addDocInfoProperty(Object key, String value) static voidDublinCoreProperties.addPublisher(XMPMeta xmpMeta, String publisher) Adds a single publisher.private voidPdfAXmpWriter.addRdfDescription(PdfAConformanceLevel conformanceLevel) Adds information about the PDF/A conformance level to the XMP metadata.static voidDublinCoreProperties.addSubject(XMPMeta xmpMeta, String subject) Adds a subject.static voidAdds a title.voidXmpWriter.appendAlternateArrayItem(String schemaNS, String arrayName, String value) Simplifies the construction of an alternate array by not requiring that you pre-create an empty array.voidXmpWriter.appendArrayItem(String schemaNS, String arrayName, String value) Simplifies the construction of an array by not requiring that you pre-create an empty array.voidXmpWriter.appendOrderedArrayItem(String schemaNS, String arrayName, String value) Simplifies the construction of an ordered array by not requiring that you pre-create an empty array.voidXmpWriter.serialize(OutputStream externalOutputStream) Flushes and closes the XmpWriter.static voidSets an array of authors.static voidPdfAProperties.setConformance(XMPMeta xmpMeta, String conformance) Adds the conformance.static voidXmpBasicProperties.setCreateDate(XMPMeta xmpMeta, String date) Adds the creation date.static voidXmpBasicProperties.setCreatorTool(XMPMeta xmpMeta, String creator) Adds the creatortool.static voidDublinCoreProperties.setDescription(XMPMeta xmpMeta, String desc, String genericLang, String specificLang) Sets a description.static voidXmpBasicProperties.setIdentifiers(XMPMeta xmpMeta, String[] id) Sets the identifier.static voidPdfProperties.setKeywords(XMPMeta xmpMeta, String keywords) Adds keywords.static voidXmpBasicProperties.setMetaDataDate(XMPMeta xmpMeta, String date) Adds the meta data date.static voidXmpBasicProperties.setModDate(XMPMeta xmpMeta, String date) Adds the modification date.static voidXmpBasicProperties.setNickname(XMPMeta xmpMeta, String name) Adds the nickname.static voidAdds part.static voidPdfProperties.setProducer(XMPMeta xmpMeta, String producer) Adds the producer.voidXmpWriter.setProperty(String schemaNS, String propName, Object value) static voidDublinCoreProperties.setPublisher(XMPMeta xmpMeta, String[] publisher) Sets an array of publishers.static voidDublinCoreProperties.setSubject(XMPMeta xmpMeta, String[] subject) Sets a subject.static voidDublinCoreProperties.setTitle(XMPMeta xmpMeta, String title, String genericLang, String specificLang) Sets a title.static voidPdfProperties.setVersion(XMPMeta xmpMeta, String version) Adds the version. -
Uses of XMPException in com.itextpdf.xmp
Methods in com.itextpdf.xmp that throw XMPExceptionModifier and TypeMethodDescriptionvoidXMPMeta.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.voidXMPMeta.appendArrayItem(String schemaNS, String arrayName, String itemValue) static voidXMPUtils.appendProperties(XMPMeta source, XMPMeta dest, boolean doAllProperties, boolean replaceOldValues) Alias without the new optiondeleteEmptyValues.static voidXMPUtils.appendProperties(XMPMeta source, XMPMeta dest, boolean doAllProperties, boolean replaceOldValues, boolean deleteEmptyValues) Append properties from one XMP object to another.private static voidXMPPathFactory.assertFieldName(String fieldName) ParameterAsserts that a struct field name is set.private static voidXMPPathFactory.assertFieldNS(String fieldNS) ParameterAsserts that a struct field namespace is set.private static voidXMPPathFactory.assertQualName(String qualName) ParameterAsserts that a qualifier name is set.private static voidXMPPathFactory.assertQualNS(String qualNS) ParameterAsserts that a qualifier namespace is set.static StringXMPUtils.catenateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String separator, String quotes, boolean allowCommas) Create a single edit string from an array of strings.static StringXMPPathFactory.composeArrayItemPath(String arrayName, int itemIndex) Compose the path expression for an item in an array.static StringXMPPathFactory.composeFieldSelector(String arrayName, String fieldNS, String fieldName, String fieldValue) Compose the path expression to select an alternate item by a field's value.static StringXMPPathFactory.composeQualifierPath(String qualNS, String qualName) Compose the path expression for a qualifier.static StringXMPPathFactory.composeStructFieldPath(String fieldNS, String fieldName) Compose the path expression for a field in a struct.static booleanXMPUtils.convertToBoolean(String value) Convert from string to Boolean.static XMPDateTimeXMPUtils.convertToDate(String rawValue) Converts a string value to anXMPDateTime.static doubleXMPUtils.convertToDouble(String rawValue) Converts a string value to adouble.static intXMPUtils.convertToInteger(String rawValue) Converts a string value to anint.static longXMPUtils.convertToLong(String rawValue) Converts a string value to along.intXMPMeta.countArrayItems(String schemaNS, String arrayName) Returns the number of items in the array.static XMPDateTimeXMPDateTimeFactory.createFromISO8601(String strValue) Creates anXMPDateTimefrom 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.voidXMPMeta.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMeta.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.voidXMPMeta.normalize(ParseOptions options) Perform the normalization as a separate parsing step.static XMPMetaXMPMetaFactory.parse(InputStream in) Parsing with default options.static XMPMetaXMPMetaFactory.parse(InputStream in, ParseOptions options) These functions support parsing serialized RDF into an XMP object, and serailizing an XMP object into RDF.static XMPMetaXMPMetaFactory.parseFromBuffer(byte[] buffer) Parsing with default options.static XMPMetaXMPMetaFactory.parseFromBuffer(byte[] buffer, ParseOptions options) Creates anXMPMeta-object from a byte-buffer.static XMPMetaXMPMetaFactory.parseFromString(String packet) Parsing with default options.static XMPMetaXMPMetaFactory.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 voidXMPUtils.removeProperties(XMPMeta xmp, String schemaNS, String propName, boolean doAllProperties, boolean includeAliases) Remove multiple properties from an XMP object.static voidXMPUtils.separateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String catedStr, PropertyOptions arrayOptions, boolean preserveCommas) Separate a single edit string into an array of strings.static voidXMPMetaFactory.serialize(XMPMeta xmp, OutputStream out) Serializes anXMPMeta-object as RDF into anOutputStreamwith default options.static voidXMPMetaFactory.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 StringXMPMetaFactory.serializeToString(XMPMeta xmp, SerializeOptions options) Serializes anXMPMeta-object as RDF into a string.voidXMPMeta.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMeta.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) Replaces an item within an array.voidXMPMeta.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) voidXMPMeta.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.voidXMPMeta.setProperty(String schemaNS, String propName, Object propValue) voidXMPMeta.setProperty(String schemaNS, String propName, Object propValue, PropertyOptions options) The property valuesettersall take a property specification, their differences are in the form of this.voidXMPMeta.setPropertyBase64(String schemaNS, String propName, byte[] propValue) voidXMPMeta.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.voidXMPMeta.setPropertyBoolean(String schemaNS, String propName, boolean propValue) voidXMPMeta.setPropertyBoolean(String schemaNS, String propName, boolean propValue, PropertyOptions options) Convenience method to set a property to a literalbooleanvalue.voidXMPMeta.setPropertyCalendar(String schemaNS, String propName, Calendar propValue) voidXMPMeta.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.voidXMPMeta.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue) voidXMPMeta.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.voidXMPMeta.setPropertyDouble(String schemaNS, String propName, double propValue) voidXMPMeta.setPropertyDouble(String schemaNS, String propName, double propValue, PropertyOptions options) Convenience method to set a property to a literaldoublevalue.voidXMPMeta.setPropertyInteger(String schemaNS, String propName, int propValue) voidXMPMeta.setPropertyInteger(String schemaNS, String propName, int propValue, PropertyOptions options) Convenience method to set a property to a literalintvalue.voidXMPMeta.setPropertyLong(String schemaNS, String propName, long propValue) voidXMPMeta.setPropertyLong(String schemaNS, String propName, long propValue, PropertyOptions options) Convenience method to set a property to a literallongvalue.voidXMPMeta.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue) voidXMPMeta.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) Provides access to a qualifier attached to a property.voidXMPMeta.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) voidXMPMeta.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 TypeMethodDescriptionvoidAdds a node as child to this node.voidAdds a node as child to this node.private static XMPNodeParseRDF.addChildNode(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlNode, String value, boolean isTopLevel) Adds a child node.private voidXMPSerializerRDF.addPadding(int tailLength) Calculates the padding according to the options and write it to the stream.voidXMPNode.addQualifier(XMPNode qualNode) Appends a qualifier to the qualifier list and sets respective options.private static XMPNodeParseRDF.addQualifierNode(XMPNode xmpParent, String name, String value) Adds a qualifier node.voidXMPMetaImpl.appendArrayItem(String schemaNS, String arrayName, PropertyOptions arrayOptions, String itemValue, PropertyOptions itemOptions) voidXMPMetaImpl.appendArrayItem(String schemaNS, String arrayName, String itemValue) (package private) static voidXMPNodeUtils.appendLangItem(XMPNode arrayNode, String itemLang, String itemValue) Appends a language item to an alt text array.static voidXMPUtilsImpl.appendProperties(XMPMeta source, XMPMeta destination, boolean doAllProperties, boolean replaceOldValues, boolean deleteEmptyValues) private static voidXMPUtilsImpl.appendSubtree(XMPMetaImpl destXMP, XMPNode sourceNode, XMPNode destParent, boolean replaceOldValues, boolean deleteEmptyValues) static voidParameterAsserts.assertArrayName(String arrayName) Asserts that an array name is set.private voidXMPNode.assertChildNotExisting(String childName) Checks that a node name is not existing on the same level, except for array items.static voidParameterAsserts.assertImplementation(XMPMeta xmp) Asserts that the xmp object is of this implemention (XMPMetaImpl).static voidParameterAsserts.assertNotNull(Object param) Asserts that any string parameter is set.static voidParameterAsserts.assertPrefix(String prefix) Asserts that a prefix is set.static voidParameterAsserts.assertPropName(String propName) Asserts that a property name is set.private voidXMPNode.assertQualifierNotExisting(String qualifierName) Checks that a qualifier name is not existing on the same level.static voidParameterAsserts.assertSchemaNS(String schemaNS) Asserts that a schema namespace is set.static voidParameterAsserts.assertSpecificLang(String specificLang) Asserts that a specific language is set.static voidParameterAsserts.assertStructName(String structName) Asserts that a struct name is set.static StringXMPUtilsImpl.catenateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String separator, String quotes, boolean allowCommas) protected voidXMPSerializerRDF.checkOptionsConsistence()Checks if the supplied options are consistent.private static charXMPUtilsImpl.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 voidXMPUtilsImpl.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 voidXMPNormalizer.compareAliasedSubtrees(XMPNode aliasNode, XMPNode baseNode, boolean outerCall) The outermost call is special.intXMPMetaImpl.countArrayItems(String schemaNS, String arrayName) private voidXMPMetaImpl.doSetArrayItem(XMPNode arrayNode, int itemIndex, String itemValue, PropertyOptions itemOptions, boolean insert) Locate or create the item node and set the value.private ObjectXMPMetaImpl.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 XMPNodeXMPNodeUtils.findChildNode(XMPNode parent, String childName, boolean createNodes) Find or create a child node under a given parent node.private static intXMPNodeUtils.findIndexedItem(XMPNode arrayNode, String segment, boolean createNodes) (package private) static XMPNodeXMPNodeUtils.findNode(XMPNode xmpTree, XMPPath xpath, boolean createNodes, PropertyOptions leafOptions) Follow an expanded path expression to find or create a node.private static XMPNodeXMPNodeUtils.findQualifierNode(XMPNode parent, String qualName, boolean createNodes) Find or create a qualifier node under a given parent node.(package private) static XMPNodeXMPNodeUtils.findSchemaNode(XMPNode tree, String namespaceURI, boolean createNodes) Find or create a schema node ifcreateNodesis false and(package private) static XMPNodeXMPNodeUtils.findSchemaNode(XMPNode tree, String namespaceURI, String suggestedPrefix, boolean createNodes) Find or create a schema node ifcreateNodesis true.private static voidXMPNormalizer.fixGPSTimeStamp(XMPNode exifSchema) Fixes the GPS Timestamp in EXIF.private static voidParseRDF.fixupQualifiedNode(XMPNode xmpParent) The parent is an RDF pseudo-struct containing an rdf:value field.private static XMPNodeXMPNodeUtils.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.intParses 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 XMPPropertyXMPMetaImpl.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 ObjectXMPMetaImpl.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) voidXMPMetaImpl.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMetaImpl.insertArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) private static booleanXMPUtilsImpl.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 intXMPNodeUtils.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 intXMPNodeUtils.lookupLanguageItem(XMPNode arrayNode, String language) Looks for the appropriate language item in a text alternative array.itemprivate static intXMPNodeUtils.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 voidXMPNormalizer.moveExplicitAliases(XMPNode tree, ParseOptions options) Visit all of the top level nodes looking for aliases.voidXMPMetaImpl.normalize(ParseOptions options) private static voidXMPNormalizer.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 XMPDateTimeConverts an ISO 8601 string to anXMPDateTime.static XMPDateTimeISO8601Converter.parse(String iso8601String, XMPDateTime binValue) (package private) static XMPMetaImplThe main parsing method.static XMPMetaXMPMetaParser.parse(Object input, ParseOptions options) Parses the input source into an XMP metadata object, including de-aliasing and normalisation.private static DocumentXMPMetaParser.parseInputSource(InputSource source) Runs the XML-Parser.private static DocumentXMPMetaParser.parseXml(Object input, ParseOptions options) Parses the raw XML metadata packet considering the parsing options.private static DocumentXMPMetaParser.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 DocumentXMPMetaParser.parseXmlFromInputStream(InputStream stream, ParseOptions options) Parses XML from anInputStream, fixing the encoding (Latin-1 to UTF-8) and illegal control character optionally.private static DocumentXMPMetaParser.parseXmlFromString(String input, ParseOptions options) Parses XML from aString, fixing the illegal control character optionally.(package private) static XMPMetaXMPNormalizer.process(XMPMetaImpl xmp, ParseOptions options) Normalizes a raw parsed XMPMeta-Objectprivate static voidParseRDF.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 voidParseRDF.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 voidParseRDF.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 voidParseRDF.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 voidParseRDF.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 voidParseRDF.rdf_ParseTypeCollectionPropertyElement()7.2.19 parseTypeCollectionPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseCollection ) ) nodeElementList end-element()private static voidParseRDF.rdf_ParseTypeLiteralPropertyElement()7.2.17 parseTypeLiteralPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseLiteral ) ) literal end-element()private static voidParseRDF.rdf_ParseTypeOtherPropertyElement()7.2.20 parseTypeOtherPropertyElt start-element ( URI == propertyElementURIs, attributes == set ( idAttr?, parseOther ) ) propertyEltList end-element()private static voidParseRDF.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 voidParseRDF.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 voidParseRDF.rdf_PropertyElementList(XMPMetaImpl xmp, XMPNode xmpParent, Node xmlParent, boolean isTopLevel) 7.2.13 propertyEltList ws* ( propertyElt ws* )*(package private) static voidParseRDF.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 voidParseRDF.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) voidXMPSchemaRegistryImpl.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 voidXMPSchemaRegistryImpl.registerStandardAliases()Register the standard aliases.private voidXMPSchemaRegistryImpl.registerStandardNamespaces()Register the standard namespaces of schemas and types that are included in the XMP Specification and some other Adobe private namespaces.static voidXMPUtilsImpl.removeProperties(XMPMeta xmp, String schemaNS, String propName, boolean doAllProperties, boolean includeAliases) private static voidXMPNormalizer.repairAltText(XMPNode arrayNode) Make sure that the array is well-formed AltText.static voidXMPUtilsImpl.separateArrayItems(XMPMeta xmp, String schemaNS, String arrayName, String catedStr, PropertyOptions arrayOptions, boolean preserveCommas) private static XMPNodeXMPUtilsImpl.separateFindCreateArray(String schemaNS, String arrayName, PropertyOptions arrayOptions, XMPMetaImpl xmp) Utility to find or create the array used byseparateArrayItems().static voidXMPSerializerHelper.serialize(XMPMetaImpl xmp, OutputStream out, SerializeOptions options) Static method to serialize the metadata object.voidXMPSerializerRDF.serialize(XMPMeta xmp, OutputStream out, SerializeOptions options) The actual serialization.private StringXMPSerializerRDF.serializeAsRDF()Writes the (optional) packet header and the outer rdf-tags.private voidXMPSerializerRDF.serializeCanonicalRDFProperty(XMPNode node, boolean useCanonicalRDF, boolean emitAsRDFValue, int indent) Recursively handles the "value" for a node.private voidXMPSerializerRDF.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 voidXMPSerializerRDF.serializeCanonicalRDFSchemas(int level) Serializes the metadata in pretty-printed manner.private voidXMPSerializerRDF.serializeCompactRDFArrayProp(XMPNode node, int indent) Serializes an array property.private voidXMPSerializerRDF.serializeCompactRDFElementProps(XMPNode parentNode, int indent) Recursively handles the "value" for a node that must be written as an RDF property element.private voidXMPSerializerRDF.serializeCompactRDFGeneralQualifier(int indent, XMPNode node) Serializes the general qualifier.private voidXMPSerializerRDF.serializeCompactRDFSchemas(int level) Serializes the metadata in compact manner.private booleanXMPSerializerRDF.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 StringXMPSerializerHelper.serializeToString(XMPMetaImpl xmp, SerializeOptions options) Serializes anXMPMeta-object as RDF into a string.voidXMPMetaImpl.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue) voidXMPMetaImpl.setArrayItem(String schemaNS, String arrayName, int itemIndex, String itemValue, PropertyOptions options) voidXMPMetaImpl.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue) voidXMPMetaImpl.setLocalizedText(String schemaNS, String altTextName, String genericLang, String specificLang, String itemValue, PropertyOptions options) (package private) voidXMPMetaImpl.setNode(XMPNode node, Object value, PropertyOptions newOptions, boolean deleteExisting) The internals for setProperty() and related calls, used after the node is found or created.voidXMPMetaImpl.setProperty(String schemaNS, String propName, Object propValue) voidXMPMetaImpl.setProperty(String schemaNS, String propName, Object propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyBase64(String schemaNS, String propName, byte[] propValue) voidXMPMetaImpl.setPropertyBase64(String schemaNS, String propName, byte[] propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyBoolean(String schemaNS, String propName, boolean propValue) voidXMPMetaImpl.setPropertyBoolean(String schemaNS, String propName, boolean propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyCalendar(String schemaNS, String propName, Calendar propValue) voidXMPMetaImpl.setPropertyCalendar(String schemaNS, String propName, Calendar propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue) voidXMPMetaImpl.setPropertyDate(String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyDouble(String schemaNS, String propName, double propValue) voidXMPMetaImpl.setPropertyDouble(String schemaNS, String propName, double propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyInteger(String schemaNS, String propName, int propValue) voidXMPMetaImpl.setPropertyInteger(String schemaNS, String propName, int propValue, PropertyOptions options) voidXMPMetaImpl.setPropertyLong(String schemaNS, String propName, long propValue) voidXMPMetaImpl.setPropertyLong(String schemaNS, String propName, long propValue, PropertyOptions options) voidXMPMetaImpl.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue) voidXMPMetaImpl.setQualifier(String schemaNS, String propName, String qualNS, String qualName, String qualValue, PropertyOptions options) voidXMPMetaImpl.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue) voidXMPMetaImpl.setStructField(String schemaNS, String structName, String fieldNS, String fieldName, String fieldValue, PropertyOptions options) private static voidXMPNormalizer.touchUpDataModel(XMPMetaImpl xmp) Visit all schemas to do general fixes and handle special cases.private static voidXMPNormalizer.transplantArrayItemAlias(Iterator propertyIt, XMPNode childNode, XMPNode baseArray) Moves an alias node of array form to another schema into an arrayprivate static voidXMPNormalizer.tweakOldXMP(XMPNode tree) Tweak old XMP: Move an instance ID from rdf:about to the xmpMM:InstanceID property.(package private) static PropertyOptionsXMPNodeUtils.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 XMPPathXMPPathParser.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 XMPPathSegmentXMPPathParser.parseIndexSegment(PathPosition pos) Parses an array index segment.private static voidXMPPathParser.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 XMPPathSegmentXMPPathParser.parseStructSegment(PathPosition pos) Parses a struct segmentprivate static voidXMPPathParser.skipPathDelimiter(String path, PathPosition pos) private static voidXMPPathParser.verifyQualName(String qualName) Verifies whether the qualifier name is not XML conformant or the namespace prefix has not been registered.private static voidXMPPathParser.verifySimpleXMLName(String name) Verify if an XML name is conformant.private static StringXMPPathParser.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 voidOptions.assertConsistency(int options) The inheriting option class can do additional checks on the options.voidPropertyOptions.assertConsistency(int options) Checks that a node not a struct and array at the same time; and URI cannot be a struct.private voidOptions.assertOptionsValid(int options) Checks options before they are set.voidPropertyOptions.mergeWith(PropertyOptions options) Merges the set options of a another options object with this.voidOptions.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