org.apache.myfaces.trinidadinternal.ui
Class NodeRole

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.NodeRole

public class NodeRole
extends java.lang.Object

A NodeRole defines the role a single UINode plays in the rendering process.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/NodeRole.java#0 $) $Date: 10-nov-2005.18:50:14 $
Author:
The Oracle ADF Faces Team

Constructor Summary
NodeRole(java.lang.String name)
          Creates a named NodeRole.
NodeRole(java.lang.String name, NodeRole[] roles)
          Creates a named NodeRole.
 
Method Summary
 boolean satisfiesRole(NodeRole role)
          Returns true if this role object "satisfies" another role.
 java.lang.String toString()
          Returns a String useful for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeRole

public NodeRole(java.lang.String name)
Creates a named NodeRole.

Parameters:
name - an optional name; NodeRole names do not need to be unique, and are used only for debugging.

NodeRole

public NodeRole(java.lang.String name,
                NodeRole[] roles)
Creates a named NodeRole.

Parameters:
name - an optional name; NodeRole names do not need to be unique, and are used only for debugging.
roles - a (possibly empty or null) list of roles that this role satisfies.
Method Detail

satisfiesRole

public boolean satisfiesRole(NodeRole role)
Returns true if this role object "satisfies" another role. This is true if and only if the roles are the same or this role contains a NodeRole that satisfies the role.


toString

public java.lang.String toString()
Returns a String useful for debugging.

Overrides:
toString in class java.lang.Object


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.