|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.adt.PseudoFeed
public class PseudoFeed
This class represents a pseudofeed which can only store articles, and cannot be the node of the tree structure of ADT, since this is not a FableComponent.
Constructor Summary | |
---|---|
PseudoFeed(java.util.List<FableComponent> children)
Construct a new PseudoFeed with initial children. |
Method Summary | |
---|---|
boolean |
addChild(FableComponent fc)
Add c as a child of this. |
java.util.List<FableComponent> |
getChildren()
Returns a list of children of this. |
java.lang.String |
getTitle()
Returns the title of this pseudofeed. |
boolean |
removeChild(FableComponent fc)
Remove c from the children of this. |
void |
setTitle(java.lang.String newTitle)
Sets the title of this pseudofeed as newTitle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PseudoFeed(java.util.List<FableComponent> children)
children
- initial children of this pseudofeed.
java.lang.NullPointerException
- if children is null.Method Detail |
---|
public java.util.List<FableComponent> getChildren()
FableContainer
getChildren
in interface FableContainer
public boolean addChild(FableComponent fc)
addChild
in interface FableContainer
fc
- a child to be added.
java.lang.NullPointerException
- if fc is null.public boolean removeChild(FableComponent fc)
FableContainer
removeChild
in interface FableContainer
fc
- A child to remove from this.
public java.lang.String getTitle()
public void setTitle(java.lang.String newTitle)
newTitle
- the new title of this pseudofeed.
java.lang.NullPointerException
- if newTitle is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |