Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Item constants constant #128

Merged
merged 6 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* @author Robert Delbrück - Initial contribution
*/
public interface JRuleDimmerItem extends JRuleSwitchItem {
String INCREASE = JRuleIncreaseDecreaseValue.INCREASE.stringValue();
String DECREASE = JRuleIncreaseDecreaseValue.DECREASE.stringValue();
String INCREASE = "INCREASE";
String DECREASE = "DECREASE";

static JRuleDimmerItem forName(String itemName) throws JRuleItemNotFoundException {
return JRuleItemRegistry.get(itemName, JRuleInternalDimmerItem.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
* @author Robert Delbrück - Initial contribution
*/
public interface JRulePlayerItem extends JRuleItem {
String PLAY = JRulePlayPauseValue.PLAY.stringValue();
String PAUSE = JRulePlayPauseValue.PAUSE.stringValue();
String NEXT = JRuleNextPreviousValue.NEXT.stringValue();
String PREVIOUS = JRuleNextPreviousValue.PREVIOUS.stringValue();
String REWIND = JRuleRewindFastforwardValue.REWIND.stringValue();
String FASTFORWARD = JRuleRewindFastforwardValue.FASTFORWARD.stringValue();
String PLAY = "PLAY";
String PAUSE = "PAUSE";
String NEXT = "NEXT";
String PREVIOUS = "PREVIOUS";
String REWIND = "REWIND";
String FASTFORWARD = "FASTFORWARD";

static JRulePlayerItem forName(String itemName) throws JRuleItemNotFoundException {
return JRuleItemRegistry.get(itemName, JRuleInternalPlayerItem.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
* @author Robert Delbrück - Initial contribution
*/
public interface JRuleRollershutterItem extends JRuleItem {
String STOP = JRuleStopMoveValue.STOP.stringValue();
String MOVE = JRuleStopMoveValue.MOVE.stringValue();
String UP = JRuleUpDownValue.UP.stringValue();
String DOWN = JRuleUpDownValue.DOWN.stringValue();
String STOP = "STOP";
String MOVE = "MOVE";
String UP = "UP";
String DOWN = "DOWN";

static JRuleRollershutterItem forName(String itemName) throws JRuleItemNotFoundException {
return JRuleItemRegistry.get(itemName, JRuleInternalRollershutterItem.class);
Expand Down