Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui
Class NodeRole

java.lang.Object
  |
  +--oracle.cabo.ui.NodeRole

public class NodeRole
extends java.lang.Object

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


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

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.