Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
MatrixTreeNode Class Reference
Inheritance diagram for MatrixTreeNode:
ExpandingNode LoadingNode ExpandingNextNode ExpandingPreviousNode

Public Member Functions

 MatrixTreeNode (Asset asset, String linkid, int linkType, String url, String webPath, String name, int sort_order)
 
String toString ()
 
void setName (String name)
 
String getName ()
 
void setSortOrder (int sort_order)
 
int getSortOrder ()
 
Asset getAsset ()
 
int getLinkType ()
 
void setLinkType (int linkType)
 
String getLinkid ()
 
boolean isShadowAsset ()
 
boolean isLeaf ()
 
String getURL ()
 
boolean hasChildWithLinkid (String linkid)
 
MatrixTreeNode getChildWithLinkid (String linkid)
 
void propagateUrl (String url)
 
void propagateWebPath (String webPath)
 
String getAssetPath ()
 
String getLinkPath ()
 
boolean hasPreviousNode ()
 
boolean hasNextNode ()
 

Protected Attributes

String name
 

Detailed Description

MatrixTreeNode is a tree node that uniqually identifies an Asset in its specific location in the tree. An MatrixTreeNode is identified by an asset and a linkid

Author
Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Definition at line 32 of file MatrixTreeNode.java.

Constructor & Destructor Documentation

MatrixTreeNode ( Asset  asset,
String  linkid,
int  linkType,
String  url,
String  webPath,
String  name,
int  sort_order 
)
inline

Constructs a new Asset Tree Node and sets the user object to the specified asset

Parameters
assetthe asset that represents this node
linkidthe linkid of this node

Definition at line 61 of file MatrixTreeNode.java.

Member Function Documentation

Asset getAsset ( )
inline

Returns the asset that represents this node

Returns
the asset

Definition at line 97 of file MatrixTreeNode.java.

String getAssetPath ( )
inline

Returns a comma separated list of assetids from the root node where this node is the last assetid in the list

Parameters
nodethe node of the wanted asset path
Returns
the command separated asset path
See Also
getLinkPath()

Definition at line 201 of file MatrixTreeNode.java.

String getLinkid ( )
inline

Returns the linkid to the parent asset of this node

Returns
the linkid

Definition at line 114 of file MatrixTreeNode.java.

String getLinkPath ( )
inline

Returns a comma separated list of linkids from the root node where this node is the last linkid in the list

Parameters
nodethe tree node of the wanted link path
Returns
the link path for the specifed tree node
See Also
getAssetPath()

Definition at line 217 of file MatrixTreeNode.java.

String getURL ( )
inline

Returns the preview URL of this node

Returns
the preview URL of this node

Definition at line 141 of file MatrixTreeNode.java.

boolean hasChildWithLinkid ( String  linkid)
inline

Returns TRUE if this node has a child with the specified linkid. It is not possible for a MatrixTreeNode to have more than 1 child with the same linkid

Parameters
linkidthe linkid of the child to chech for
Returns
TRUE if this node has a child with the specified linkid

Definition at line 158 of file MatrixTreeNode.java.

boolean hasNextNode ( )
inline

Return true if this node has next node as its last child

Definition at line 242 of file MatrixTreeNode.java.

boolean hasPreviousNode ( )
inline

Return true if this node has previous node as its first child

Definition at line 229 of file MatrixTreeNode.java.

boolean isLeaf ( )
inline

Returns TRUE if this node is a leaf

Returns
TRUE if this node is a leaf

Definition at line 127 of file MatrixTreeNode.java.


The documentation for this class was generated from the following file: