public void setFragments ( List < XmlFragment > fragments ) { assertNotNull ( fragments ) ; this . fragments . clear ( ) ; for ( XmlFragment fragment : fragments ) addFragment ( fragment ) ; }
Sets fragment list removing any existing fragments first . Sets the parent pointer for each fragment in the list to this node .