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

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

public class VersionedPath
extends java.lang.Object

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


Constructor Summary
VersionedPath()
           
 
Method Summary
 java.lang.String getPath()
          Method to obtain the path.
 long getVersion()
          Method to obtain the version.
 void setPath(java.lang.String path)
          Method to set the path.
 void setVersion(long version)
          Method to set the version.
 java.lang.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 java.lang.String getPath()
Method to obtain the path.

Returns:
the path.

setPath

public void setPath(java.lang.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 java.lang.String toString()
This method overrides the default toString method in manner that it returns the versioned path when called.

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


Copyright © 2011 WSO2 Inc. All Rights Reserved.