1 package org.kuali.common.util.xml.jaxb; 2 3 import javax.xml.bind.annotation.XmlAttribute; 4 import javax.xml.bind.annotation.XmlRootElement; 5 6 import org.kuali.common.util.Assert; 7 8 @XmlRootElement 9 public final class Sport { 10 11 @XmlAttribute 12 private final String name; 13 14 public String getName() { 15 return name; 16 } 17 18 Sport() { 19 this.name = null; 20 } 21 22 public Sport(String name) { 23 Assert.noBlanks(name); 24 this.name = name; 25 } 26 27 }