public interface Parent extends Child, java.lang.Iterable<Property>
Modifier and Type | Method and Description |
---|---|
void |
addChild(Property property)
Add a new child to the collection of children
(将新的孩子添加到孩子的集合)
|
java.util.Iterator<Property> |
getChildren()
Get an iterator over the children of this Parent; all elements are instances of Property.
(获取此 Parent 的孩子的迭代器;所有元素都是属性的实例。)
|
void |
setNextChild(Child child)
Set the next Child
(设置下一个孩子)
|
void |
setPreviousChild(Child child)
Set the previous Child
(设置前一个孩子)
|
getNextChild, getPreviousChild
java.util.Iterator<Property> getChildren()
void addChild(Property property) throws java.io.IOException
property
- the new child to be added; must not be null
(property - 要添加的新孩子;不能为空)
java.io.IOException
- if the Parent already has a child with the same name
(java.io.IOException - 如果 Parent 已经有一个同名的孩子)
void setPreviousChild(Child child)
setPreviousChild
in interface
Child
(接口 Child 中的 setPreviousChild)
child
- the new 'previous' child; may be null, which has the effect of saying there is no 'previous' child
(child - 新的“前一个”孩子;可能为空,其效果是说没有“以前的”孩子)
void setNextChild(Child child)
setNextChild
in interface
Child
(接口 Child 中的 setNextChild)
child
- the new 'next' child; may be null, which has the effect of saying there is no 'next' child
(child - 新的“下一个”孩子;可能为空,其效果是说没有“下一个”孩子)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.