jsdsi
Class Tag

java.lang.Object
  extended byjsdsi.Obj
      extended byjsdsi.Tag
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExprTag

public abstract class Tag
extends Obj

Specifies a particular authorization permission.

Version:
$Revision: 1.3.2.1 $ $Date: 2005/11/08 03:12:52 $
Author:
Sameer Ajmani, Sean Radford
See Also:
Serialized Form

Field Summary
static Tag ALL_TAG
          A Tag that conveys all permissions.
static Tag NULL_TAG
          A Tag that conveys no permissions.
 
Fields inherited from class jsdsi.Obj
_obj
 
Constructor Summary
Tag()
           
 
Method Summary
 boolean implies(Tag that)
          Checks if this Tag implies the given tag.
abstract  Tag intersect(Tag that)
          Intersects this Tag with another one and returns the result.
 SexpList toSexp()
          Creates an SexpList -representation from this SDSI-object.
protected abstract  Sexp toTagSexp()
           
 
Methods inherited from class jsdsi.Obj
equals, hashCode, parseObj, parseObj, readResolve, toByteArray, toString, toString, toTransport
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_TAG

public static Tag ALL_TAG
A Tag that conveys all permissions.


NULL_TAG

public static Tag NULL_TAG
A Tag that conveys no permissions.

Constructor Detail

Tag

public Tag()
Method Detail

intersect

public abstract Tag intersect(Tag that)
Intersects this Tag with another one and returns the result.

Parameters:
that - tag to intersect this with.
Returns:
the intersection of this Tag and that.

implies

public final boolean implies(Tag that)
Checks if this Tag implies the given tag. Implemented as return this.intersect(that).equals(that).

Parameters:
that - tag to check for if it is implied by this one.
Returns:
true if this tag implies that, false otherwise.

toTagSexp

protected abstract Sexp toTagSexp()

toSexp

public final SexpList toSexp()
Description copied from class: Obj
Creates an SexpList -representation from this SDSI-object.

Specified by:
toSexp in class Obj
Returns:
an SexpList that represents this SDSI-object.


Copyright © 2002-2006 JSDSI. All Rights Reserved.