@Override public String fillSlots(Assignment fillers){
  if (slots.isEmpty()) {
    return rawString;
  }
  String filled=rawString;
  for (  String slot : slots.keySet()) {
    Value v=fillers.getValue(slot);
    if (v != ValueFactory.none()) {
      String strval=v.toString();
      filled=filled.replace("{" + slot + "}",strval);
    }
  }
  return filled;
}

@ Override public String fillSlots ( Assignment fillers ) { if ( slots . isEmpty ( ) ) { return rawString ; } String filled = rawString ; for ( String slot : slots . keySet ( ) ) { Value v = fillers . getValue ( slot ) ; if ( v != ValueFactory . none ( ) ) { String strval = v . toString ( ) ; filled = filled . replace ( "{" + slot + "}" , strval ) ; } } return filled ; }
fills the template with the given content , and returns the filled string . the content provided in the form of a slot : filler mapping . for instance , given a template : " my name is { name } " and a filler " name : pierre " , the method will return " my name is pierre " .
