Interface GroupModel

    • Method Detail

      • setName

        void setName​(String name)
      • setSingleAttribute

        void setSingleAttribute​(String name,
                                String value)
        Set single value of specified attribute. Remove all other existing values
        Parameters:
        name -
        value -
      • removeAttribute

        void removeAttribute​(String name)
      • getFirstAttribute

        String getFirstAttribute​(String name)
        Parameters:
        name -
        Returns:
        null if there is not any value of specified attribute or first value otherwise. Don't throw exception if there are more values of the attribute
      • getAttributeStream

        Stream<String> getAttributeStream​(String name)
        Returns group attributes that match the given name as a stream.
        Parameters:
        name - String Name of the attribute to be used as a filter.
        Returns:
        Stream of all attribute values or empty stream if there are not any values. Never return null.
      • getParentId

        String getParentId()
      • getSubGroupsStream

        Stream<GroupModel> getSubGroupsStream()
        Returns all sub groups for the parent group as a stream.
        Returns:
        Stream of GroupModel. Never returns null.
      • setParent

        void setParent​(GroupModel group)
        You must also call addChild on the parent group, addChild on RealmModel if there is no parent group
        Parameters:
        group -
      • addChild

        void addChild​(GroupModel subGroup)
        Automatically calls setParent() on the subGroup
        Parameters:
        subGroup -
      • removeChild

        void removeChild​(GroupModel subGroup)
        Automatically calls setParent() on the subGroup
        Parameters:
        subGroup -