|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.platform.docmodel.Node
Field Summary | |
protected static java.util.List |
EMPTY_LIST
|
static java.lang.String |
METADATA_DECLARED_TYPE
|
Constructor Summary | |
protected |
Node(DocumentModel documentModel,
java.lang.Object value)
For now all subclasses must use this signature on the only ctor |
Method Summary | |
void |
addNodeListener(NodeListener nodeListener)
|
void |
applyPathMap(java.util.Map pathMap)
|
java.util.Map |
createLocalPathMap()
|
protected abstract java.util.List |
createLocalPaths()
Returns an Unmodifiable List of paths to local children values. |
protected java.lang.Class |
getDeclaredFieldType(java.lang.String path)
|
java.lang.Object |
getDefaultNodeValue()
|
java.lang.Object |
getDefaultValueAtLocal(java.lang.String path)
|
DocumentModel |
getDocumentModel()
|
java.util.Map |
getLocalPathMap()
|
java.util.List |
getLocalPaths()
|
java.lang.Object |
getMetaDataAt(java.lang.String path,
java.lang.String identifier)
Returns the Class for the position specified by the given path. |
protected java.lang.Object |
getMetaDataAtLocal(java.lang.String path,
java.lang.String identifier,
boolean delegatedByChildCollection)
|
protected abstract java.lang.Object |
getMetaDataAtLocalInternal(java.lang.String path,
java.lang.String identifier,
boolean delegatedByChildCollection)
Should be overriden by subclass |
java.util.List |
getNodeListeners()
|
java.lang.Object |
getNodeValue()
|
java.util.Map |
getPathMap(int depth,
boolean dependentsInclusive)
|
java.util.Map |
getPathMap(int depth,
boolean dependentsInclusive,
boolean leavesOnly)
|
java.util.Map |
getPathMap(int depth,
boolean dependentsInclusive,
boolean leavesOnly,
java.lang.String matches)
A depth of 1 returns localChildren paths and thier values only only. |
java.lang.Object |
getValueAt(java.lang.String path)
|
java.lang.Object |
getValueAt(java.lang.String path,
boolean returnDefaultOnNull)
|
protected java.lang.Object |
getValueAtLocal(java.lang.String path)
|
protected abstract java.lang.Object |
getValueAtLocalInternal(java.lang.String path)
Should be overriden by subclass |
boolean |
hasNodeListener(NodeListener nodeListener)
|
boolean |
hasNodeListeners()
|
boolean |
isCollectionNode()
|
boolean |
isDeleted()
|
abstract boolean |
isDependent()
|
boolean |
isFindMetaDataInCollectionParent()
|
protected java.lang.Object |
makeCoercedValue(java.lang.String path,
java.lang.Object value)
|
protected java.lang.String |
makePath(java.lang.String pathRoot,
java.lang.String currentPath)
|
void |
markDeleted()
|
void |
removeNodeListener(NodeListener nodeListener)
|
void |
setDocumentModel(DocumentModel documentModel)
|
void |
setFindMetaDataInCollectionParent(boolean findMetaDataInCollectionParent)
|
void |
setIsDeleted(boolean isDeleted)
|
protected void |
setLocalPaths(java.util.List localPaths)
|
void |
setNodeValue(java.lang.Object nodeValue)
|
java.lang.Object |
setValueAt(java.lang.String path,
java.lang.Object value)
|
protected java.lang.Object |
setValueAtLocal(java.lang.String path,
java.lang.Object value)
|
protected abstract java.lang.Object |
setValueAtLocalInternal(java.lang.String path,
java.lang.Object value)
Should be overriden by subclass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String METADATA_DECLARED_TYPE
protected static final java.util.List EMPTY_LIST
Constructor Detail |
protected Node(DocumentModel documentModel, java.lang.Object value)
Method Detail |
public boolean isFindMetaDataInCollectionParent()
public void setFindMetaDataInCollectionParent(boolean findMetaDataInCollectionParent)
public DocumentModel getDocumentModel()
public void setDocumentModel(DocumentModel documentModel)
public java.lang.Object getNodeValue()
public void setNodeValue(java.lang.Object nodeValue)
public java.lang.Object getDefaultNodeValue()
public boolean isCollectionNode()
public java.util.List getLocalPaths()
protected void setLocalPaths(java.util.List localPaths)
public java.util.Map getLocalPathMap()
protected abstract java.util.List createLocalPaths()
public abstract boolean isDependent()
public boolean isDeleted()
public void markDeleted()
public void setIsDeleted(boolean isDeleted)
public java.lang.Object getValueAt(java.lang.String path)
public java.lang.Object getValueAt(java.lang.String path, boolean returnDefaultOnNull)
protected final java.lang.Object getValueAtLocal(java.lang.String path)
protected abstract java.lang.Object getValueAtLocalInternal(java.lang.String path)
public java.lang.Object getDefaultValueAtLocal(java.lang.String path)
public java.lang.Object getMetaDataAt(java.lang.String path, java.lang.String identifier)
protected final java.lang.Object getMetaDataAtLocal(java.lang.String path, java.lang.String identifier, boolean delegatedByChildCollection)
protected abstract java.lang.Object getMetaDataAtLocalInternal(java.lang.String path, java.lang.String identifier, boolean delegatedByChildCollection)
public java.lang.Object setValueAt(java.lang.String path, java.lang.Object value)
protected final java.lang.Object setValueAtLocal(java.lang.String path, java.lang.Object value)
protected java.lang.Object makeCoercedValue(java.lang.String path, java.lang.Object value)
protected abstract java.lang.Object setValueAtLocalInternal(java.lang.String path, java.lang.Object value)
public void applyPathMap(java.util.Map pathMap)
public java.util.Map getPathMap(int depth, boolean dependentsInclusive)
public java.util.Map getPathMap(int depth, boolean dependentsInclusive, boolean leavesOnly, java.lang.String matches)
public java.util.Map getPathMap(int depth, boolean dependentsInclusive, boolean leavesOnly)
protected java.lang.String makePath(java.lang.String pathRoot, java.lang.String currentPath)
public java.util.Map createLocalPathMap()
protected java.lang.Class getDeclaredFieldType(java.lang.String path)
public boolean hasNodeListeners()
public java.util.List getNodeListeners()
public boolean hasNodeListener(NodeListener nodeListener)
public void addNodeListener(NodeListener nodeListener)
public void removeNodeListener(NodeListener nodeListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |