org.opencms.file.collectors
Class CmsCollectorData

java.lang.Object
  extended by org.opencms.file.collectors.CmsCollectorData
Direct Known Subclasses:
CmsExtendedCollectorData

public class CmsCollectorData
extends java.lang.Object

Data structure for the collector, parsed from the collector parameters.

The input data String must have the following format:
"{VFS URI}|{Resource type}|{Count}", for example:
"/my/folder/|xmlcontent|5".

Since:
6.0.0
Version:
$Revision: 1.15 $
Author:
Alexander Kandzior
See Also:
CmsExtendedCollectorData

Constructor Summary
protected CmsCollectorData()
          Required constructor for subclasses.
  CmsCollectorData(java.lang.String data)
          Creates a new extended collector data set.
 
Method Summary
 int getCount()
          Returns the count.
 java.lang.String getFileName()
          Returns the file name.
 int getType()
          Returns the type.
protected  void setCount(int count)
          Sets the count.
 void setFileName(java.lang.String fileName)
          Sets the fileName.
 void setType(int type)
          Sets the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsCollectorData

public CmsCollectorData(java.lang.String data)
Creates a new extended collector data set.

The input data String must have the following format:
"{VFS URI}|{Resource type}|{Count}", for example:
"/my/folder/|xmlcontent|5".

Parameters:
data - the data to parse

CmsCollectorData

protected CmsCollectorData()
Required constructor for subclasses.

Method Detail

getCount

public int getCount()
Returns the count.

Returns:
the count

getFileName

public java.lang.String getFileName()
Returns the file name.

Returns:
the file name

getType

public int getType()
Returns the type.

Returns:
the type

setFileName

public void setFileName(java.lang.String fileName)
Sets the fileName.

Parameters:
fileName - the file name to set

setType

public void setType(int type)
Sets the type.

Parameters:
type - the type to set

setCount

protected void setCount(int count)
Sets the count.

Parameters:
count - the count