de.nava.informa.impl.basic
Class ItemEnclosure

java.lang.Object
  extended by de.nava.informa.impl.basic.ItemEnclosure
All Implemented Interfaces:
ItemEnclosureIF, WithLocationMIF, Serializable

public class ItemEnclosure
extends Object
implements ItemEnclosureIF

In-Memory implementation of the ItemSourceIF interface.

Author:
Michael Harhen
See Also:
Serialized Form

Constructor Summary
ItemEnclosure(ItemIF item)
          Default constructor.
ItemEnclosure(ItemIF item, URL location, String type, int length)
           
 
Method Summary
 ItemIF getItem()
           
 int getLength()
           
 URL getLocation()
           
 String getType()
           
 void setItem(ItemIF item)
           
 void setLength(int length)
           
 void setLocation(URL location)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemEnclosure

public ItemEnclosure(ItemIF item)
Default constructor.

Parameters:
item - the item.

ItemEnclosure

public ItemEnclosure(ItemIF item,
                     URL location,
                     String type,
                     int length)
Method Detail

getItem

public ItemIF getItem()

setItem

public void setItem(ItemIF item)

getLocation

public URL getLocation()
Specified by:
getLocation in interface WithLocationMIF
Returns:
The URL where this channel can be retrieved from.

setLocation

public void setLocation(URL location)
Specified by:
setLocation in interface WithLocationMIF
Parameters:
location - The URL where this channel can be retrieved from.

getType

public String getType()
Specified by:
getType in interface ItemEnclosureIF
Returns:
The time was published by the original source

setType

public void setType(String type)
Specified by:
setType in interface ItemEnclosureIF

getLength

public int getLength()
Specified by:
getLength in interface ItemEnclosureIF
Returns:
The length of the enclosure

setLength

public void setLength(int length)
Specified by:
setLength in interface ItemEnclosureIF


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.