de.nava.informa.impl.basic
Class ChannelGroup

java.lang.Object
  extended by de.nava.informa.impl.basic.ChannelGroup
All Implemented Interfaces:
ChannelGroupIF, WithChildrenMIF, WithIdMIF, WithTitleMIF, Serializable
Direct Known Subclasses:
ChannelGroup

public class ChannelGroup
extends Object
implements ChannelGroupIF

In-Memory implementation of the ChannelGroupIF interface.

Author:
Niko Schmuck (niko@nava.de)
See Also:
Serialized Form

Constructor Summary
ChannelGroup()
           
ChannelGroup(long id, ChannelGroupIF parent, String title)
           
ChannelGroup(long id, String title)
           
ChannelGroup(String title)
           
 
Method Summary
 void add(ChannelIF channel)
           
 void addChild(ChannelGroupIF child)
           
 Collection<ChannelIF> getAll()
           
 ChannelIF getById(long id)
           
 Collection getChildren()
           
 long getId()
           
 ChannelGroupIF getParent()
           
 String getTitle()
           
 void remove(ChannelIF channel)
           
 void removeChild(ChannelGroupIF child)
           
 void setId(long id)
           
 void setParent(ChannelGroupIF parent)
           
 void setTitle(String title)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelGroup

public ChannelGroup()

ChannelGroup

public ChannelGroup(String title)

ChannelGroup

public ChannelGroup(long id,
                    String title)

ChannelGroup

public ChannelGroup(long id,
                    ChannelGroupIF parent,
                    String title)
Method Detail

getId

public long getId()
Specified by:
getId in interface WithIdMIF
Returns:
identifier of the object.

setId

public void setId(long id)
Specified by:
setId in interface WithIdMIF
Parameters:
id - the identifier of the object to be set.

getTitle

public String getTitle()
Specified by:
getTitle in interface WithTitleMIF
Returns:
the title of the object

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface WithTitleMIF
Parameters:
title - the title of the object to be set

add

public void add(ChannelIF channel)
Specified by:
add in interface ChannelGroupIF

remove

public void remove(ChannelIF channel)
Specified by:
remove in interface ChannelGroupIF

getAll

public Collection<ChannelIF> getAll()
Specified by:
getAll in interface ChannelGroupIF
Returns:
A collection of ChannelIF objects.

getById

public ChannelIF getById(long id)
Specified by:
getById in interface ChannelGroupIF

getParent

public ChannelGroupIF getParent()
Specified by:
getParent in interface ChannelGroupIF

setParent

public void setParent(ChannelGroupIF parent)
Specified by:
setParent in interface ChannelGroupIF

getChildren

public Collection getChildren()
Specified by:
getChildren in interface WithChildrenMIF
Returns:
the collection of children of the object

addChild

public void addChild(ChannelGroupIF child)
Specified by:
addChild in interface ChannelGroupIF

removeChild

public void removeChild(ChannelGroupIF child)
Specified by:
removeChild in interface ChannelGroupIF

toString

public String toString()
Overrides:
toString in class Object


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