de.pdark.decentxml
Interface Child

All Superinterfaces:
Node
All Known Implementing Classes:
Element

public interface Child
extends Node

This is an interface for anything which can be a child. Only Element implements this.

Author:
digulla
See Also:
Element, Document

Method Summary
 java.lang.String getNodePath()
          Return a path which uniquely describes this child.
 Parent getParent()
          The parent of this child
 Child setParent(Parent parent)
          Change the parent of this child.
 
Methods inherited from interface de.pdark.decentxml.Node
copy, copy, createClone, getType, toXML, toXML
 

Method Detail

getParent

Parent getParent()
The parent of this child


setParent

Child setParent(Parent parent)
Change the parent of this child.

CAUTION: If the child is already attached to a parent, this call will not detach the old relation! You must call child.getParent().removeNode (child), first!


getNodePath

java.lang.String getNodePath()
Return a path which uniquely describes this child.



Copyright © 2008-2011. All Rights Reserved.