/** * Contains a the id of the {@link IssueCategory} (for example, mandatory or potential). */ default IssueCategoryModel getIssueCategory() { Iterator<Vertex> categoryVertices = getElement().vertices(Direction.OUT, ISSUE_CATEGORY); IssueCategoryModel result; if (categoryVertices.hasNext()) { result = getGraph().frameElement(categoryVertices.next(), IssueCategoryModel.class); } else { result = IssueCategoryRegistry.loadFromGraph(getGraph(), IssueCategoryRegistry.DEFAULT); } return result; }
/** * Contains a the id of the {@link IssueCategory} (for example, mandatory or potential). */ default IssueCategoryModel getIssueCategory() { Iterator<Vertex> categoryVertices = getElement().vertices(Direction.OUT, ISSUE_CATEGORY); IssueCategoryModel result; if (categoryVertices.hasNext()) { result = getGraph().frameElement(categoryVertices.next(), IssueCategoryModel.class); } else { result = IssueCategoryRegistry.loadFromGraph(getGraph(), IssueCategoryRegistry.DEFAULT); } return result; }