SmartFrog 3.10.000

org.smartfrog.services.trace
Class BrowserEntry

java.lang.Object
  extended by org.smartfrog.services.trace.BrowserEntry
All Implemented Interfaces:
Entry

public final class BrowserEntry
extends java.lang.Object
implements Entry

BrowserEntry represents a node in a BrowseTreeModel.


Field Summary
 
Fields inherited from interface org.smartfrog.services.trace.Entry
CRLF
 
Constructor Summary
BrowserEntry()
          Constructor for the BrowserEntry object.
BrowserEntry(java.lang.String DN)
          Constructor for the BrowserEntry object.
 
Method Summary
 void add(java.lang.String msg)
          Adds a new child.
 boolean add(java.lang.String DN, java.lang.Object value)
          Adds a new child.
 java.lang.String attributesString()
          Returns the attributes string.
 java.lang.String childrenString()
          Returns the childern string.
static java.lang.String dumpHashMap(java.util.HashMap hashmap)
          Dumps the hash map.
static java.lang.Object[][] dumpHashMap2Array(java.util.HashMap hashmap)
          Dumps the hash map to array.
 java.util.HashMap getAttributes()
          Gets the attributes attribute of the BrowserEntry object.
 java.lang.Object[][] getAttributesArray()
          Gets the attributesArray attribute of the BrowserEntry object.
 BrowserEntry getChild(int index)
          Gets the child attribute of the BrowserEntry object.
 java.util.HashMap getChildren()
          To Get the children of the entry.
 int getChildrenCount()
          To Get the number of children of the entry.
 java.lang.String getDN()
          Gets the dN attribute of the BrowserEntry object.
 BrowserEntry getEntry(java.lang.String DN, boolean allLevel)
          Search for a particular entry in its children tree.
 java.lang.String getName()
          Gets the name attribute of the BrowserEntry object.
 java.lang.String getParentDN()
          Gets the parentDN attribute of the BrowserEntry object.
 java.lang.String getRDN()
          Gets the rDN attribute of the BrowserEntry object.
 java.lang.String getRoot()
          Gets the root attribute of the BrowserEntry object.
 boolean isLeaf()
          Gets the leaf attribute of the BrowserEntry object.
static void main(java.lang.String[] args)
          The main method.
 boolean remove(java.lang.String DN)
          Removes a child.
 java.lang.String toString()
          Gets the rDN attribute of the BrowserEntry object.
 java.lang.String toStringAll()
          Return a textual representation of the File object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserEntry

public BrowserEntry(java.lang.String DN)
Constructor for the BrowserEntry object.

Parameters:
DN - dN attribute of BrowserEntry object

BrowserEntry

public BrowserEntry()
Constructor for the BrowserEntry object.

Method Detail

add

public void add(java.lang.String msg)
Adds a new child.

Parameters:
msg - message

add

public boolean add(java.lang.String DN,
                   java.lang.Object value)
Adds a new child.

Specified by:
add in interface Entry
Parameters:
DN - dN attribute
value - value
Returns:
if added true else false

remove

public boolean remove(java.lang.String DN)
Removes a child.

Specified by:
remove in interface Entry
Parameters:
DN - dN attribute
Returns:
if removed true else false

isLeaf

public boolean isLeaf()
Gets the leaf attribute of the BrowserEntry object.

Specified by:
isLeaf in interface Entry
Returns:
The leaf value

toString

public java.lang.String toString()
Gets the rDN attribute of the BrowserEntry object.

Specified by:
toString in interface Entry
Overrides:
toString in class java.lang.Object
Returns:
rDN attribute

toStringAll

public java.lang.String toStringAll()
Return a textual representation of the File object.

Returns:
textual representation of the File object

childrenString

public java.lang.String childrenString()
Returns the childern string.

Returns:
children string

attributesString

public java.lang.String attributesString()
Returns the attributes string.

Returns:
attributes string

dumpHashMap

public static java.lang.String dumpHashMap(java.util.HashMap hashmap)
Dumps the hash map.

Parameters:
hashmap - hashmap
Returns:
textual representation of hash map

dumpHashMap2Array

public static java.lang.Object[][] dumpHashMap2Array(java.util.HashMap hashmap)
Dumps the hash map to array.

Parameters:
hashmap - hashmap
Returns:
array of hash map

getRoot

public java.lang.String getRoot()
Gets the root attribute of the BrowserEntry object.

Returns:
The root value

getName

public java.lang.String getName()
Gets the name attribute of the BrowserEntry object.

Specified by:
getName in interface Entry
Returns:
The name value

getRDN

public java.lang.String getRDN()
Gets the rDN attribute of the BrowserEntry object.

Specified by:
getRDN in interface Entry
Returns:
The rDN value

getParentDN

public java.lang.String getParentDN()
Gets the parentDN attribute of the BrowserEntry object.

Specified by:
getParentDN in interface Entry
Returns:
The parentDN value

getDN

public java.lang.String getDN()
Gets the dN attribute of the BrowserEntry object.

Specified by:
getDN in interface Entry
Returns:
The dN value

getChildren

public java.util.HashMap getChildren()
To Get the children of the entry.

Returns:
The children value

getChild

public BrowserEntry getChild(int index)
Gets the child attribute of the BrowserEntry object.

Parameters:
index - index for searching
Returns:
The child value

getChildrenCount

public int getChildrenCount()
To Get the number of children of the entry.

Specified by:
getChildrenCount in interface Entry
Returns:
The childrenCount value

getAttributes

public java.util.HashMap getAttributes()
Gets the attributes attribute of the BrowserEntry object.

Returns:
The attributes value

getAttributesArray

public java.lang.Object[][] getAttributesArray()
Gets the attributesArray attribute of the BrowserEntry object.

Returns:
The attributesArray value

getEntry

public BrowserEntry getEntry(java.lang.String DN,
                             boolean allLevel)
Search for a particular entry in its children tree.

Parameters:
DN - dN attribute
allLevel - bollean indicating to search 1 or all levels
Returns:
The entry value

main

public static void main(java.lang.String[] args)
The main method.

Parameters:
args - cpmmand line arguments

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP