uk.ac.rdg.resc.jstyx.types
Class Qid

java.lang.Object
  extended by uk.ac.rdg.resc.jstyx.types.Qid

public class Qid
extends java.lang.Object

A 13-byte type representing the server's view of a file

Author:
Jon Blower $Revision: 604 $ $Date: 2006-03-21 14:58:42 +0000 (Tue, 21 Mar 2006) $ $Log$ Revision 1.4 2006/03/21 14:58:42 jonblower Implemented clear-text password-based authentication and did some simple tests Revision 1.3 2005/07/08 12:18:50 jonblower Implemented equals() methods Revision 1.2 2005/02/24 07:46:05 jonblower Added toFriendlyString() for benefit of StyxMon Revision 1.1.1.1 2005/02/16 18:58:35 jonblower Initial import

Constructor Summary
Qid(int type, long version, long path)
           
Qid(int type, long version, ULong path)
           
 
Method Summary
 boolean equals(Qid otherQid)
           
 ULong getPath()
           
 int getType()
           
 long getVersion()
           
 boolean isAuth()
           
 boolean isDirectory()
           
 java.lang.String toFriendlyString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Qid

public Qid(int type,
           long version,
           ULong path)

Qid

public Qid(int type,
           long version,
           long path)
Method Detail

getType

public int getType()

getVersion

public long getVersion()

getPath

public ULong getPath()

isDirectory

public boolean isDirectory()
Returns:
true if the file represented by this Qid is a directory

isAuth

public boolean isAuth()
Returns:
true if the file represented by this Qid is an authorization file

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation of this Qid

toFriendlyString

public java.lang.String toFriendlyString()
Returns:
human-readable representation of this Qid

equals

public boolean equals(Qid otherQid)
Returns:
true if the qids are identical


Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.