Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class StoryImpl extends AdditionalItemsImpl implements Story {
- private SizeType sizeType;
- private StoryStatus status;
- private WorkItemType itemType;
- public StoryImpl(String title, String description, PriorityType priorityType, String assignee,
- SizeType sizeType, StoryStatus status) {
- super(title, description, priorityType, assignee);
- setSizeType(sizeType);
- setStoryStatus(status);
- itemType = WorkItemType.STORY;
- }
- public WorkItemType getWorkItemType(){
- return itemType;
- }
- @Override
- public String additionalInfo() {
- return String.format("%s%n Size of the story: %s%n Story status: %s%n",
- super.additionalInfo(), getSizeType(), getStoryStatus());
- }
- public void changeSize(SizeType newSizeType){
- setSizeType(newSizeType);
- }
- public void changeStoryStatus(StoryStatus newStoryStatus){
- setStoryStatus(newStoryStatus);
- }
- public SizeType getSizeType(){
- return sizeType;
- }
- public StoryStatus getStoryStatus(){
- return status;
- }
- private void setSizeType(SizeType sizeType){
- this.sizeType = sizeType;
- }
- private void setStoryStatus(StoryStatus status){
- this.status = status;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement