protected java.lang.String |
XMPIteratorImpl.NodeIterator.accumulatePath(XMPNode currNode,
java.lang.String parentPath,
int currentIndex) |
|
void |
XMPNode.addChild(int index,
XMPNode node) |
Adds a node as child to this node.
|
void |
XMPNode.addChild(XMPNode node) |
Adds a node as child to this node.
|
private static XMPNode |
ParseRDF.addChildNode(XMPMetaImpl xmp,
XMPNode xmpParent,
org.w3c.dom.Node xmlNode,
java.lang.String value,
boolean isTopLevel) |
Adds a child node.
|
void |
XMPNode.addQualifier(XMPNode qualNode) |
Appends a qualifier to the qualifier list and sets respective options.
|
private static XMPNode |
ParseRDF.addQualifierNode(XMPNode xmpParent,
java.lang.String name,
java.lang.String value) |
Adds a qualifier node.
|
(package private) static void |
XMPNodeUtils.appendLangItem(XMPNode arrayNode,
java.lang.String itemLang,
java.lang.String itemValue) |
Appends a language item to an alt text array.
|
private static void |
XMPUtilsImpl.appendSubtree(XMPMetaImpl destXMP,
XMPNode sourceNode,
XMPNode destParent,
boolean replaceOldValues,
boolean deleteEmptyValues) |
|
private boolean |
XMPSerializerRDF.canBeRDFAttrProp(XMPNode node) |
A node can be serialized as RDF-Attribute, if it meets the following conditions:
is not array item
don't has qualifier
is no URI
is no composite property
|
(package private) static java.lang.Object[] |
XMPNodeUtils.chooseLocalizedText(XMPNode arrayNode,
java.lang.String genericLang,
java.lang.String specificLang) |
Look for an exact match with the specific language.
|
void |
XMPNode.cloneSubtree(XMPNode destination) |
Performs a deep clone of the complete subtree (children and
qualifier )into and add it to the destination node.
|
private static void |
XMPNormalizer.compareAliasedSubtrees(XMPNode aliasNode,
XMPNode baseNode,
boolean outerCall) |
The outermost call is special.
|
protected XMPPropertyInfo |
XMPIteratorImpl.NodeIterator.createPropertyInfo(XMPNode node,
java.lang.String baseNS,
java.lang.String path) |
Creates a property info object from an XMPNode .
|
private void |
XMPSerializerRDF.declareUsedNamespaces(XMPNode node,
java.util.Set<java.lang.String> usedPrefixes,
int indent) |
Writes all used namespaces of the subtree in node to the output.
|
private static void |
XMPNormalizer.deleteEmptySchemas(XMPNode tree) |
Remove all empty schemas from the metadata tree that were generated during the rdf parsing.
|
(package private) static void |
XMPNodeUtils.deleteNode(XMPNode node) |
Deletes the the given node and its children from its parent.
|
(package private) static void |
XMPNodeUtils.detectAltText(XMPNode arrayNode) |
See if an array is an alt-text array.
|
private void |
XMPMetaImpl.doSetArrayItem(XMPNode arrayNode,
int itemIndex,
java.lang.String itemValue,
PropertyOptions itemOptions,
boolean insert) |
Locate or create the item node and set the value.
|
private void |
XMPSerializerRDF.emitRDFArrayTag(XMPNode arrayNode,
boolean isStartTag,
int indent) |
Writes the array start and end tags.
|
private java.lang.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,
java.lang.String childName,
boolean createNodes) |
Find or create a child node under a given parent node.
|
private static int |
XMPNodeUtils.findIndexedItem(XMPNode arrayNode,
java.lang.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,
java.lang.String qualName,
boolean createNodes) |
Find or create a qualifier node under a given parent node.
|
(package private) static XMPNode |
XMPNodeUtils.findSchemaNode(XMPNode tree,
java.lang.String namespaceURI,
boolean createNodes) |
Find or create a schema node if createNodes is false and
|
(package private) static XMPNode |
XMPNodeUtils.findSchemaNode(XMPNode tree,
java.lang.String namespaceURI,
java.lang.String suggestedPrefix,
boolean createNodes) |
Find or create a schema node if createNodes 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.
|
private static boolean |
XMPUtilsImpl.itemValuesMatch(XMPNode leftNode,
XMPNode rightNode) |
Compares two nodes including its children and qualifier.
|
private static int |
XMPNodeUtils.lookupFieldSelector(XMPNode arrayNode,
java.lang.String fieldName,
java.lang.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,
java.lang.String language) |
Looks for the appropriate language item in a text alternative array.item
|
private static int |
XMPNodeUtils.lookupQualSelector(XMPNode arrayNode,
java.lang.String qualName,
java.lang.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.migrateAudioCopyright(XMPMeta xmp,
XMPNode dmCopyright) |
The initial support for WAV files mapped a legacy ID3 audio copyright
into a new xmpDM:copyright property.
|
private static void |
XMPNormalizer.moveExplicitAliases(XMPNode tree,
ParseOptions options) |
Visit all of the top level nodes looking for aliases.
|
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.
|
(package private) static void |
XMPNodeUtils.normalizeLangArray(XMPNode arrayNode) |
Make sure the x-default item is first.
|
private static void |
ParseRDF.rdf_EmptyPropertyElement(XMPMetaImpl xmp,
XMPNode xmpParent,
org.w3c.dom.Node xmlNode,
boolean isTopLevel) |
7.2.21 emptyPropertyElt
start-element ( URI == propertyElementURIs,
attributes == set (
idAttr?, ( resourceAttr | nodeIdAttr )?, propertyAttr* ) )
end-element()
|
private static void |
ParseRDF.rdf_LiteralPropertyElement(XMPMetaImpl xmp,
XMPNode xmpParent,
org.w3c.dom.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,
org.w3c.dom.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,
org.w3c.dom.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,
org.w3c.dom.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_ParseTypeResourcePropertyElement(XMPMetaImpl xmp,
XMPNode xmpParent,
org.w3c.dom.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,
org.w3c.dom.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,
org.w3c.dom.Node xmlParent,
boolean isTopLevel) |
7.2.13 propertyEltList
ws* ( propertyElt ws* )*
|
private static void |
ParseRDF.rdf_ResourcePropertyElement(XMPMetaImpl xmp,
XMPNode xmpParent,
org.w3c.dom.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.
|
void |
XMPNode.removeChild(XMPNode node) |
Removes a child node.
|
void |
XMPNode.removeQualifier(XMPNode qualNode) |
Removes one qualifier node and fixes the options.
|
private static boolean |
XMPUtilsImpl.removeSchemaChildren(XMPNode schemaNode,
boolean doAllProperties) |
Remove all schema children according to the flag
doAllProperties .
|
private static void |
XMPNormalizer.repairAltText(XMPNode arrayNode) |
Make sure that the array is well-formed AltText.
|
void |
XMPNode.replaceChild(int index,
XMPNode node) |
Replaces a node with another one.
|
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.serializeCompactRDFArrayProp(XMPNode node,
int indent) |
Serializes an array property.
|
private boolean |
XMPSerializerRDF.serializeCompactRDFAttrProps(XMPNode parentNode,
int indent) |
Write each of the parent's simple unqualified properties as an attribute.
|
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 boolean[] |
XMPSerializerRDF.serializeCompactRDFSimpleProp(XMPNode node) |
Serializes a simple property.
|
private boolean |
XMPSerializerRDF.serializeCompactRDFStructProp(XMPNode node,
int indent,
boolean hasRDFResourceQual) |
Serializes a struct property.
|
(package private) void |
XMPMetaImpl.setNode(XMPNode node,
java.lang.Object value,
PropertyOptions newOptions,
boolean deleteExisting) |
The internals for setProperty() and related calls, used after the node is
found or created.
|
(package private) static void |
XMPNodeUtils.setNodeValue(XMPNode node,
java.lang.Object value) |
This is setting the value of a leaf node.
|
protected void |
XMPNode.setParent(XMPNode parent) |
Sets the parent node, this is solely done by addChild(...)
and addQualifier() .
|
private void |
XMPSerializerRDF.startOuterRDFDescription(XMPNode schemaNode,
int level) |
Start the outer rdf:Description element, including all needed xmlns attributes.
|
private static void |
XMPNormalizer.transplantArrayItemAlias(java.util.Iterator propertyIt,
XMPNode childNode,
XMPNode baseArray) |
Moves an alias node of array form to another schema into an array
|
private static void |
XMPNormalizer.tweakOldXMP(XMPNode tree) |
Tweak old XMP: Move an instance ID from rdf:about to the
xmpMM:InstanceID property.
|