gpt4 book ai didi

org.jboss.windup.graph.model.WindupVertexFrame.getElement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 14:07:05 25 4
gpt4 key购买 nike

本文整理了Java中org.jboss.windup.graph.model.WindupVertexFrame.getElement()方法的一些代码示例,展示了WindupVertexFrame.getElement()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindupVertexFrame.getElement()方法的具体详情如下:
包路径:org.jboss.windup.graph.model.WindupVertexFrame
类名称:WindupVertexFrame
方法名:getElement

WindupVertexFrame.getElement介绍

暂无

代码示例

代码示例来源:origin: windup/windup

private void fillInNextFrame() {
  while(wrappedIterator.hasNext() && nextFrame==null) {
    T frame = wrappedIterator.next();
    String frameId = frame.getElement().id().toString();
    if(!ids.contains(frameId)) {
      ids.add(frameId);
      nextFrame=frame;
    }
  }
}

代码示例来源:origin: org.jboss.windup.graph/windup-graph-api

private void fillInNextFrame() {
  while(wrappedIterator.hasNext() && nextFrame==null) {
    T frame = wrappedIterator.next();
    String frameId = frame.getElement().id().toString();
    if(!ids.contains(frameId)) {
      ids.add(frameId);
      nextFrame=frame;
    }
  }
}

代码示例来源:origin: org.jboss.windup.web.addons/windup-web-support-impl

protected List<Map<String, Object>> frameIterableToResult(long executionID, Iterable<? extends WindupVertexFrame> frames, int depth)
{
  GraphMarshallingContext ctx = new GraphMarshallingContext(executionID, null, depth, false, Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), true);
  List<Map<String, Object>> result = new ArrayList<>();
  for (WindupVertexFrame frame : frames)
  {
    result.add(convertToMap(ctx, frame.getElement()));
  }
  return result;
}

代码示例来源:origin: org.jboss.windup.graph/windup-graph-api

@Override
public void remove(final T model)
{
  ExecutionStatistics.performBenchmarked("GraphService.commit", () ->
  {
    model.getElement().remove();
    return null;
  });
}

代码示例来源:origin: windup/windup

@Override
public void remove(final T model)
{
  ExecutionStatistics.performBenchmarked("GraphService.commit", () ->
  {
    model.getElement().remove();
    return null;
  });
}

代码示例来源:origin: windup/windup

/**
 * Adds the specified type to this frame, and returns a new object that implements this type.
 */
public static <T extends WindupVertexFrame> T addTypeToModel(GraphContext graphContext, WindupVertexFrame frame, Class<T> type)
{
  Vertex vertex = frame.getElement();
  graphContext.getGraphTypeManager().addTypeToElement(type, vertex);
  return graphContext.getFramed().frameElement(vertex, type);
}

代码示例来源:origin: windup/windup

/**
 * Removes the specified type from the frame.
 */
public static <T extends WindupVertexFrame> WindupVertexFrame removeTypeFromModel(GraphContext graphContext, WindupVertexFrame frame, Class<T> type)
{
  Vertex vertex = frame.getElement();
  graphContext.getGraphTypeManager().removeTypeFromElement(type, vertex);
  return graphContext.getFramed().frameElement(vertex, WindupVertexFrame.class);
}

代码示例来源:origin: org.jboss.windup.web.addons/windup-web-support-impl

entity.getElement(),
1,
false,

代码示例来源:origin: org.jboss.windup.graph/windup-graph-api

/**
 * Adds the specified type to this frame, and returns a new object that implements this type.
 */
public static <T extends WindupVertexFrame> T addTypeToModel(GraphContext graphContext, WindupVertexFrame frame, Class<T> type)
{
  Vertex vertex = frame.getElement();
  graphContext.getGraphTypeManager().addTypeToElement(type, vertex);
  return graphContext.getFramed().frameElement(vertex, type);
}

代码示例来源:origin: org.jboss.windup.graph/windup-graph-api

/**
 * Removes the specified type from the frame.
 */
public static <T extends WindupVertexFrame> WindupVertexFrame removeTypeFromModel(GraphContext graphContext, WindupVertexFrame frame, Class<T> type)
{
  Vertex vertex = frame.getElement();
  graphContext.getGraphTypeManager().removeTypeFromElement(type, vertex);
  return graphContext.getFramed().frameElement(vertex, WindupVertexFrame.class);
}

代码示例来源:origin: org.jboss.windup.config/windup-config-api

List<Vertex> results = new ArrayList<>();
for (WindupVertexFrame frame : frames)
  results.add(frame.getElement());
return results;

代码示例来源:origin: windup/windup

List<Vertex> results = new ArrayList<>();
for (WindupVertexFrame frame : frames)
  results.add(frame.getElement());
return results;

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com