Package org.harctoolbox.girr
Class Remote.MetaData
java.lang.Object
org.harctoolbox.girr.Remote.MetaData
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Remote
This class bundles different meta data for a remote together.
- See Also:
-
Field Details
-
DEFAULT_REMOTENAME
- See Also:
-
-
Constructor Details
-
MetaData
public MetaData()Constructor for empty MetaData. -
MetaData
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
-
isEmpty
public boolean isEmpty()Returns true if there is no non-trivial content.- Returns:
-
getName
- Returns:
- the name
-
getDisplayName
- Returns:
- the displayName
-
getManufacturer
- Returns:
- the manufacturer
-
getModel
- Returns:
- the model
-
getDeviceClass
- Returns:
- the deviceClass
-
getRemoteName
- Returns:
- the remoteName
-