edu.stanford.rt.credential
Class RoleIntersection

java.lang.Object
  |
  +--edu.stanford.rt.credential.RoleIntersection
All Implemented Interfaces:
PrincipalExpression, java.io.Serializable

public class RoleIntersection
extends java.lang.Object
implements PrincipalExpression

Author:
Ninghui Li, Sandra Qiu
Implementation of IntersectionContainment element.
See Also:
Serialized Form

Field Summary
private  java.util.ArrayList parts
          list of members in this intersection.
 
Constructor Summary
RoleIntersection()
          Constuctor for an empty RoleIntersection.
RoleIntersection(java.util.List p)
          Constructor for RoleIntersection
 
Method Summary
 void and(java.lang.Object part)
          Method and.
 java.util.List getParts()
          Method getParts.
 java.lang.String toString(java.lang.String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parts

private java.util.ArrayList parts
list of members in this intersection.

Constructor Detail

RoleIntersection

public RoleIntersection()
Constuctor for an empty RoleIntersection.


RoleIntersection

public RoleIntersection(java.util.List p)
Constructor for RoleIntersection

Method Detail

getParts

public java.util.List getParts()
Method getParts. returns an unmodifiable view of the members.

Returns:
List

and

public void and(java.lang.Object part)
         throws CredException
Method and. AND operation.

Parameters:
part -
Throws:
CredException

toString

public java.lang.String toString(java.lang.String indent)
Specified by:
toString in interface PrincipalExpression