public void setMoodleCourseContentField(String name, String value) {
    if (name.equals("id")) setId(Long.parseLong(value));
    if (name.equals("name")) setName(value);
    if (name.equals("visible")) setVisible(!value.equals("0"));
    if (name.equals("summary")) setSummary(value);
  }