com.vinculumtech.platform.docmodel
Class MapNode

java.lang.Object
  extended bycom.vinculumtech.platform.docmodel.Node
      extended bycom.vinculumtech.platform.docmodel.MapNode

public class MapNode
extends Node

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/platform/docmodel/MapNode.java#6 $

Field Summary
static java.lang.String CLEAN_MAP
          If used as the key, all null values in the list will be removed;
static java.lang.String CLEAN_MAP_PATH
          Convenience constant
static java.lang.String CLEAR_MAP
          If used as the key, this list will be cleared.
static java.lang.String CLEAR_MAP_PATH
          Convenience constant
static java.lang.String REMOVE_MAP
          If used as the prefix to the key, the key will be removed.
 
Fields inherited from class com.vinculumtech.platform.docmodel.Node
EMPTY_LIST, METADATA_DECLARED_TYPE
 
Constructor Summary
MapNode(DocumentModel documentModel, java.lang.Object value)
           
 
Method Summary
protected  void cleanMap(java.util.Map map)
           
protected  java.util.List createLocalPaths()
          Returns an Unmodifiable List of paths to local children values.
protected  java.lang.Object getMetaDataAtLocalInternal(java.lang.String path, java.lang.String identifier, boolean delegatedByChildCollection)
          Should be overriden by subclass
protected  java.lang.Object getValueAtLocalInternal(java.lang.String path)
          Should be overriden by subclass
 boolean isCollectionNode()
           
 boolean isDependent()
           
protected  java.lang.String makePath(java.lang.String pathRoot, java.lang.String currentPath)
           
protected  java.lang.Object setValueAtLocalInternal(java.lang.String path, java.lang.Object value)
          Should be overriden by subclass
 
Methods inherited from class com.vinculumtech.platform.docmodel.Node
addNodeListener, applyPathMap, createLocalPathMap, getDeclaredFieldType, getDefaultNodeValue, getDefaultValueAtLocal, getDocumentModel, getLocalPathMap, getLocalPaths, getMetaDataAt, getMetaDataAtLocal, getNodeListeners, getNodeValue, getPathMap, getPathMap, getPathMap, getValueAt, getValueAt, getValueAtLocal, hasNodeListener, hasNodeListeners, isDeleted, isFindMetaDataInCollectionParent, makeCoercedValue, markDeleted, removeNodeListener, setDocumentModel, setFindMetaDataInCollectionParent, setIsDeleted, setLocalPaths, setNodeValue, setValueAt, setValueAtLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVE_MAP

public static final java.lang.String REMOVE_MAP
If used as the prefix to the key, the key will be removed.

See Also:
Constant Field Values

CLEAN_MAP

public static final java.lang.String CLEAN_MAP
If used as the key, all null values in the list will be removed;

See Also:
Constant Field Values

CLEAR_MAP

public static final java.lang.String CLEAR_MAP
If used as the key, this list will be cleared. Note ! is used because it sorts before any other digit.

See Also:
Constant Field Values

CLEAN_MAP_PATH

public static final java.lang.String CLEAN_MAP_PATH
Convenience constant

See Also:
Constant Field Values

CLEAR_MAP_PATH

public static final java.lang.String CLEAR_MAP_PATH
Convenience constant

See Also:
Constant Field Values
Constructor Detail

MapNode

public MapNode(DocumentModel documentModel,
               java.lang.Object value)
Method Detail

createLocalPaths

protected java.util.List createLocalPaths()
Description copied from class: Node
Returns an Unmodifiable List of paths to local children values.

Specified by:
createLocalPaths in class Node

isCollectionNode

public boolean isCollectionNode()
Overrides:
isCollectionNode in class Node

isDependent

public boolean isDependent()
Specified by:
isDependent in class Node

getValueAtLocalInternal

protected java.lang.Object getValueAtLocalInternal(java.lang.String path)
Description copied from class: Node
Should be overriden by subclass

Specified by:
getValueAtLocalInternal in class Node

getMetaDataAtLocalInternal

protected java.lang.Object getMetaDataAtLocalInternal(java.lang.String path,
                                                      java.lang.String identifier,
                                                      boolean delegatedByChildCollection)
Description copied from class: Node
Should be overriden by subclass

Specified by:
getMetaDataAtLocalInternal in class Node

setValueAtLocalInternal

protected java.lang.Object setValueAtLocalInternal(java.lang.String path,
                                                   java.lang.Object value)
Description copied from class: Node
Should be overriden by subclass

Specified by:
setValueAtLocalInternal in class Node

makePath

protected java.lang.String makePath(java.lang.String pathRoot,
                                    java.lang.String currentPath)
Overrides:
makePath in class Node

cleanMap

protected void cleanMap(java.util.Map map)


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.