com.blackledge.david.tivo.hmoclient
Class ContainerItem

java.lang.Object
  extended by com.blackledge.david.tivo.hmoclient.Item
      extended by com.blackledge.david.tivo.hmoclient.ContainerItem
Direct Known Subclasses:
Container

public class ContainerItem
extends Item

<TotalItems>{count}</TotalItems> <TotalSize>{bytes}</TotalSize> <TotalDuration>{msecs}</TotalDuration>

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class com.blackledge.david.tivo.hmoclient.Item
contentLink, request
 
Constructor Summary
ContainerItem(ContainerRequest request)
           
ContainerItem(ContainerRequest request, Element node)
           
 
Method Summary
 long getTotalDuration()
           
 int getTotalItems()
           
 long getTotalSize()
           
protected  void initDetails(Element description)
          Basic Item details: <Title>{text}</Title> <ContentType>{mime-type}</ContentType> <SourceFormat>{mime-type}</SourceFormat> Optional details: <CreationDate>{date}</CreationDate> <LastChangeDate>{date}</LastChangeDate> <LastAccessDate>{date}</LastAccessDate> <SourceLocation>{text}</SourceLocation> <SourceSize>{bytes}</SourceSize> <Copyright>{text}</Copyright>
 boolean isContainer()
          Is this item a container? Some methods only work for Containers, some only work for non-containers.
 
Methods inherited from class com.blackledge.david.tivo.hmoclient.Item
getAllDetails, getChildElementsByTagName, getChildTagMap, getContentType, getContentURL, getCopyright, getCreated, getCreationDate, getCustomIcon, getDate, getLastAccessDate, getLastAccessed, getLastChanged, getLastChangeDate, getLinks, getLong, getNodeValue, getSingleChildElementByTagName, getSourceFormat, getSourceLocation, getSourceSize, getTitle, newContainerRequest, newContainerRequest, singleNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerItem

public ContainerItem(ContainerRequest request,
                     Element node)

ContainerItem

public ContainerItem(ContainerRequest request)
Method Detail

isContainer

public boolean isContainer()
Description copied from class: Item
Is this item a container? Some methods only work for Containers, some only work for non-containers. Container Items can make a Item.newContainerRequest(), but can't return information about links ( Item.getContentURL(), Item.getLinks() ).

Overrides:
isContainer in class Item
Returns:
false, by default.

initDetails

protected void initDetails(Element description)
Description copied from class: Item
Basic Item details: <Title>{text}</Title> <ContentType>{mime-type}</ContentType> <SourceFormat>{mime-type}</SourceFormat> Optional details: <CreationDate>{date}</CreationDate> <LastChangeDate>{date}</LastChangeDate> <LastAccessDate>{date}</LastAccessDate> <SourceLocation>{text}</SourceLocation> <SourceSize>{bytes}</SourceSize> <Copyright>{text}</Copyright>

Overrides:
initDetails in class Item

getTotalDuration

public long getTotalDuration()

getTotalItems

public int getTotalItems()

getTotalSize

public long getTotalSize()