gpt4 book ai didi

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

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

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

WindupVertexFrame.toPrettyString介绍

暂无

代码示例

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

public T getUniqueByProperty(String property, Object value, boolean enforceType) throws NonUniqueResultException
{
  Iterable<T> results = findAllByProperty(property, value, enforceType);
  T result = null;
  for (WindupVertexFrame item : results)
  {
    // There can be other types using the same property name.
    if (!type.isInstance(item))
      continue;
    if (result != null)
    {
      throw new NonUniqueResultException("Expected unique value, but returned non-unique: " + property + " Conflicting models:"
          + NL + "\t" + StringUtils.join(item.getClass().getInterfaces(), ", ") + NL + "\t\t" + item.toPrettyString()
          + NL + "\t" + StringUtils.join(result.getClass().getInterfaces(), ", ") + NL + "\t\t" + result.toPrettyString());
    }
    result = (T) item;
  }
  return result;
}

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

public T getUniqueByProperty(String property, Object value, boolean enforceType) throws NonUniqueResultException
{
  Iterable<T> results = findAllByProperty(property, value, enforceType);
  T result = null;
  for (WindupVertexFrame item : results)
  {
    // There can be other types using the same property name.
    if (!type.isInstance(item))
      continue;
    if (result != null)
    {
      throw new NonUniqueResultException("Expected unique value, but returned non-unique: " + property + " Conflicting models:"
          + NL + "\t" + StringUtils.join(item.getClass().getInterfaces(), ", ") + NL + "\t\t" + item.toPrettyString()
          + NL + "\t" + StringUtils.join(result.getClass().getInterfaces(), ", ") + NL + "\t\t" + result.toPrettyString());
    }
    result = (T) item;
  }
  return result;
}

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

/**
 * Returns the ReportModel with given name.
 */
@SuppressWarnings("unchecked")
public <T extends ReportModel> T getReportByName(String name, Class<T> clazz)
{
  WindupVertexFrame model = this.getUniqueByProperty(ReportModel.REPORT_NAME, name);
  try
  {
    return (T) model;
  }
  catch (ClassCastException ex)
  {
    throw new WindupException("The vertex is not of expected frame type " + clazz.getName() + ": " + model.toPrettyString());
  }
}

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

/**
 * Returns the ReportModel with given name.
 */
@SuppressWarnings("unchecked")
public <T extends ReportModel> T getReportByName(String name, Class<T> clazz)
{
  WindupVertexFrame model = this.getUniqueByProperty(ReportModel.REPORT_NAME, name);
  try
  {
    return (T) model;
  }
  catch (ClassCastException ex)
  {
    throw new WindupException("The vertex is not of expected frame type " + clazz.getName() + ": " + model.toPrettyString());
  }
}

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

private XmlFileModel getXmlFileModelFromVertex(WindupVertexFrame vertexFrame) {
  final XmlFileModel xml;
  if (vertexFrame instanceof FileReferenceModel)
  {
    xml = (XmlFileModel) ((FileReferenceModel) vertexFrame).getFile();
  }
  else if (vertexFrame instanceof XmlFileModel)
  {
    xml = (XmlFileModel) vertexFrame;
  }
  else
  {
    throw new WindupException("XmlFile was called on the wrong graph type ( " + vertexFrame.toPrettyString()
          + ")");
  }
  return xml;
}

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

+ System.lineSeparator()+"    Old: %s"
    + System.lineSeparator()+"    New: %s"
    + "%s", frame.toPrettyString(), last, frame,
    paramValueStoreOverwritten ? "" : System.lineSeparator()+"Further incidents will be logged at FINER level as it may occur millions of times."));
paramValueStoreOverwritten = true;

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

+ System.lineSeparator()+"    Old: %s"
    + System.lineSeparator()+"    New: %s"
    + "%s", frame.toPrettyString(), last, frame,
    paramValueStoreOverwritten ? "" : System.lineSeparator()+"Further incidents will be logged at FINER level as it may occur millions of times."));
paramValueStoreOverwritten = true;

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

LOG.warning(payload.toPrettyString());
return;

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee

LOG.warning(payload.toPrettyString());
return;

代码示例来源:origin: org.jboss.windup.rules.apps/rules-xml

throw new WindupException("XmlFile was called on the wrong graph type ( " + iterated.toPrettyString()
      + ")");

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

throw new WindupException("Failed when iterating " + frame.toPrettyString() + ", due to: " + e.getMessage(), e);

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

throw new WindupException("Failed when iterating " + frame.toPrettyString() + ", due to: " + e.getMessage(), e);

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