|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.xml.Child
public class Child
The definition of a parent's child.
Constructor Summary | |
---|---|
Child()
|
Method Summary | |
---|---|
Child |
getParent()
Returns the parent of this child, if any. |
Child |
getRoot()
Returns the root in this element's hierarchy. |
Child |
getRoot(Class<? extends Child> clazz)
Returns the root in this element's hierarchy of the specified class. |
Version |
getVersion()
Returns the associated version information, if any. |
void |
setParent(Child parent)
Initializes the parent of this child. |
void |
setVersion(Version version)
Initializes the associated version information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Child()
Method Detail |
---|
public void setParent(Child parent)
parent
- the new child's parent. May be null
.getParent()
public Child getParent()
null
.setParent(Child)
,
getRoot()
public Child getRoot()
null
.getParent()
,
getRoot(Class)
public Child getRoot(Class<? extends Child> clazz)
clazz
- a class. Shall not be null
.
null
.
NullPointerException
- if clazz
is null
.getRoot()
public Version getVersion()
null
.setVersion(Version)
public void setVersion(Version version)
version
- a version information. May be null
.getVersion()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |