| java.lang.Object org.mmbase.bridge.util.AbstractNode org.mmbase.bridge.util.MapNode
MapNode | public class MapNode extends AbstractNode implements Node(Code) | | A bridge Node based on a Map. It can come in handy sometimes to be able to present any Map as an
MMBase Node. E.g. because then it can be accessed in MMBase taglib using mm:field tags.
author: Michiel Meeuwissen version: $Id: MapNode.java,v 1.11 2008/02/03 17:33:56 nklasens Exp $ since: MMBase-1.8 |
Constructor Summary | |
public | MapNode(Map<String, ?> v, NodeManager nm) This constructor explicitely specifies the node manager of the Node. | public | MapNode(Map v, Cloud cloud) A node with a 'virtual' nodemanager will be constructed. | public | MapNode(Map v) This allows you to create a Node object even without having a Cloud object. |
Method Summary | |
public void | cancel() | public void | commit() | public int | countRelatedNodes(NodeManager otherNodeManager, String role, String direction) | public int | countRelatedNodes(String type) | public void | createAlias(String aliasName) | public Relation | createRelation(Node destinationNode, RelationManager relationManager) | protected static NodeManager | createVirtualNodeManager(Cloud cloud, Map map) | public void | delete(boolean deleteRelations) | public void | deleteAlias(String aliasName) | public void | deleteRelations(String type) | protected void | edit(int i) | public StringList | getAliases() | public Cloud | getCloud() | public String | getContext() | public Collection<Function<?>> | getFunctions() | protected Function | getNodeFunction(String functionName) | public NodeManager | getNodeManager() | public int | getNumber() | public StringList | getPossibleContexts() | public NodeList | getRelatedNodes(NodeManager nodeManager, String role, String searchDir) | public RelationList | getRelations(String role, NodeManager nodeManager, String searchDir) | public RelationList | getRelations(String role, String nodeManager) | public long | getSize(String fieldName) | public Object | getValueWithoutProcess(String fieldName) | public boolean | hasRelations() | public boolean | isChanged(String fieldName) | public boolean | isChanged() | public boolean | isNew() | public boolean | isNull(String fieldName) | public boolean | mayChangeContext() | public boolean | mayDelete() | public boolean | mayWrite() | public void | setContext(String context) | protected void | setSize(String fieldName, long size) | public void | setValueWithoutChecks(String fieldName, Object value) | public void | setValueWithoutProcess(String fieldName, Object value) | public String | toString() |
nodeManager | final protected NodeManager nodeManager(Code) | | This is normally, but not always, a VirtualBuilder. It is not for some builders which have
besides real nodes also virtual nodes, like typedef (cluster nodes) and typerel (allowed relations because of inheritance).
|
MapNode | public MapNode(Map<String, ?> v, NodeManager nm)(Code) | | This constructor explicitely specifies the node manager of the Node. This is used for {#getNodeManager} and {#getCloud}.
|
MapNode | public MapNode(Map v, Cloud cloud)(Code) | | A node with a 'virtual' nodemanager will be constructed. This virtual node manager will have
fields which are guessed based on the keys and values of the given map.
|
MapNode | public MapNode(Map v)(Code) | | This allows you to create a Node object even without having a Cloud object. 'Class' security
is used to acquire a Cloud, because every bridge node must be associated with some Cloud
object.
|
cancel | public void cancel()(Code) | | |
commit | public void commit()(Code) | | |
countRelatedNodes | public int countRelatedNodes(String type)(Code) | | |
delete | public void delete(boolean deleteRelations)(Code) | | |
edit | protected void edit(int i)(Code) | | |
getNumber | public int getNumber()(Code) | | |
hasRelations | public boolean hasRelations()(Code) | | |
isChanged | public boolean isChanged()(Code) | | |
isNew | public boolean isNew()(Code) | | |
mayChangeContext | public boolean mayChangeContext()(Code) | | |
mayDelete | public boolean mayDelete()(Code) | | |
mayWrite | public boolean mayWrite()(Code) | | |
setSize | protected void setSize(String fieldName, long size)(Code) | | |
setValueWithoutChecks | public void setValueWithoutChecks(String fieldName, Object value)(Code) | | |
setValueWithoutProcess | public void setValueWithoutProcess(String fieldName, Object value)(Code) | | |
Methods inherited from org.mmbase.bridge.util.AbstractNode | public void cancel()(Code)(Java Doc) protected void checkWrite()(Code)(Java Doc) public void commit()(Code)(Java Doc) final public int compareTo(Node o)(Code)(Java Doc) public int countRelatedNodes(NodeManager otherNodeManager, String role, String direction)(Code)(Java Doc) public int countRelatedNodes(String type)(Code)(Java Doc) final public int countRelations()(Code)(Java Doc) final public int countRelations(String type)(Code)(Java Doc) public void createAlias(String aliasName)(Code)(Java Doc) protected FieldValue createFunctionValue(Object result)(Code)(Java Doc) public Parameters createParameters(String functionName)(Code)(Java Doc) public Relation createRelation(Node destinationNode, RelationManager relationManager)(Code)(Java Doc) final public void delete()(Code)(Java Doc) public void delete(boolean deleteRelations)(Code)(Java Doc) public void deleteAlias(String aliasName)(Code)(Java Doc) final public void deleteRelations()(Code)(Java Doc) public void deleteRelations(String type) throws NotFoundException(Code)(Java Doc) final public boolean equals(Object o)(Code)(Java Doc) public StringList getAliases()(Code)(Java Doc) public boolean getBooleanValue(String fieldName)(Code)(Java Doc) public byte[] getByteValue(String fieldName)(Code)(Java Doc) public Set<String> getChanged()(Code)(Java Doc) public String getContext()(Code)(Java Doc) public Date getDateValue(String fieldName)(Code)(Java Doc) public double getDoubleValue(String fieldName)(Code)(Java Doc) final public FieldValue getFieldValue(String fieldName) throws NotFoundException(Code)(Java Doc) final public FieldValue getFieldValue(Field field)(Code)(Java Doc) public float getFloatValue(String fieldName)(Code)(Java Doc) final public Function> getFunction(String functionName)(Code)(Java Doc) public FieldValue getFunctionValue(String functionName, List parameters)(Code)(Java Doc) public java.io.InputStream getInputStreamValue(String fieldName)(Code)(Java Doc) public int getIntValue(String fieldName)(Code)(Java Doc) public List getListValue(String fieldName)(Code)(Java Doc) public long getLongValue(String fieldName)(Code)(Java Doc) protected Function> getNodeFunction(String functionName)(Code)(Java Doc) public Node getNodeValue(String fieldName)(Code)(Java Doc) public int getNumber()(Code)(Java Doc) final public Object getObjectValue(String fieldName)(Code)(Java Doc) public StringList getPossibleContexts()(Code)(Java Doc) final public NodeList getRelatedNodes()(Code)(Java Doc) final public NodeList getRelatedNodes(String type)(Code)(Java Doc) final public NodeList getRelatedNodes(NodeManager nodeManager)(Code)(Java Doc) final public NodeList getRelatedNodes(String type, String role, String searchDir)(Code)(Java Doc) public NodeList getRelatedNodes(NodeManager nodeManager, String role, String searchDir)(Code)(Java Doc) final public RelationList getRelations()(Code)(Java Doc) final public RelationList getRelations(String role)(Code)(Java Doc) final public RelationList getRelations(String role, NodeManager nodeManager)(Code)(Java Doc) public RelationList getRelations(String role, NodeManager nodeManager, String searchDir) throws NotFoundException(Code)(Java Doc) public RelationList getRelations(String role, String nodeManager) throws NotFoundException(Code)(Java Doc) public String getStringValue(String fieldName)(Code)(Java Doc) final public Object getValue(String fieldName)(Code)(Java Doc) public Document getXMLValue(String fieldName)(Code)(Java Doc) final public Element getXMLValue(String fieldName, Document tree)(Code)(Java Doc) public boolean hasRelations()(Code)(Java Doc) final public int hashCode()(Code)(Java Doc) public boolean isChanged(String fieldName)(Code)(Java Doc) public boolean isChanged()(Code)(Java Doc) public boolean isNew()(Code)(Java Doc) public boolean isNodeManager()(Code)(Java Doc) public boolean isNull(String fieldName)(Code)(Java Doc) public boolean isRelation()(Code)(Java Doc) public boolean isRelationManager()(Code)(Java Doc) public boolean mayChangeContext()(Code)(Java Doc) public boolean mayDelete()(Code)(Java Doc) public boolean mayWrite()(Code)(Java Doc) final public void processCommit()(Code)(Java Doc) protected Object processNull(int type, Field field)(Code)(Java Doc) final public void setBooleanValue(String fieldName, boolean value)(Code)(Java Doc) final public void setByteValue(String fieldName, byte[] value)(Code)(Java Doc) public void setContext(String context)(Code)(Java Doc) final public void setDateValue(String fieldName, Date value)(Code)(Java Doc) final public void setDoubleValue(String fieldName, double value)(Code)(Java Doc) final public void setFloatValue(String fieldName, float value)(Code)(Java Doc) final public void setInputStreamValue(String fieldName, InputStream value, long size)(Code)(Java Doc) final public void setIntValue(String fieldName, int value)(Code)(Java Doc) final public void setListValue(String fieldName, List value)(Code)(Java Doc) final public void setLongValue(String fieldName, long value)(Code)(Java Doc) final public void setNodeValue(String fieldName, Node value)(Code)(Java Doc) final public void setObjectValue(String fieldName, Object value)(Code)(Java Doc) abstract protected void setSize(String fieldName, long size)(Code)(Java Doc) final public void setStringValue(String fieldName, String value)(Code)(Java Doc) final public void setValue(String fieldName, Object value)(Code)(Java Doc) abstract protected void setValueWithoutChecks(String fieldName, Object value)(Code)(Java Doc) public void setValueWithoutProcess(String fieldName, Object value)(Code)(Java Doc) final public void setXMLValue(String fieldName, Document value)(Code)(Java Doc) public NodeManager toNodeManager()(Code)(Java Doc) protected Integer toNodeNumber(Object v)(Code)(Java Doc) public Relation toRelation()(Code)(Java Doc) public RelationManager toRelationManager()(Code)(Java Doc) public Collection<String> validate()(Code)(Java Doc)
|
|
|