org.opencms.relations
Class CmsCategory

java.lang.Object
  extended by org.opencms.relations.CmsCategory

public class CmsCategory
extends java.lang.Object

Represents a category, that is just a folder under /system/categories/.

Since:
6.9.2
Version:
$Revision: 1.2 $
Author:
Michael Moossen

Constructor Summary
CmsCategory(CmsUUID structureId, java.lang.String path, java.lang.String title, java.lang.String description)
          Deafult constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the description.
 CmsUUID getId()
          Returns the id.
 java.lang.String getName()
          Returns the mere category name without it's complete path and without the trailing folder - slash.
 java.lang.String getPath()
          Returns the path.
 java.lang.String getTitle()
          Returns the title.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsCategory

public CmsCategory(CmsUUID structureId,
                   java.lang.String path,
                   java.lang.String title,
                   java.lang.String description)
Deafult constructor.

Parameters:
structureId - the structure id of the resource that this category represents
path - the path of the category
title - the title of the category
description - the description of the category
Method Detail

equals

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

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
the description

getId

public CmsUUID getId()
Returns the id.

Returns:
the id

getName

public java.lang.String getName()
Returns the mere category name without it's complete path and without the trailing folder - slash.

Returns:
the mere category name without it's complete path and without the trailing folder - slash

getPath

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

Returns:
the path

getTitle

public java.lang.String getTitle()
Returns the title.

Returns:
the title

hashCode

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