public CategoryBuilder() { category = new Category(); category.setName("integrated weapon systems"); category.setDomain(new DomainBuilder().build()); category.setChildCategories(null); category.setParentCategory(null); }
public CategoryBuilder withParentCategory(Category parentCategory) { category.setParentCategory(parentCategory); return this; }
public CategoryBuilder withDomain(Domain domain) { category.setDomain(domain); return this; }
public CategoryBuilder withName(String name) { category.setName(name); return this; }
public CategoryBuilder withId(Long id) { category.setId(id); return this; }