public final class ChannelConfiguration extends java.lang.Object implements Configuration, java.lang.Comparable<ChannelConfiguration>
| Constructor and Description |
|---|
ChannelConfiguration()
Constructor.
|
ChannelConfiguration(ChannelConfiguration configuration)
Copy constructor.
|
ChannelConfiguration(java.lang.String channelGroup,
java.lang.String channel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfiguration()
Checks the current state of the configuration.
|
ChannelConfiguration |
clone() |
int |
compareTo(ChannelConfiguration otherChannel) |
void |
copyConfiguration(ChannelConfiguration configuration)
Copies the content of the channel configuration into this configuration.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChannel()
The channel name.
|
java.lang.String |
getChannelGroup()
The channel group name.
|
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
int |
hashCode() |
void |
setChannel(java.lang.String channel)
Sets the name of the channel.
|
void |
setChannel(java.lang.String channelGroup,
java.lang.String channel)
Sets the channel and channel group names.
|
void |
setChannelGroup(java.lang.String channelGroup)
Sets the name of the channel group.
|
java.lang.String |
toString() |
public ChannelConfiguration()
public ChannelConfiguration(java.lang.String channelGroup,
java.lang.String channel)
channelGroup - The channel group name.channel - The channel name.public ChannelConfiguration(ChannelConfiguration configuration)
configuration - The configuration to copy.public java.lang.String getTypeIdentifier()
ConfigurationgetTypeIdentifier in interface Configurationpublic java.lang.String getChannel()
public java.lang.String getChannelGroup()
public void setChannel(java.lang.String channel)
channel - Name of channel.public void copyConfiguration(ChannelConfiguration configuration)
configuration - The channel configuration to copy.public void setChannel(java.lang.String channelGroup,
java.lang.String channel)
channelGroup - Name of channel group.channel - Name of channel.public void setChannelGroup(java.lang.String channelGroup)
channelGroup - Channel group name.public ChannelConfiguration clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(ChannelConfiguration otherChannel)
compareTo in interface java.lang.Comparable<ChannelConfiguration>public void checkConfiguration()
throws ConfigurationException
ConfigurationConfigurationException is thrown describing the error, and what has to be changed in the configuration, by the user,
such that it becomes valid. This error can then e.g. be displayed to the user
(see ConfigurationAddonTools.displayConfigurationInvalid(ConfigurationException, YouScopeClient).checkConfiguration in interface ConfigurationConfigurationException