NodeInherited from Item
Item::$name
Item::$path
Item::$pm
Item::$value
Item::$workspace
Creates a new node at $path.
The new node will be persisted immediately. Strictly speaking, the parameter is actually a relative path to the parent node of the node to be added, appended with the name desired for the new node (if the a node is being added directly below this node then only the name need be specified). An ItemExistsException will be thrown immediately if an item at the specified path already exists. A PathNotFoundException will be thrown immediately if the specified path implies intermediary nodes that do not exist.
Returns the node at $path relative to this node.
A PathNotFoundException will be thrown immediately if no node exists at the specified path.
Returns a NodeIterator over all child Nodes of this Node.
Does not include properties of this Node. The same reacquisition semantics apply as with getNode(String). If this node has no child nodes, then an empty iterator is returned.
Returns all properties of this node.
Returns a PropertyIterator over all properties of this node. Does not include child nodes of this node. The same reacquisition semantics apply as with getProperty(String). If this node has no properties, then an empty iterator is returned.
Returns the property at $path relative to this node.
The same reacquisition semantics apply as with getNode(String).
Returns all reference properties that refer to this node.
Returns a PropertyIterator over all properties that refer to this node. If this node is not referenced, then an empty iterator is returned.
Indicates whether a node exists at $path.
Returns true if a node exists at $path and false otherwise.
Indicates whether this node has child nodes.
Returns true if this node has one or more child nodes; false otherwise.
Indicates whether this node has properties.
Returns true if this node has one or more properties; false otherwise.
Indicates whether a property exists at $path.
Returns true if a property exists at $path and false otherwise.
Indicates whether this node has been referenced.
Returns true if this node has been referenced; false otherwise.
Returns true if this node holds a lock; otherwise returns false.
To hold a lock means that this node has actually had a lock placed on it specifically.
Places a lock on this node.
If successful, this node is said to hold the lock. If this node is already locked, a LockException is thrown.
Sets the specified property to the specified value.
If the property does not yet exist, it is created. A best-effort data type conversion/persistence is attempted. Passing a null as the second parameter removes the property. It is equivalent to calling remove on the Property object itself. For example, N.setProperty("P", null) would remove property called "P" of the node in N. A LockException will be thrown immediately if a lock prevents the setting of the property.
Removes the lock on this node.
These changes are persisted automatically. If this node does not currently hold a lock, then a LockException is thrown.
Inherited From Item
Item::__construct()
Item::getAncestor()
Item::getDepth()
Item::getName()
Item::getParent()
Item::getPath()
Item::isNode()
Item::isSame()
Item::remove()
Item::toNode()
Item::toProperty()
Documentation generated on Sun, 04 Oct 2009 07:13:10 +0800 by phpDocumentor 1.4.3