Class PropertyGroup


  • public class PropertyGroup
    extends Object
    Class representing a property group.
    Since:
    0.1.0
    Author:
    nandorholozsnyak
    • Method Detail

      • createUnknownGroup

        public static PropertyGroup createUnknownGroup()
        Creates a group that has 'Unknown' type and source type.
        Returns:
        unknown group.
      • setGroupName

        public void setGroupName​(String groupName)
      • getType

        public String getType()
      • setProperties

        public void setProperties​(List<Property> properties)
      • setParentGroup

        public void setParentGroup​(PropertyGroup parentGroup)
      • isNested

        public boolean isNested()
      • setNested

        public void setNested​(boolean nested)
      • getGroupName

        public String getGroupName()
      • getSourceType

        public String getSourceType()
      • isUnknownGroup

        public boolean isUnknownGroup()
      • setUnknownGroup

        public void setUnknownGroup​(boolean unknownGroup)
      • addChildGroup

        public PropertyGroup addChildGroup​(PropertyGroup childGroup)
        Add a new child group.
        Parameters:
        childGroup - group to be added as a new child.
      • addProperty

        public PropertyGroup addProperty​(Property property)
        Add a new property to the property group.
        Parameters:
        property - new property.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object