com.vinculumtech.platform.docmodel
Class ListNode

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

public class ListNode
extends Node

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

Field Summary
static java.lang.String APPEND_LIST
          If used as the index, the value will be appended to the list.
static java.lang.String APPEND_LIST_PATH
          Convenience constant
static java.lang.String CLEAN_LIST
          If used as the index, all null values in the list will be removed;
static java.lang.String CLEAN_LIST_PATH
          Convenience constant
static java.lang.String CLEAR_LIST
          If used as the index, this list will be cleared.
static java.lang.String CLEAR_LIST_PATH
          Convenience constant
 
Fields inherited from class com.vinculumtech.platform.docmodel.Node
EMPTY_LIST, METADATA_DECLARED_TYPE
 
Constructor Summary
ListNode(DocumentModel documentModel, java.lang.Object value)
           
 
Method Summary
protected  void cleanList(java.util.List list)
           
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

APPEND_LIST

public static final java.lang.String APPEND_LIST
If used as the index, the value will be appended to the list. To support multiple adds, you can append an index to the token. For example, "+0" and "+1".

See Also:
Constant Field Values

CLEAN_LIST

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

See Also:
Constant Field Values

CLEAR_LIST

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

See Also:
Constant Field Values

APPEND_LIST_PATH

public static final java.lang.String APPEND_LIST_PATH
Convenience constant

See Also:
Constant Field Values

CLEAN_LIST_PATH

public static final java.lang.String CLEAN_LIST_PATH
Convenience constant

See Also:
Constant Field Values

CLEAR_LIST_PATH

public static final java.lang.String CLEAR_LIST_PATH
Convenience constant

See Also:
Constant Field Values
Constructor Detail

ListNode

public ListNode(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

cleanList

protected void cleanList(java.util.List list)


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