public Name(String name){
  if (name == null) {
    throw new NullPointerException("name");
  }
  if (!isValid(name)) {
    throw new IllegalArgumentException(name);
  }
  this.name=name.intern();
}

public Name ( String name ) { if ( name == null ) { throw new NullPointerException ( "name" ) ; } if ( ! isValid ( name ) ) { throw new IllegalArgumentException ( name ) ; } this . name = name . intern ( ) ; }
constructs a new attribute name using the given string name .
