|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.bridge.util.AbstractNode
org.mmbase.bridge.implementation.VirtualNode
public class VirtualNode
Implementation of Node. Simply wraps virtual node of core into an bridge Node. This class can be
used even if you don't know the precise implementation of the Cloud object (in contradiction to BasicNode, and therefore has a public constructor
VirtualNode(org.mmbase.module.core.VirtualNode, Cloud).
Node,
VirtualNode,
Serialized FormBasicNode. They probably should share an ancestor (AbstractBasicNode or so). (MMB-1870)| Field Summary | |
|---|---|
protected Cloud |
cloud
|
protected NodeManager |
nodeManager
This is normally, but not always, a VirtualBuilder. |
protected VirtualNode |
noderef
|
| Fields inherited from interface org.mmbase.bridge.Node |
|---|
CLOUD_COMMITNODE_KEY |
| Constructor Summary | |
|---|---|
protected |
VirtualNode(Cloud cloud,
VirtualNode node,
NodeManager nm)
|
|
VirtualNode(Map<String,?> values,
Cloud cloud)
Makes a Node from a map of values. |
|
VirtualNode(VirtualNode node,
Cloud cloud)
|
| Method Summary | |
|---|---|
protected FieldValue |
createFunctionValue(Object result)
|
Parameters |
createParameters(String functionName)
|
protected void |
edit(int action)
|
protected org.mmbase.bridge.implementation.VirtualNode.NodeAndField |
getActualNodeForField(String fieldName)
|
boolean |
getBooleanValue(String fieldName)
|
byte[] |
getByteValue(String fieldName)
|
Cloud |
getCloud()
|
Date |
getDateValue(String fieldName)
|
double |
getDoubleValue(String fieldName)
|
float |
getFloatValue(String fieldName)
|
Collection<Function<?>> |
getFunctions()
|
InputStream |
getInputStreamValue(String fieldName)
|
int |
getIntValue(String fieldName)
|
List |
getListValue(String fieldName)
|
long |
getLongValue(String fieldName)
|
protected MMObjectNode |
getNode()
Obtains a reference to the underlying MMObjectNode. |
protected Function<?> |
getNodeFunction(String functionName)
|
NodeManager |
getNodeManager()
|
VirtualNode |
getNodeRef()
Returns the MMObjectNode on which the VirtualNode was based |
Node |
getNodeValue(String fieldName)
Returns the Node value of a certain field, but in the case of a VirtualNode this can also occasionally be null
because the node can have been deleted. |
int |
getNumber()
|
long |
getSize(String fieldName)
|
String |
getStringValue(String fieldName)
|
Object |
getValueWithoutProcess(String fieldName)
|
protected static VirtualNode |
getVirtualNode(Map<String,?> values)
|
Document |
getXMLValue(String fieldName)
|
boolean |
isNodeManager()
|
boolean |
isNull(String fieldName)
|
boolean |
isRelation()
|
boolean |
isRelationManager()
|
void |
setSize(String fieldName,
long size)
|
protected void |
setValueWithoutChecks(String fieldName,
Object value)
|
NodeManager |
toNodeManager()
|
Relation |
toRelation()
|
RelationManager |
toRelationManager()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected final VirtualNode noderef
protected transient NodeManager nodeManager
protected final Cloud cloud
| Constructor Detail |
|---|
protected VirtualNode(Cloud cloud,
VirtualNode node,
NodeManager nm)
public VirtualNode(VirtualNode node,
Cloud cloud)
public VirtualNode(Map<String,?> values,
Cloud cloud)
MapNode, which is a complete reimplementation (with no core dependencies).
| Method Detail |
|---|
public String toString()
toString in interface NodetoString in class Objectprotected static VirtualNode getVirtualNode(Map<String,?> values)
public VirtualNode getNodeRef()
public boolean isRelation()
isRelation in interface NodeisRelation in class AbstractNodepublic Relation toRelation()
toRelation in interface NodetoRelation in class AbstractNodepublic boolean isNodeManager()
isNodeManager in interface NodeisNodeManager in class AbstractNodepublic NodeManager toNodeManager()
toNodeManager in interface NodetoNodeManager in class AbstractNodepublic boolean isRelationManager()
isRelationManager in interface NodeisRelationManager in class AbstractNodepublic RelationManager toRelationManager()
toRelationManager in interface NodetoRelationManager in class AbstractNodeprotected final MMObjectNode getNode()
NotFoundException - if no node was specified. This generally means thepublic Cloud getCloud()
getCloud in interface Nodepublic NodeManager getNodeManager()
getNodeManager in interface Nodepublic int getNumber()
getNumber in interface NodegetNumber in class AbstractNodeprotected void edit(int action)
public boolean isNull(String fieldName)
isNull in interface NodeisNull in class AbstractNode
public void setSize(String fieldName,
long size)
setSize in class AbstractNodepublic long getSize(String fieldName)
getSize in interface Nodeprotected org.mmbase.bridge.implementation.VirtualNode.NodeAndField getActualNodeForField(String fieldName)
protected void setValueWithoutChecks(String fieldName,
Object value)
setValueWithoutChecks in class AbstractNodepublic Object getValueWithoutProcess(String fieldName)
getValueWithoutProcess in interface Nodepublic boolean getBooleanValue(String fieldName)
getBooleanValue in interface NodegetBooleanValue in class AbstractNodepublic Date getDateValue(String fieldName)
getDateValue in interface NodegetDateValue in class AbstractNodepublic List getListValue(String fieldName)
getListValue in interface NodegetListValue in class AbstractNodepublic Node getNodeValue(String fieldName)
null
because the node can have been deleted.
getNodeValue in interface NodegetNodeValue in class AbstractNodepublic int getIntValue(String fieldName)
getIntValue in interface NodegetIntValue in class AbstractNodepublic float getFloatValue(String fieldName)
getFloatValue in interface NodegetFloatValue in class AbstractNodepublic long getLongValue(String fieldName)
getLongValue in interface NodegetLongValue in class AbstractNodepublic double getDoubleValue(String fieldName)
getDoubleValue in interface NodegetDoubleValue in class AbstractNodepublic byte[] getByteValue(String fieldName)
getByteValue in interface NodegetByteValue in class AbstractNodepublic InputStream getInputStreamValue(String fieldName)
getInputStreamValue in interface NodegetInputStreamValue in class AbstractNodepublic String getStringValue(String fieldName)
getStringValue in interface NodegetStringValue in class AbstractNodepublic Document getXMLValue(String fieldName)
getXMLValue in interface NodegetXMLValue in class AbstractNodepublic Collection<Function<?>> getFunctions()
getFunctions in interface NodegetFunctions in class AbstractNodeprotected Function<?> getNodeFunction(String functionName)
getNodeFunction in class AbstractNodepublic Parameters createParameters(String functionName)
createParameters in interface NodecreateParameters in class AbstractNodeprotected FieldValue createFunctionValue(Object result)
createFunctionValue in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||