INamed

Interface for data objects that have human-readable names.

Description

The INamed interface is used to define data objects containing a human-readable name.

Instance methods

getName

Gets the object name.

public String getName()

  • returns: String - object’s name.

setName

Sets the object name.

public void setName(String value)

  • value: String - object’s name.

Examples

{@code
   public class MyData implements IStringIdentifiable, INamed {
     private String id;
     private String name;
     public String field1;
     public int field2;
     ...
     public String getId() {...}
     public void setId(String newId) {...}
     public String getName() {...}
     public void setName(String newName) {...}
  }
  }