org.xiruss.snapcm.api
Class NullResource

java.lang.Object
  extended by org.xiruss.snapcm.api.NullRepositoryObject
      extended by org.xiruss.snapcm.api.NullResource
All Implemented Interfaces:
RepositoryObject, Resource

public class NullResource
extends NullRepositoryObject
implements Resource


Constructor Summary
NullResource()
           
 
Method Summary
 void addVersion(Version version)
           
 VersionMap getInitialVersions()
          Gets a map of the initial versions for the resource.
 long getVersionCount()
          Returns the total number of versions for this resource.
 VersionMap getVersions()
           
 
Methods inherited from class org.xiruss.snapcm.api.NullRepositoryObject
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString
 

Constructor Detail

NullResource

public NullResource()
Method Detail

getVersions

public VersionMap getVersions()
Specified by:
getVersions in interface Resource

addVersion

public void addVersion(Version version)
Specified by:
addVersion in interface Resource

getInitialVersions

public VersionMap getInitialVersions()
Description copied from interface: Resource
Gets a map of the initial versions for the resource. Initial versions are versions that have no previous version.

Specified by:
getInitialVersions in interface Resource
Returns:
Map of initial versions, if any

getVersionCount

public long getVersionCount()
Description copied from interface: Resource
Returns the total number of versions for this resource.

Specified by:
getVersionCount in interface Resource