org.glassfish.admingui.plugin
Class TOCItem

java.lang.Object
  extended by org.glassfish.admingui.plugin.TOCItem

public class TOCItem
extends java.lang.Object

This class is configured via XML (i.e. a console-config.xml file). This is done via the HK2 ConfigParser.

Author:
Ken Paulsen (ken.paulsen@sun.com)

Constructor Summary
TOCItem()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           This method provides the "equals" functionality for TOCItem.
 java.lang.String getTarget()
           
 java.lang.String getTargetPath()
           This method returns the path to the target HTML page, starting with the moduleId.
 java.lang.String getText()
           
 java.util.List<TOCItem> getTOCItems()
           Accessor for child TOCItems.
 int hashCode()
           This method is overriden to help ensure consistency for equals() comparisons.
 boolean isExpand()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TOCItem

public TOCItem()
Method Detail

getTOCItems

public java.util.List<TOCItem> getTOCItems()

Accessor for child TOCItems.


isExpand

public boolean isExpand()

getTarget

public java.lang.String getTarget()

getTargetPath

public java.lang.String getTargetPath()

This method returns the path to the target HTML page, starting with the moduleId. It does not add anything before the module id, and does not have a leading '/' character. It does append ".html" to the end of the target.


getText

public java.lang.String getText()

equals

public boolean equals(java.lang.Object obj)

This method provides the "equals" functionality for TOCItem. The behavior of equals ONLY compares the target value. The text and expand values are not used to test for equality.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

This method is overriden to help ensure consistency for equals() comparisons. As such it simply returns the hashCode of the String (target) that is used in the equals comparison.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 GlassFish Community. All Rights Reserved.