Interface INamed


public interface INamed
Interface for data objects that have human-readable names.

### Example ###

 
  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) {...}
 }
 
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the object name
    void
    setName(String value)
    Sets the object name
  • Method Details

    • getName

      String getName()
      Gets the object name
      Returns:
      the object name
    • setName

      void setName(String value)
      Sets the object name
      Parameters:
      value - a new object name