org.apache.wvcm
Class LockTokenImpl

java.lang.Object
  extended by org.apache.wvcm.LockTokenImpl
All Implemented Interfaces:
LockToken

public class LockTokenImpl
extends java.lang.Object
implements LockToken

NOT YET STANDARD Describes a lock token.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.wvcm.LockToken
LockToken.Depth, LockToken.Scope, LockToken.Timeout, LockToken.Type
 
Constructor Summary
LockTokenImpl(java.lang.String lockId, LockToken.Scope lockScope, LockToken.Depth depth, Principal owner, java.lang.String ownerInfo, LockToken.Timeout timeout)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
           
 LockToken.Depth getDepth()
          Get the lock depth
 java.lang.String getLockId()
          Get the lock ID (an URI in the opaquelocktoken scheme)
 LockToken.Scope getLockScope()
          Get the lock scope
 LockToken.Type getLockType()
          Get the lock type
 Principal getOwner()
          Get the lock owner
 java.lang.String getOwnerInfo()
          Get the lock owner
 LockToken.Timeout getTimeout()
          Get the lock timeout
 int hashCode()
           
 boolean isActive()
          Method isActive
 void setActive(boolean active)
          Method setActive
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockTokenImpl

public LockTokenImpl(java.lang.String lockId,
                     LockToken.Scope lockScope,
                     LockToken.Depth depth,
                     Principal owner,
                     java.lang.String ownerInfo,
                     LockToken.Timeout timeout)
Constructor

Parameters:
lockId - a String
lockScope - a Scope
depth - a Depth
owner - a String
timeout - a Timeout
Method Detail

getLockId

public java.lang.String getLockId()
Get the lock ID (an URI in the opaquelocktoken scheme)

Specified by:
getLockId in interface LockToken
Returns:
a String

getLockScope

public LockToken.Scope getLockScope()
Get the lock scope

Specified by:
getLockScope in interface LockToken
Returns:
a Scope

getTimeout

public LockToken.Timeout getTimeout()
Get the lock timeout

Specified by:
getTimeout in interface LockToken
Returns:
a Timeout

getLockType

public LockToken.Type getLockType()
Get the lock type

Specified by:
getLockType in interface LockToken
Returns:
a Type

getOwner

public Principal getOwner()
Get the lock owner

Specified by:
getOwner in interface LockToken
Returns:
a Principal

getOwnerInfo

public java.lang.String getOwnerInfo()
Get the lock owner

Specified by:
getOwnerInfo in interface LockToken
Returns:
a String

getDepth

public LockToken.Depth getDepth()
Get the lock depth

Specified by:
getDepth in interface LockToken
Returns:
a Depth

isActive

public boolean isActive()
Method isActive

Specified by:
isActive in interface LockToken
Returns:
a boolean

setActive

public void setActive(boolean active)
Method setActive

Parameters:
active - a boolean

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (c) 2003 - Apache Software Foundation