org.gcube.portlets.user.homelibrary.util.zip.zipmodel
Class ZipFolder

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
      extended by org.gcube.portlets.user.homelibrary.util.zip.zipmodel.ZipFolder
All Implemented Interfaces:
ZipItem

public class ZipFolder
extends AbstractZipItem

Author:
Federico De Faveri defaveri@isti.cnr.it

Field Summary
protected  List<ZipItem> children
           
 
Fields inherited from class org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
comment, extra, name, parent, type
 
Constructor Summary
ZipFolder(String name, String comment)
          Create an instance of Zip Folder.
ZipFolder(ZipFolder parent, String name, String comment, byte[] extra)
          Create an instance of Zip Folder.
 
Method Summary
 void addChild(ZipItem child)
           
 List<ZipItem> getChildren()
           
 
Methods inherited from class org.gcube.portlets.user.homelibrary.util.zip.zipmodel.AbstractZipItem
getComment, getExtra, getName, getParent, getPath, getType, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

children

protected List<ZipItem> children
Constructor Detail

ZipFolder

public ZipFolder(ZipFolder parent,
                 String name,
                 String comment,
                 byte[] extra)
Create an instance of Zip Folder.

Parameters:
parent - the folder parent.
name - the folder name.
comment - the folder comment.
extra - the folder extra field.

ZipFolder

public ZipFolder(String name,
                 String comment)
Create an instance of Zip Folder.

Parameters:
name - the folder name.
comment - the folder comment.
Method Detail

addChild

public void addChild(ZipItem child)
Parameters:
child - the child to add.

getChildren

public List<ZipItem> getChildren()
Returns:
the children list.


Copyright © 2013. All Rights Reserved.