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 |
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.
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