|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INode
Interface that all Nodes implement. Currently, there are two implementations: Transient nodes which only exist in memory, and persistent Nodes, which are stored in a database (either the internal Object DB or an external relational DB).
Field Summary |
---|
Fields inherited from interface helma.objectmodel.INodeState |
---|
CLEAN, DELETED, INVALID, MODIFIED, NEW, TRANSIENT, VIRTUAL |
Method Summary | |
---|---|
INode |
addNode(INode node)
Add a child node to this node. |
INode |
addNode(INode node,
int where)
Add a child node to this node at the given position |
void |
clearCacheNode()
Clear the cache node associated with this node. |
int |
contains(INode node)
Returns the position of the child or -1. |
long |
created()
Get the node's creation timestamp. |
INode |
createNode(java.lang.String name)
Create a new named property with a node value |
INode |
createNode(java.lang.String name,
int where)
Create a new unnamed child node at the given position. |
IProperty |
get(java.lang.String name)
Get a property with the given name. |
boolean |
getBoolean(java.lang.String name)
Get a boolean property with the given name. |
INode |
getCacheNode()
Get the cache node associated with this node. |
java.util.Date |
getDate(java.lang.String name)
Get a date property with the given name. |
DbMapping |
getDbMapping()
Get the node's DbMapping . |
double |
getFloat(java.lang.String name)
Get a float property with the given name. |
java.lang.String |
getID()
Get the node's ID. |
long |
getInteger(java.lang.String name)
Get an integer property with the given name. |
java.lang.Object |
getJavaObject(java.lang.String name)
Get a Java object property with the given name. |
java.lang.String |
getName()
Get the node's name. |
INode |
getNode(java.lang.String name)
Get a node property with the given name. |
INode |
getParent()
Get the node's parent node. |
java.lang.String |
getPath()
Get the node's path. |
java.lang.String |
getPrototype()
Return the node's prototype name. |
int |
getState()
Get the node's state flag. |
java.lang.String |
getString(java.lang.String name)
Get a string property with the given name. |
INode |
getSubnode(java.lang.String name)
Get a named child node with the given name or id. |
INode |
getSubnodeAt(int index)
GEt an unnamed child node at the given position |
java.lang.String |
getSubnodeRelation()
Get the node's explicit subnode select clause if one was set, or null |
java.util.Enumeration |
getSubnodes()
Get an enumeration of this node's unnamed child nodes |
boolean |
isAnonymous()
Returns true if this node is an unnamed node. |
long |
lastModified()
Get the node's last modification timestamp. |
int |
numberOfNodes()
Get the number the node's direct child nodes. |
java.util.Enumeration |
properties()
Get an enumeration over the node's properties. |
boolean |
remove()
Remove this node from the database. |
void |
removeNode(INode node)
Remove the given node from this node's child nodes. |
void |
setBoolean(java.lang.String name,
boolean value)
Set the property with the given name to the given boolean value. |
void |
setDate(java.lang.String name,
java.util.Date value)
Set the property with the given name to the given date value. |
void |
setDbMapping(DbMapping dbmap)
Set the node's DbMapping . |
void |
setFloat(java.lang.String name,
double value)
Set the property with the given name to the given float value. |
void |
setInteger(java.lang.String name,
long value)
Set the property with the given name to the given integer value. |
void |
setJavaObject(java.lang.String name,
java.lang.Object value)
Set the property with the given name to the given Java object value. |
void |
setName(java.lang.String name)
Set the node's name. |
void |
setNode(java.lang.String name,
INode value)
Set the property with the given name to the given node value. |
void |
setPrototype(java.lang.String prototype)
Set the node's prototype name. |
void |
setState(int s)
Set the node's state flag. |
void |
setString(java.lang.String name,
java.lang.String value)
Set the property with the given name to the given string value. |
void |
setSubnodeRelation(java.lang.String clause)
Set an explicit select clause for the node's subnodes |
void |
unset(java.lang.String name)
Unset the property with the given name.. |
Methods inherited from interface helma.framework.IPathElement |
---|
getChildElement, getElementName, getParentElement |
Method Detail |
---|
java.lang.String getID()
java.lang.String getName()
void setDbMapping(DbMapping dbmap)
DbMapping
.
DbMapping getDbMapping()
DbMapping
.
int getState()
INodeState
interface.void setState(int s)
s
- one of the constants defined in the INodeState
interface.void setName(java.lang.String name)
long lastModified()
long created()
boolean isAnonymous()
java.lang.String getPrototype()
getPrototype
in interface IPathElement
void setPrototype(java.lang.String prototype)
INode getCacheNode()
void clearCacheNode()
java.lang.String getPath()
INode getParent()
void setSubnodeRelation(java.lang.String clause)
java.lang.String getSubnodeRelation()
int numberOfNodes()
INode addNode(INode node)
INode addNode(INode node, int where)
INode createNode(java.lang.String name)
INode createNode(java.lang.String name, int where)
java.util.Enumeration getSubnodes()
INode getSubnode(java.lang.String name)
INode getSubnodeAt(int index)
int contains(INode node)
boolean remove()
void removeNode(INode node)
java.util.Enumeration properties()
IProperty get(java.lang.String name)
java.lang.String getString(java.lang.String name)
boolean getBoolean(java.lang.String name)
java.util.Date getDate(java.lang.String name)
long getInteger(java.lang.String name)
double getFloat(java.lang.String name)
INode getNode(java.lang.String name)
java.lang.Object getJavaObject(java.lang.String name)
void setString(java.lang.String name, java.lang.String value)
void setBoolean(java.lang.String name, boolean value)
void setDate(java.lang.String name, java.util.Date value)
void setInteger(java.lang.String name, long value)
void setFloat(java.lang.String name, double value)
void setNode(java.lang.String name, INode value)
void setJavaObject(java.lang.String name, java.lang.Object value)
void unset(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |