|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FableContainer
This interface is designed to be a type that is able to store FableComponent itself. Note that some class implementing this interface may not be a subtype of FableComponent.
Method Summary | |
---|---|
boolean |
addChild(FableComponent fc)
Add c as a child of this (optional operation). |
java.util.List<FableComponent> |
getChildren()
Returns a list of children of this. |
boolean |
removeChild(FableComponent fc)
Remove c from the children of this. |
Method Detail |
---|
java.util.List<FableComponent> getChildren()
boolean addChild(FableComponent fc)
FableContainers inheriting this method can impose their own restrictions. For example, Feed may accept only Article as a child. This restrictions should be clearly documented in the specification.
One extreme example of restriction is Article, which bounces any FableComponents.
fc
- a child to be added.
java.lang.NullPointerException
- if fc is null.boolean removeChild(FableComponent fc)
fc
- A child to remove from this.
java.lang.NullPointerException
- if fc is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |