org.apache.portals.graffito.model.core.impl
Class VersionnedContentImpl
java.lang.Object
org.apache.portals.graffito.model.core.impl.CmsObjectImpl
org.apache.portals.graffito.model.core.impl.ContentImpl
org.apache.portals.graffito.model.core.impl.VersionnedContentImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, org.apache.portals.graffito.model.core.CmsObject, org.apache.portals.graffito.model.core.Content, org.apache.portals.graffito.model.core.VersionnedContent
- Direct Known Subclasses:
- DocumentImpl
public class VersionnedContentImpl
- extends ContentImpl
- implements org.apache.portals.graffito.model.core.VersionnedContent, java.io.Serializable
CmsObjectImpl
- Author:
- Christophe Lombart
- See Also:
- Serialized Form
Fields inherited from interface org.apache.portals.graffito.model.core.CmsObject |
URI_SEPARATOR |
Methods inherited from class org.apache.portals.graffito.model.core.impl.CmsObjectImpl |
equals, getCreationDate, getLastModified, getName, getObjectId, getParentFolder, getParentId, getPath, getProperties, getProperty, getUri, setCreationDate, setLastModified, setName, setObjectId, setParentFolder, setParentId, setProperties, setProperty, setUri, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.portals.graffito.model.core.CmsObject |
getCreationDate, getLastModified, getName, getParentFolder, getPath, getProperties, getProperty, getUri, setCreationDate, setLastModified, setName, setParentFolder, setProperties, setProperty, setUri |
isLastVersion
protected boolean isLastVersion
versionNumber
protected java.lang.String versionNumber
VersionnedContentImpl
public VersionnedContentImpl()
- Constructor
isLastVersion
public boolean isLastVersion()
- Specified by:
isLastVersion
in interface org.apache.portals.graffito.model.core.VersionnedContent
- See Also:
VersionnedContent.isLastVersion()
setLastVersion
public void setLastVersion(boolean isLastVersion)
- Specified by:
setLastVersion
in interface org.apache.portals.graffito.model.core.VersionnedContent
- See Also:
VersionnedContent.setLastVersion(boolean)
setVersionNumber
public void setVersionNumber(java.lang.String versionNumber)
- Specified by:
setVersionNumber
in interface org.apache.portals.graffito.model.core.VersionnedContent
- See Also:
VersionnedContent.setVersionNumber(java.lang.String)
getVersionNumber
public java.lang.String getVersionNumber()
- Specified by:
getVersionNumber
in interface org.apache.portals.graffito.model.core.VersionnedContent
- See Also:
VersionnedContent.getVersionNumber()
compareTo
public int compareTo(java.lang.Object o)
- Compare 2 VersionContentImpl in function of their version number.
The version number structure is a point separated digit.
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
o
- The object to compare
- Returns:
- -1,0 or 1 for less than, equals, greater than
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface org.apache.portals.graffito.model.core.VersionnedContent
- Overrides:
clone
in class java.lang.Object
- Returns:
- The cloned object
- Throws:
java.lang.CloneNotSupportedException
- when it is not possible to clone the document
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.