public void addFragment ( XmlFragment fragment ) { assertNotNull ( fragment ) ; fragments . add ( fragment ) ; fragment . setParent ( this ) ; }
Adds a fragment to the fragment list . Sets its parent to this node .