test_class.file: bundles/org.openhab.core/src/test/java/org/openhab/core/items/GenericItemTest.java
test_class.identifier: GenericItemTest
test_case.body: @Test
      public void testAddGroupNamesWithNull() {
          TestItem item = new TestItem("member1");
          assertThrows(IllegalArgumentException.class,
                  () -> item.addGroupNames(Arrays.asList("group-a", toNull(), "group-b")));
      }
test_case.class_method_signature: GenericItemTest.testAddGroupNamesWithNull()
test_case.full_signature: @Test public void testAddGroupNamesWithNull()
test_case.identifier: testAddGroupNamesWithNull
test_case.invocations: assertThrows addGroupNames asList toNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAddGroupNamesWithNull()
focal_class.declarator: logger = LoggerFactory.getLogger(GenericItem.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(GenericItem.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: ITEM_THREADPOOLNAME = "items"
focal_class.modifier: private static final
focal_class.original_string: private static final String ITEM_THREADPOOLNAME = "items";
focal_class.type: String
focal_class.var_name: ITEM_THREADPOOLNAME
focal_class.declarator: eventPublisher
focal_class.modifier: protected @Nullable
focal_class.original_string: protected @Nullable EventPublisher eventPublisher;
focal_class.type: EventPublisher
focal_class.var_name: eventPublisher
focal_class.declarator: listeners = new CopyOnWriteArraySet<>(
              Collections.newSetFromMap(new WeakHashMap<>()))
focal_class.modifier: protected
focal_class.original_string: protected Set<StateChangeListener> listeners = new CopyOnWriteArraySet<>(
              Collections.newSetFromMap(new WeakHashMap<>()));
focal_class.type: Set<StateChangeListener>
focal_class.var_name: listeners
focal_class.declarator: groupNames = new ArrayList<>()
focal_class.modifier: protected
focal_class.original_string: protected List<String> groupNames = new ArrayList<>();
focal_class.type: List<String>
focal_class.var_name: groupNames
focal_class.declarator: tags = new HashSet<>()
focal_class.modifier: protected
focal_class.original_string: protected Set<String> tags = new HashSet<>();
focal_class.type: Set<String>
focal_class.var_name: tags
focal_class.declarator: name
focal_class.modifier: protected final
focal_class.original_string: protected final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: type
focal_class.modifier: protected final
focal_class.original_string: protected final String type;
focal_class.type: String
focal_class.var_name: type
focal_class.declarator: state = UnDefType.NULL
focal_class.modifier: protected
focal_class.original_string: protected State state = UnDefType.NULL;
focal_class.type: State
focal_class.var_name: state
focal_class.declarator: label
focal_class.modifier: protected @Nullable
focal_class.original_string: protected @Nullable String label;
focal_class.type: String
focal_class.var_name: label
focal_class.declarator: category
focal_class.modifier: protected @Nullable
focal_class.original_string: protected @Nullable String category;
focal_class.type: String
focal_class.var_name: category
focal_class.declarator: stateDescriptionService
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable StateDescriptionService stateDescriptionService;
focal_class.type: StateDescriptionService
focal_class.var_name: stateDescriptionService
focal_class.declarator: commandDescriptionService
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable CommandDescriptionService commandDescriptionService;
focal_class.type: CommandDescriptionService
focal_class.var_name: commandDescriptionService
focal_class.declarator: unitProvider
focal_class.modifier: protected @Nullable
focal_class.original_string: protected @Nullable UnitProvider unitProvider;
focal_class.type: UnitProvider
focal_class.var_name: unitProvider
focal_class.declarator: itemStateConverter
focal_class.modifier: protected @Nullable
focal_class.original_string: protected @Nullable ItemStateConverter itemStateConverter;
focal_class.type: ItemStateConverter
focal_class.var_name: itemStateConverter
focal_class.file: bundles/org.openhab.core/src/main/java/org/openhab/core/items/GenericItem.java
focal_class.identifier: GenericItem
focal_class.interfaces: implements ActiveItem
focal_class.class_method_signature: GenericItem.GenericItem(String type, String name)
focal_class.full_signature: public  GenericItem(String type, String name)
focal_class.identifier: GenericItem
focal_class.modifiers: public
focal_class.parameters: (String type, String name)
focal_class.signature:  GenericItem(String type, String name)
focal_class.class_method_signature: GenericItem.getState()
focal_class.full_signature: @Override public State getState()
focal_class.identifier: getState
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: State
focal_class.signature: State getState()
focal_class.class_method_signature: GenericItem.getStateAs(Class<T> typeClass)
focal_class.full_signature: @Override public T getStateAs(Class<T> typeClass)
focal_class.identifier: getStateAs
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> typeClass)
focal_class.return: T
focal_class.signature: T getStateAs(Class<T> typeClass)
focal_class.class_method_signature: GenericItem.getUID()
focal_class.full_signature: @Override public String getUID()
focal_class.identifier: getUID
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUID()
focal_class.class_method_signature: GenericItem.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: GenericItem.getType()
focal_class.full_signature: @Override public String getType()
focal_class.identifier: getType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getType()
focal_class.class_method_signature: GenericItem.getGroupNames()
focal_class.full_signature: @Override public List<String> getGroupNames()
focal_class.identifier: getGroupNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getGroupNames()
focal_class.class_method_signature: GenericItem.addGroupName(String groupItemName)
focal_class.full_signature: @Override public void addGroupName(String groupItemName)
focal_class.identifier: addGroupName
focal_class.modifiers: @Override public
focal_class.parameters: (String groupItemName)
focal_class.return: void
focal_class.signature: void addGroupName(String groupItemName)
focal_class.class_method_signature: GenericItem.addGroupNames(String... groupItemNames)
focal_class.full_signature: @Override public void addGroupNames(String... groupItemNames)
focal_class.identifier: addGroupNames
focal_class.modifiers: @Override public
focal_class.parameters: (String... groupItemNames)
focal_class.return: void
focal_class.signature: void addGroupNames(String... groupItemNames)
focal_class.class_method_signature: GenericItem.addGroupNames(List<String> groupItemNames)
focal_class.full_signature: @Override public void addGroupNames(List<String> groupItemNames)
focal_class.identifier: addGroupNames
focal_class.modifiers: @Override public
focal_class.parameters: (List<String> groupItemNames)
focal_class.return: void
focal_class.signature: void addGroupNames(List<String> groupItemNames)
focal_class.class_method_signature: GenericItem.removeGroupName(String groupItemName)
focal_class.full_signature: @Override public void removeGroupName(String groupItemName)
focal_class.identifier: removeGroupName
focal_class.modifiers: @Override public
focal_class.parameters: (String groupItemName)
focal_class.return: void
focal_class.signature: void removeGroupName(String groupItemName)
focal_class.class_method_signature: GenericItem.dispose()
focal_class.full_signature: public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: GenericItem.setEventPublisher(@Nullable EventPublisher eventPublisher)
focal_class.full_signature: public void setEventPublisher(@Nullable EventPublisher eventPublisher)
focal_class.identifier: setEventPublisher
focal_class.modifiers: public
focal_class.parameters: (@Nullable EventPublisher eventPublisher)
focal_class.return: void
focal_class.signature: void setEventPublisher(@Nullable EventPublisher eventPublisher)
focal_class.class_method_signature: GenericItem.setStateDescriptionService(@Nullable StateDescriptionService stateDescriptionService)
focal_class.full_signature: public void setStateDescriptionService(@Nullable StateDescriptionService stateDescriptionService)
focal_class.identifier: setStateDescriptionService
focal_class.modifiers: public
focal_class.parameters: (@Nullable StateDescriptionService stateDescriptionService)
focal_class.return: void
focal_class.signature: void setStateDescriptionService(@Nullable StateDescriptionService stateDescriptionService)
focal_class.class_method_signature: GenericItem.setCommandDescriptionService(@Nullable CommandDescriptionService commandDescriptionService)
focal_class.full_signature: public void setCommandDescriptionService(@Nullable CommandDescriptionService commandDescriptionService)
focal_class.identifier: setCommandDescriptionService
focal_class.modifiers: public
focal_class.parameters: (@Nullable CommandDescriptionService commandDescriptionService)
focal_class.return: void
focal_class.signature: void setCommandDescriptionService(@Nullable CommandDescriptionService commandDescriptionService)
focal_class.class_method_signature: GenericItem.setUnitProvider(@Nullable UnitProvider unitProvider)
focal_class.full_signature: public void setUnitProvider(@Nullable UnitProvider unitProvider)
focal_class.identifier: setUnitProvider
focal_class.modifiers: public
focal_class.parameters: (@Nullable UnitProvider unitProvider)
focal_class.return: void
focal_class.signature: void setUnitProvider(@Nullable UnitProvider unitProvider)
focal_class.class_method_signature: GenericItem.setItemStateConverter(@Nullable ItemStateConverter itemStateConverter)
focal_class.full_signature: public void setItemStateConverter(@Nullable ItemStateConverter itemStateConverter)
focal_class.identifier: setItemStateConverter
focal_class.modifiers: public
focal_class.parameters: (@Nullable ItemStateConverter itemStateConverter)
focal_class.return: void
focal_class.signature: void setItemStateConverter(@Nullable ItemStateConverter itemStateConverter)
focal_class.class_method_signature: GenericItem.internalSend(Command command)
focal_class.full_signature: protected void internalSend(Command command)
focal_class.identifier: internalSend
focal_class.modifiers: protected
focal_class.parameters: (Command command)
focal_class.return: void
focal_class.signature: void internalSend(Command command)
focal_class.class_method_signature: GenericItem.setState(State state)
focal_class.full_signature: public void setState(State state)
focal_class.identifier: setState
focal_class.modifiers: public
focal_class.parameters: (State state)
focal_class.return: void
focal_class.signature: void setState(State state)
focal_class.class_method_signature: GenericItem.applyState(State state)
focal_class.full_signature: protected final void applyState(State state)
focal_class.identifier: applyState
focal_class.modifiers: protected final
focal_class.parameters: (State state)
focal_class.return: void
focal_class.signature: void applyState(State state)
focal_class.class_method_signature: GenericItem.sendStateChangedEvent(State newState, State oldState)
focal_class.full_signature: private void sendStateChangedEvent(State newState, State oldState)
focal_class.identifier: sendStateChangedEvent
focal_class.modifiers: private
focal_class.parameters: (State newState, State oldState)
focal_class.return: void
focal_class.signature: void sendStateChangedEvent(State newState, State oldState)
focal_class.class_method_signature: GenericItem.send(RefreshType command)
focal_class.full_signature: public void send(RefreshType command)
focal_class.identifier: send
focal_class.modifiers: public
focal_class.parameters: (RefreshType command)
focal_class.return: void
focal_class.signature: void send(RefreshType command)
focal_class.class_method_signature: GenericItem.notifyListeners(final State oldState, final State newState)
focal_class.full_signature: protected void notifyListeners(final State oldState, final State newState)
focal_class.identifier: notifyListeners
focal_class.modifiers: protected
focal_class.parameters: (final State oldState, final State newState)
focal_class.return: void
focal_class.signature: void notifyListeners(final State oldState, final State newState)
focal_class.class_method_signature: GenericItem.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: GenericItem.addStateChangeListener(StateChangeListener listener)
focal_class.full_signature: public void addStateChangeListener(StateChangeListener listener)
focal_class.identifier: addStateChangeListener
focal_class.modifiers: public
focal_class.parameters: (StateChangeListener listener)
focal_class.return: void
focal_class.signature: void addStateChangeListener(StateChangeListener listener)
focal_class.class_method_signature: GenericItem.removeStateChangeListener(StateChangeListener listener)
focal_class.full_signature: public void removeStateChangeListener(StateChangeListener listener)
focal_class.identifier: removeStateChangeListener
focal_class.modifiers: public
focal_class.parameters: (StateChangeListener listener)
focal_class.return: void
focal_class.signature: void removeStateChangeListener(StateChangeListener listener)
focal_class.class_method_signature: GenericItem.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: GenericItem.equals(@Nullable Object obj)
focal_class.full_signature: @Override public boolean equals(@Nullable Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable Object obj)
focal_class.class_method_signature: GenericItem.getTags()
focal_class.full_signature: @Override public Set<String> getTags()
focal_class.identifier: getTags
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getTags()
focal_class.class_method_signature: GenericItem.hasTag(String tag)
focal_class.full_signature: @Override public boolean hasTag(String tag)
focal_class.identifier: hasTag
focal_class.modifiers: @Override public
focal_class.parameters: (String tag)
focal_class.return: boolean
focal_class.signature: boolean hasTag(String tag)
focal_class.class_method_signature: GenericItem.addTag(String tag)
focal_class.full_signature: @Override public void addTag(String tag)
focal_class.identifier: addTag
focal_class.modifiers: @Override public
focal_class.parameters: (String tag)
focal_class.return: void
focal_class.signature: void addTag(String tag)
focal_class.class_method_signature: GenericItem.addTags(Collection<String> tags)
focal_class.full_signature: @Override public void addTags(Collection<String> tags)
focal_class.identifier: addTags
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<String> tags)
focal_class.return: void
focal_class.signature: void addTags(Collection<String> tags)
focal_class.class_method_signature: GenericItem.addTags(String... tags)
focal_class.full_signature: @Override public void addTags(String... tags)
focal_class.identifier: addTags
focal_class.modifiers: @Override public
focal_class.parameters: (String... tags)
focal_class.return: void
focal_class.signature: void addTags(String... tags)
focal_class.class_method_signature: GenericItem.removeTag(String tag)
focal_class.full_signature: @Override public void removeTag(String tag)
focal_class.identifier: removeTag
focal_class.modifiers: @Override public
focal_class.parameters: (String tag)
focal_class.return: void
focal_class.signature: void removeTag(String tag)
focal_class.class_method_signature: GenericItem.removeAllTags()
focal_class.full_signature: @Override public void removeAllTags()
focal_class.identifier: removeAllTags
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeAllTags()
focal_class.class_method_signature: GenericItem.getLabel()
focal_class.full_signature: @Override public @Nullable String getLabel()
focal_class.identifier: getLabel
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLabel()
focal_class.class_method_signature: GenericItem.setLabel(@Nullable String label)
focal_class.full_signature: @Override public void setLabel(@Nullable String label)
focal_class.identifier: setLabel
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable String label)
focal_class.return: void
focal_class.signature: void setLabel(@Nullable String label)
focal_class.class_method_signature: GenericItem.getCategory()
focal_class.full_signature: @Override public @Nullable String getCategory()
focal_class.identifier: getCategory
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCategory()
focal_class.class_method_signature: GenericItem.setCategory(@Nullable String category)
focal_class.full_signature: @Override public void setCategory(@Nullable String category)
focal_class.identifier: setCategory
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable String category)
focal_class.return: void
focal_class.signature: void setCategory(@Nullable String category)
focal_class.class_method_signature: GenericItem.getStateDescription()
focal_class.full_signature: @Override public @Nullable StateDescription getStateDescription()
focal_class.identifier: getStateDescription
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: StateDescription
focal_class.signature: StateDescription getStateDescription()
focal_class.class_method_signature: GenericItem.getStateDescription(@Nullable Locale locale)
focal_class.full_signature: @Override public @Nullable StateDescription getStateDescription(@Nullable Locale locale)
focal_class.identifier: getStateDescription
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (@Nullable Locale locale)
focal_class.return: StateDescription
focal_class.signature: StateDescription getStateDescription(@Nullable Locale locale)
focal_class.class_method_signature: GenericItem.getCommandDescription(@Nullable Locale locale)
focal_class.full_signature: @Override public @Nullable CommandDescription getCommandDescription(@Nullable Locale locale)
focal_class.identifier: getCommandDescription
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (@Nullable Locale locale)
focal_class.return: CommandDescription
focal_class.signature: CommandDescription getCommandDescription(@Nullable Locale locale)
focal_class.class_method_signature: GenericItem.isAcceptedState(List<Class<? extends State>> acceptedDataTypes, State state)
focal_class.full_signature: public boolean isAcceptedState(List<Class<? extends State>> acceptedDataTypes, State state)
focal_class.identifier: isAcceptedState
focal_class.modifiers: public
focal_class.parameters: (List<Class<? extends State>> acceptedDataTypes, State state)
focal_class.return: boolean
focal_class.signature: boolean isAcceptedState(List<Class<? extends State>> acceptedDataTypes, State state)
focal_class.class_method_signature: GenericItem.logSetTypeError(State state)
focal_class.full_signature: protected void logSetTypeError(State state)
focal_class.identifier: logSetTypeError
focal_class.modifiers: protected
focal_class.parameters: (State state)
focal_class.return: void
focal_class.signature: void logSetTypeError(State state)
focal_class.class_method_signature: GenericItem.stateOptions2CommandOptions(StateDescription stateDescription)
focal_class.full_signature: private @Nullable CommandDescription stateOptions2CommandOptions(StateDescription stateDescription)
focal_class.identifier: stateOptions2CommandOptions
focal_class.modifiers: private @Nullable
focal_class.parameters: (StateDescription stateDescription)
focal_class.return: CommandDescription
focal_class.signature: CommandDescription stateOptions2CommandOptions(StateDescription stateDescription)
focal_method.body: @Override
      public void addGroupNames(String... groupItemNames) {
          for (String groupItemName : groupItemNames) {
              addGroupName(groupItemName);
          }
      }
focal_method.class_method_signature: GenericItem.addGroupNames(String... groupItemNames)
focal_method.full_signature: @Override public void addGroupNames(String... groupItemNames)
focal_method.identifier: addGroupNames
focal_method.invocations: addGroupName
focal_method.modifiers: @Override public
focal_method.parameters: (String... groupItemNames)
focal_method.return: void
focal_method.signature: void addGroupNames(String... groupItemNames)