public void clear(){
  if (relations != null) {
    relations.removeAllElements();
  }
}

public void clear ( ) { if ( relations != null ) { relations . removeAllElements ( ) ; } }
removes all the relations from the current relation set .
