org.wso2.carbon.registry.core.utils
Class VersionedPath

java.lang.Object
  extended by org.wso2.carbon.registry.core.utils.VersionedPath

public class VersionedPath
extends Object

This class is used to represent a path with a version (a versioned path).


Constructor Summary
VersionedPath()
           
 
Method Summary
 String getPath()
          Method to obtain the path.
 long getVersion()
          Method to obtain the version.
 void setPath(String path)
          Method to set the path.
 void setVersion(long version)
          Method to set the version.
 String toString()
          This method overrides the default toString method in manner that it returns the versioned path when called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionedPath

public VersionedPath()
Method Detail

getPath

public String getPath()
Method to obtain the path.

Returns:
the path.

setPath

public void setPath(String path)
Method to set the path.

Parameters:
path - the path.

getVersion

public long getVersion()
Method to obtain the version.

Returns:
the version.

setVersion

public void setVersion(long version)
Method to set the version.

Parameters:
version - the version.

toString

public String toString()
This method overrides the default toString method in manner that it returns the versioned path when called.

Overrides:
toString in class Object
Returns:
the versioned path.


Copyright © 2012 WSO2 Inc. All Rights Reserved.