/** * Get all {@link ClassificationModel} instances attached to this {@link ReportFileModel} */ @Adjacency(label = ClassificationModel.FILE_MODEL, direction = Direction.IN) default List<ClassificationModel> getClassificationModels() { List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement()) .in(ClassificationModel.FILE_MODEL) .toList(); return vertices.stream().map(v -> getGraph().frameElement(v, ClassificationModel.class)) .collect(Collectors.toList()); }
/** * Get all {@link ClassificationModel} instances attached to this {@link ReportFileModel} */ @Adjacency(label = ClassificationModel.FILE_MODEL, direction = Direction.IN) default List<ClassificationModel> getClassificationModels() { List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement()) .in(ClassificationModel.FILE_MODEL) .toList(); return vertices.stream().map(v -> getGraph().frameElement(v, ClassificationModel.class)) .collect(Collectors.toList()); }
/** * Get all {@link InlineHintModel} instances attached to this {@link ReportFileModel} */ default List<InlineHintModel> getInlineHints() { List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement()) .in(FileReferenceModel.FILE_MODEL) .has(WindupVertexFrame.TYPE_PROP, InlineHintModel.TYPE) .toList(); return vertices.stream().map(v -> getGraph().frameElement(v, InlineHintModel.class)) .collect(Collectors.toList()); }
/** * Get all {@link InlineHintModel} instances attached to this {@link ReportFileModel} */ default List<InlineHintModel> getInlineHints() { List<Vertex> vertices = new GraphTraversalSource(getWrappedGraph().getBaseGraph()).V(getElement()) .in(FileReferenceModel.FILE_MODEL) .has(WindupVertexFrame.TYPE_PROP, InlineHintModel.TYPE) .toList(); return vertices.stream().map(v -> getGraph().frameElement(v, InlineHintModel.class)) .collect(Collectors.toList()); }