net.netheos.pcsapi.providers.cloudme
Class CMFolder

java.lang.Object
  extended by net.netheos.pcsapi.providers.cloudme.CMFolder
All Implemented Interfaces:
Iterable<CMFolder>

public class CMFolder
extends Object
implements Iterable<CMFolder>

This class represents a CloudMe folder It is characterized by an id. Its name is the base/simple name of the folder


Constructor Summary
CMFolder(String id, String name)
           
 
Method Summary
 CMFolder addChild(String id, String name)
          Adds a child folder
 CMFolder getChildByName(String name)
          Finds a child according to its name
 CPath getCPath()
          Gets the CPath corresponding to this folder
 CMFolder getFolder(CPath path)
          Gets the CloudMe folder corresponding to a given CPath Returns null if the folder does not exist
 String getId()
           
 String getName()
           
 Iterator<CMFolder> iterator()
           
 CFolder toCFolder()
          Converts a CloudMe folder to a generic CFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMFolder

public CMFolder(String id,
                String name)
Method Detail

getName

public String getName()

getId

public String getId()

addChild

public CMFolder addChild(String id,
                         String name)
Adds a child folder

Parameters:
id - id of the child folder
name - name of the child folder
Returns:
the added folder

iterator

public Iterator<CMFolder> iterator()
Specified by:
iterator in interface Iterable<CMFolder>

getChildByName

public CMFolder getChildByName(String name)
Finds a child according to its name

Parameters:
name - of the folder to find
Returns:
CMFolder

getFolder

public CMFolder getFolder(CPath path)
Gets the CloudMe folder corresponding to a given CPath Returns null if the folder does not exist

Parameters:
path -
Returns:
CMFolder

getCPath

public CPath getCPath()
Gets the CPath corresponding to this folder

Returns:
CPath

toCFolder

public CFolder toCFolder()
Converts a CloudMe folder to a generic CFolder

Returns:
CFolder


Copyright © 2014. All Rights Reserved.