public interface Parent extends Child
Modifier and Type | Method and Description |
---|---|
void |
addChild(Property property)
Add a new child to the collection of children
|
Iterator |
getChildren()
Get an iterator over the children of this Parent; all elements
are instances of Property.
|
void |
setNextChild(Child child)
Set the next Child
|
void |
setPreviousChild(Child child)
Set the previous Child
|
getNextChild, getPreviousChild
Iterator getChildren()
void addChild(Property property) throws IOException
property
- the new child to be added; must not be nullIOException
- if the Parent already has a child with
the same namevoid setPreviousChild(Child child)
setPreviousChild
in interface Child
child
- the new 'previous' child; may be null, which has
the effect of saying there is no 'previous' childvoid setNextChild(Child child)
setNextChild
in interface Child
child
- the new 'next' child; may be null, which has the
effect of saying there is no 'next' childCopyright © 2020. All rights reserved.