com.vinculumtech.carrierwave.docmodel
Class ImageNode

java.lang.Object
  extended bycom.vinculumtech.platform.docmodel.Node
      extended bycom.vinculumtech.carrierwave.docmodel.ImageNode

public class ImageNode
extends Node

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/carrierwave/docmodel/ImageNode.java#11 $

Field Summary
static java.lang.String METADATA_DEPENDENT
           
static java.lang.String METADATA_LITERAL
           
static java.lang.String METADATA_READONLY
           
 
Fields inherited from class com.vinculumtech.platform.docmodel.Node
EMPTY_LIST, METADATA_DECLARED_TYPE
 
Constructor Summary
ImageNode(DocumentModel documentModel, java.lang.Object value)
           
 
Method Summary
protected  java.util.List createLocalPaths()
          Returns an Unmodifiable List of paths to local children values.
protected  java.util.List createLocalPathsInternal()
           
 java.lang.Object getDefaultValueAtLocal(java.lang.String path)
           
protected  boolean[] getDependentEdges()
           
protected  java.lang.String[] getEdges()
           
protected  java.lang.Class getEdgeType(java.lang.String path)
           
protected  java.lang.String[] getLiterals()
           
protected  java.lang.Class getLiteralType(java.lang.String path)
           
protected  java.lang.Object getMetaDataAtLocalInternal(java.lang.String path, java.lang.String identifier, boolean delegatedByChildCollection)
          Should be overriden by subclass
protected  boolean[] getReadOnlyEdges()
           
protected  boolean[] getReadOnlyLiterals()
           
protected  java.lang.Object getValueAtLocalInternal(java.lang.String path)
          Should be overriden by subclass
 boolean isChildrenAsIcons()
           
 boolean isDependent()
           
protected  boolean isDependent(java.lang.String path)
          Returns true if the localPath represents a literal value or if the Image type is dependent.
protected  boolean isIcon()
           
 boolean isIgnoreReadOnly()
           
protected  boolean isLiteral(java.lang.String path)
          Returns true if the localPath represents a literal value
protected  boolean isReadOnly(java.lang.String path)
           
 void setChildrenAsIcons(boolean childrenAsIcons)
          Tells the node to only return Icons as values for non-dependent children types.
 void setIgnoreReadOnly(boolean ignoreReadOnly)
           
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, getDocumentModel, getLocalPathMap, getLocalPaths, getMetaDataAt, getMetaDataAtLocal, getNodeListeners, getNodeValue, getPathMap, getPathMap, getPathMap, getValueAt, getValueAt, getValueAtLocal, hasNodeListener, hasNodeListeners, isCollectionNode, isDeleted, isFindMetaDataInCollectionParent, makeCoercedValue, makePath, 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

METADATA_READONLY

public static final java.lang.String METADATA_READONLY
See Also:
Constant Field Values

METADATA_DEPENDENT

public static final java.lang.String METADATA_DEPENDENT
See Also:
Constant Field Values

METADATA_LITERAL

public static final java.lang.String METADATA_LITERAL
See Also:
Constant Field Values
Constructor Detail

ImageNode

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

isIcon

protected boolean isIcon()

isIgnoreReadOnly

public boolean isIgnoreReadOnly()

setIgnoreReadOnly

public void setIgnoreReadOnly(boolean ignoreReadOnly)

isChildrenAsIcons

public boolean isChildrenAsIcons()

setChildrenAsIcons

public void setChildrenAsIcons(boolean childrenAsIcons)
Tells the node to only return Icons as values for non-dependent children types.


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

getDefaultValueAtLocal

public java.lang.Object getDefaultValueAtLocal(java.lang.String path)
Overrides:
getDefaultValueAtLocal 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

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

createLocalPathsInternal

protected java.util.List createLocalPathsInternal()

isLiteral

protected boolean isLiteral(java.lang.String path)
Returns true if the localPath represents a literal value


isDependent

protected boolean isDependent(java.lang.String path)
Returns true if the localPath represents a literal value or if the Image type is dependent.


isReadOnly

protected boolean isReadOnly(java.lang.String path)

getEdgeType

protected java.lang.Class getEdgeType(java.lang.String path)

getLiteralType

protected java.lang.Class getLiteralType(java.lang.String path)

getLiterals

protected java.lang.String[] getLiterals()

getReadOnlyLiterals

protected boolean[] getReadOnlyLiterals()

getEdges

protected java.lang.String[] getEdges()

getReadOnlyEdges

protected boolean[] getReadOnlyEdges()

getDependentEdges

protected boolean[] getDependentEdges()


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