iText 8.0.5 API
|
A node in the internally XMP tree, which can be a schema node, a property node, an array node, an array item, a struct node or a qualifier node (without '?'). More...
Public Member Functions |
|||
XMPNode (String name, String value, PropertyOptions options) | |||
Creates an More... |
|||
XMPNode (String name, PropertyOptions options) | |||
Constructor for the node without value. More... |
|||
virtual void | Clear () | ||
Resets the node. More... |
|||
virtual iText.Kernel.XMP.Impl.XMPNode | GetParent () | ||
|
|||
virtual iText.Kernel.XMP.Impl.XMPNode | GetChild (int index) | ||
virtual void | AddChild (iText.Kernel.XMP.Impl.XMPNode node) | ||
Adds a node as child to this node. More... |
|||
virtual void | AddChild (int index, iText.Kernel.XMP.Impl.XMPNode node) | ||
Adds a node as child to this node. More... |
|||
virtual void | ReplaceChild (int index, iText.Kernel.XMP.Impl.XMPNode node) | ||
Replaces a node with another one. More... |
|||
virtual void | RemoveChild (int itemIndex) | ||
Removes a child at the requested index. More... |
|||
virtual void | RemoveChild (iText.Kernel.XMP.Impl.XMPNode node) | ||
Removes a child node. More... |
|||
virtual void | RemoveChildren () | ||
Removes all children from the node. More... |
|||
virtual int | GetChildrenLength () | ||
|
|||
virtual iText.Kernel.XMP.Impl.XMPNode | FindChildByName (String expr) | ||
virtual iText.Kernel.XMP.Impl.XMPNode | GetQualifier (int index) | ||
virtual int | GetQualifierLength () | ||
|
|||
virtual void | AddQualifier (iText.Kernel.XMP.Impl.XMPNode qualNode) | ||
Appends a qualifier to the qualifier list and sets respective options. More... |
|||
virtual void | RemoveQualifier (iText.Kernel.XMP.Impl.XMPNode qualNode) | ||
Removes one qualifier node and fixes the options. More... |
|||
virtual void | RemoveQualifiers () | ||
Removes all qualifiers from the node and sets the options appropriate. More... |
|||
virtual iText.Kernel.XMP.Impl.XMPNode | FindQualifierByName (String expr) | ||
virtual bool | HasChildren () | ||
|
|||
virtual IEnumerator | IterateChildren () | ||
virtual bool | HasQualifier () | ||
|
|||
virtual IEnumerator | IterateQualifier () | ||
virtual Object | Clone () | ||
Performs a deep clone of the node and the complete subtree. More... |
|||
virtual void | CloneSubtree (iText.Kernel.XMP.Impl.XMPNode destination) | ||
Performs a deep clone of the complete subtree (children and qualifier )into and add it to the destination node. More... |
|||
virtual String | DumpNode (bool recursive) | ||
Renders this node and the tree unter this node in a human readable form. More... |
|||
virtual int | CompareTo (Object xmpNode) | ||
|
|||
virtual String | GetName () | ||
|
|||
virtual void | SetName (String name) | ||
|
|||
virtual String | GetValue () | ||
|
|||
virtual void | SetValue (String value) | ||
|
|||
virtual PropertyOptions | GetOptions () | ||
|
|||
virtual void | SetOptions (PropertyOptions options) | ||
Updates the options of the node. More... |
|||
virtual bool | IsImplicit () | ||
|
|||
virtual void | SetImplicit (bool @implicit) | ||
|
|||
virtual bool | GetHasAliases () | ||
|
|||
virtual void | SetHasAliases (bool hasAliases) | ||
|
|||
virtual bool | IsAlias () | ||
|
|||
virtual void | SetAlias (bool alias) | ||
|
|||
virtual bool | GetHasValueChild () | ||
|
|||
virtual void | SetHasValueChild (bool hasValueChild) | ||
|
|||
virtual void | Sort () | ||
Sorts the complete datamodel according to the rules. More... |
|||
virtual IList | GetUnmodifiableChildren () | ||
|
|||
Package Functions |
|
virtual void | CleanupChildren () |
Removes the children list if this node has no children anymore; checks if the provided node is a schema node and doesn't have any children anymore, its deleted. More... |
|
virtual IList | GetChildren () |
Note: This method should always be called when accessing 'children' to be sure that its initialized. More... |
|
virtual void | SetParent (iText.Kernel.XMP.Impl.XMPNode parent) |
Sets the parent node, this is solely done by More... |
|
A node in the internally XMP tree, which can be a schema node, a property node, an array node, an array item, a struct node or a qualifier node (without '?').
A node in the internally XMP tree, which can be a schema node, a property node, an array node, an array item, a struct node or a qualifier node (without '?'). Possible improvements:
|
inline |
Creates an
XMPNode
with initial values.
name | the name of the node |
value | the value of the node |
options | the options of the node |
|
inline |
Constructor for the node without value.
name | the name of the node |
options | the options of the node |
|
inlinevirtual |
Adds a node as child to this node.
index | the index of the node before which the new one is inserted. Note: The node children are indexed from [1..size]! An index of size + 1 appends a node. |
node | an XMPNode |
|
inlinevirtual |
Adds a node as child to this node.
node | an XMPNode |
|
inlinevirtual |
Appends a qualifier to the qualifier list and sets respective options.
qualNode | a qualifier node. |
|
inlinepackagevirtual |
Removes the children list if this node has no children anymore; checks if the provided node is a schema node and doesn't have any children anymore, its deleted.
|
inlinevirtual |
Resets the node.
|
inlinevirtual |
Performs a deep clone of the node and the complete subtree.
|
inlinevirtual |
Performs a deep clone of the complete subtree (children and qualifier )into and add it to the destination node.
destination | the node to add the cloned subtree |
|
inlinevirtual |
Renders this node and the tree unter this node in a human readable form.
recursive | Flag is qualifier and child nodes shall be rendered too |
|
inlinevirtual |
expr | child node name to look for |
|
inlinevirtual |
expr | qualifier node name to look for |
|
inlinevirtual |
index | an index [1..size] |
|
inlinepackagevirtual |
Note: This method should always be called when accessing 'children' to be sure that its initialized.
|
inlinevirtual |
index | an index [1..size] |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Removes a child at the requested index.
itemIndex | the index to remove [1..size] |
|
inlinevirtual |
Removes a child node.
Removes a child node. If its a schema node and doesn't have any children anymore, its deleted.
node | the child node to delete. |
|
inlinevirtual |
Removes all children from the node.
|
inlinevirtual |
Removes one qualifier node and fixes the options.
qualNode | qualifier to remove |
|
inlinevirtual |
Removes all qualifiers from the node and sets the options appropriate.
|
inlinevirtual |
Replaces a node with another one.
index | the index of the node that will be replaced. Note: The node children are indexed from [1..size]! |
node | the replacement XMPNode |
|
inlinevirtual |
Updates the options of the node.
options | the options to set. |
|
inlinepackagevirtual |
Sets the parent node, this is solely done by
addChild(...)
and addQualifier()
.
parent | Sets the parent node. |
|
inlinevirtual |
Sorts the complete datamodel according to the rules.
Sorts the complete datamodel according to the following rules: