/*
 * Created on Oct 10, 2006
 * 
 * (C) Copyright TANDBERG Television Ltd.
 */

package com.tandbergtv.workflow.sanmanager.dto;

/**
 * Represents a Folder in the SAN Drive 
 *
 * @author Vijay Silva
 */
public class SANFolder extends AbstractSANFile
{
	private static final long serialVersionUID = 532979359676481736L;

	// the number of child folders
	protected int childCount = 0;
	
	/**
	 * Constructor 
	 */
	public SANFolder()
	{
		super();
	}

	/**
	 * @see com.tandbergtv.workflow.sanmanager.dto.ISANFile#isDirectory()
	 */
	public boolean isDirectory()
	{
		return true;
	}

	/**
	 * @see com.tandbergtv.workflow.sanmanager.dto.ISANFile#getLength()
	 */
	public long getLength()
	{
		return 0;
	}

	/**
	 * Ignores the call, since a directory doesn't have a size.
	 * @see com.tandbergtv.workflow.sanmanager.dto.ISANFile#setLength(long)
	 */
	public void setLength(long length)
	{
	}

	public int getChildFolderCount()
	{
		return this.childCount;
	}

	public void setChildFolderCount(int count)
	{
		this.childCount = count;
	}
}
