Class Remote.MetaData

java.lang.Object
org.harctoolbox.girr.Remote.MetaData
All Implemented Interfaces:
Serializable
Enclosing class:
Remote

public static final class Remote.MetaData extends Object implements Serializable
This class bundles different meta data for a remote together.
See Also:
  • Field Details

  • Constructor Details

    • MetaData

      public MetaData()
      Constructor for empty MetaData.
    • MetaData

      public MetaData(String name)
      Constructor with name.
      Parameters:
      name -
    • MetaData

      public MetaData(String name, String displayName, String manufacturer, String model, String deviceClass, String remoteName)
      Generic constructor.
      Parameters:
      name - Name of the remote, as how users and other program is referring to it. Should be in ENglish and not containing special characters.
      displayName - A "nicely looking" displayable name. May contain spaces and special characters.
      manufacturer - Manufacturer of the device.
      model - Model name, to be identified by humans-
      deviceClass - Device class, for example "TV".
      remoteName - Manufacturers name of original remote.
  • Method Details

    • toFormattedString

      public String toFormattedString()
    • isEmpty

      public boolean isEmpty()
      Returns true if there is no non-trivial content.
      Returns:
    • getName

      public String getName()
      Returns:
      the name
    • getDisplayName

      public String getDisplayName()
      Returns:
      the displayName
    • getManufacturer

      public String getManufacturer()
      Returns:
      the manufacturer
    • getModel

      public String getModel()
      Returns:
      the model
    • getDeviceClass

      public String getDeviceClass()
      Returns:
      the deviceClass
    • getRemoteName

      public String getRemoteName()
      Returns:
      the remoteName