Class PropertyGroup
- java.lang.Object
-
- org.rodnansol.core.generator.template.data.PropertyGroup
-
public class PropertyGroup extends Object
Class representing a property group.- Since:
- 0.1.0
- Author:
- nandorholozsnyak
-
-
Constructor Summary
Constructors Constructor Description PropertyGroup(String groupName, String type, String sourceType)PropertyGroup(String groupName, String type, String sourceType, List<Property> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyGroupaddChildGroup(PropertyGroup childGroup)Add a new child group.PropertyGroupaddProperty(Property property)Add a new property to the property group.static PropertyGroupcreateUnknownGroup()Creates a group that has 'Unknown' type and source type.booleanequals(Object o)List<PropertyGroup>getChildrenGroups()StringgetGroupName()PropertyGroupgetParentGroup()List<Property>getProperties()StringgetSourceType()StringgetType()inthashCode()booleanisNested()booleanisUnknownGroup()voidsetGroupName(String groupName)voidsetNested(boolean nested)voidsetParentGroup(PropertyGroup parentGroup)voidsetProperties(List<Property> properties)voidsetUnknownGroup(boolean unknownGroup)StringtoString()
-
-
-
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()
-
getParentGroup
public PropertyGroup getParentGroup()
-
setParentGroup
public void setParentGroup(PropertyGroup parentGroup)
-
isNested
public boolean isNested()
-
setNested
public void setNested(boolean nested)
-
getGroupName
public String getGroupName()
-
getSourceType
public String getSourceType()
-
getChildrenGroups
public List<PropertyGroup> getChildrenGroups()
-
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.
-
-