public final class XmpRdfRoot extends XmpElementBase implements IXmlValue
Represents rdf:RDF element. A single XMP packet shall be serialized using a single rdf:RDF XML element. The rdf:RDF element content shall consist of only zero or more rdf:Description elements.
attributes
Constructor and Description |
---|
XmpRdfRoot()
Initializes a new instance of the
XmpRdfRoot class. |
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceUri(String prefix)
Gets namespace uri by specific prefix.
|
String |
getPrefix(String namespaceUri)
Gets prefix by specific namespace uri.
|
String |
getXmlValue()
Converts XMP value to the xml representation.
|
void |
registerNamespaceUri(String prefix,
String namespaceUri)
Adds namespace uri by prefix.
|
addAttribute, clearAttributes, containsAttribute, equals, equals, getAttribute, hashCode
public XmpRdfRoot()
Initializes a new instance of the XmpRdfRoot
class.
public final void registerNamespaceUri(String prefix, String namespaceUri)
Adds namespace uri by prefix. Prefix may start without xmlns.
prefix
- Xml prefix.namespaceUri
- Namespace uri.
namespaceUri
is unique, it's impossible to have namespaces with the same uri's.
ArgumentNullException
- Prefix is not provided.public final String getNamespaceUri(String prefix)
Gets namespace uri by specific prefix. Prefix may start without xmlns.
prefix
- The prefix.ArgumentNullException
- Prefix is not provided.public final String getPrefix(String namespaceUri)
Gets prefix by specific namespace uri.
namespaceUri
- Namespace uri.public final String getXmlValue()
Converts XMP value to the xml representation.
getXmlValue
in interface IXmlValue
string
representation of XMP value.Copyright © 2019. All rights reserved.