org.ow2.petals.registry.api
Class Resource

java.lang.Object
  extended by org.ow2.petals.registry.api.Resource
All Implemented Interfaces:
java.io.Serializable

public class Resource
extends java.lang.Object
implements java.io.Serializable

The resource is the real data exchanged between registries

Author:
Christophe HAMERLING - eBM WebSourcing
See Also:
Serialized Form

Constructor Summary
Resource()
          Creates a new instance of Resource
Resource(Endpoint endpoint)
          Creates a new instance of Resource
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getCreationTime()
           
 Endpoint getEndpoint()
           
 java.lang.String getPath()
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
           
 long getRevision()
           
 java.lang.String getRootRegistry()
           
 int hashCode()
           
 void setCreationTime(long creationTime)
           
 void setEndpoint(Endpoint endpoint)
           
 void setPath(java.lang.String path)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
           
 void setRevision(long revision)
           
 void setRootRegistry(java.lang.String rootRegistry)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Creates a new instance of Resource


Resource

public Resource(Endpoint endpoint)
Creates a new instance of Resource

Parameters:
key -
data -
Method Detail

getCreationTime

public long getCreationTime()
Returns:
the creationTime

setCreationTime

public void setCreationTime(long creationTime)
Parameters:
creationTime - the creationTime to set

getEndpoint

public Endpoint getEndpoint()
Returns:
the data

setEndpoint

public void setEndpoint(Endpoint endpoint)
Parameters:
data - the data to set

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Returns:
the properties

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Parameters:
properties - the properties to set

getRevision

public long getRevision()

setRevision

public void setRevision(long revision)

getPath

public java.lang.String getPath()
Returns:
the path

setPath

public void setPath(java.lang.String path)
Parameters:
path - the path to set

getRootRegistry

public java.lang.String getRootRegistry()
Returns:
the rootRegistry

setRootRegistry

public void setRootRegistry(java.lang.String rootRegistry)
Parameters:
rootRegistry - the rootRegistry to set

toString

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

hashCode

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

equals

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


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.