gpt4 book ai didi

uk.co.real_logic.sbe.xml.XmlSchemaParser.handleWarning()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 03:21:05 43 4
gpt4 key购买 nike

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

XmlSchemaParser.handleWarning介绍

[英]Handle a warning condition as a consequence of parsing.
[中]处理作为解析结果的警告条件。

代码示例

代码示例来源:origin: real-logic/simple-binary-encoding

/**
 * Check name against validity for C++ and Java naming. Warning if not valid.
 *
 * @param node to have the name checked.
 * @param name of the node to be checked.
 */
public static void checkForValidName(final Node node, final String name)
{
  if (!ValidationUtil.isSbeCppName(name))
  {
    handleWarning(node, "name is not valid for C++: " + name);
  }
  if (!ValidationUtil.isSbeJavaName(name))
  {
    handleWarning(node, "name is not valid for Java: " + name);
  }
  if (!ValidationUtil.isSbeGolangName(name))
  {
    handleWarning(node, "name is not valid for Golang: " + name);
  }
  if (!ValidationUtil.isSbeCSharpName(name))
  {
    handleWarning(node, "name is not valid for C#: " + name);
  }
}

代码示例来源:origin: real-logic/simple-binary-encoding

private static void addTypeWithNameCheck(final Map<String, Type> typeByNameMap, final Type type, final Node node)
{
  if (typeByNameMap.get(type.name()) != null)
  {
    handleWarning(node, "type already exists for name: " + type.name());
  }
  checkForValidName(node, type.name());
  typeByNameMap.put(type.name(), type);
}

代码示例来源:origin: real-logic/simple-binary-encoding

XmlSchemaParser.handleWarning(node, "\"blockLength\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"templateId\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"schemaId\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"version\" should be UINT16");

代码示例来源:origin: real-logic/simple-binary-encoding

handleWarning(node, "Choice value already defined: " + c.primitiveValue());
handleWarning(node, "Choice already exists for name: " + c.name());

代码示例来源:origin: real-logic/simple-binary-encoding

handleWarning(node, "validValue already exists for value: " + v.primitiveValue());
handleWarning(node, "validValue already exists for name: " + v.name());

代码示例来源:origin: real-logic/simple-binary-encoding

XmlSchemaParser.handleWarning(node, "\"length\" should be UINT8, UINT16, or UINT32");

代码示例来源:origin: real-logic/simple-binary-encoding

handleWarning(node, "nullValue set, but presence is not optional");

代码示例来源:origin: real-logic/simple-binary-encoding

XmlSchemaParser.handleWarning(node, "\"blockLength\" should be UINT8 or UINT16");
XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be unsigned type");
final PrimitiveValue numInGroupMinValue = numInGroupType.minValue();
if (null == numInGroupMinValue)
  XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be UINT8 or UINT16");

代码示例来源:origin: uk.co.real-logic/sbe-all

/**
 * Check name against validity for C++ and Java naming. Warning if not valid.
 *
 * @param node to have the name checked.
 * @param name of the node to be checked.
 */
public static void checkForValidName(final Node node, final String name)
{
  if (!ValidationUtil.isSbeCppName(name))
  {
    handleWarning(node, "name is not valid for C++: " + name);
  }
  if (!ValidationUtil.isSbeJavaName(name))
  {
    handleWarning(node, "name is not valid for Java: " + name);
  }
  if (!ValidationUtil.isSbeGolangName(name))
  {
    handleWarning(node, "name is not valid for Golang: " + name);
  }
  if (!ValidationUtil.isSbeCSharpName(name))
  {
    handleWarning(node, "name is not valid for C#: " + name);
  }
}

代码示例来源:origin: uk.co.real-logic/sbe-tool

/**
 * Check name against validity for C++ and Java naming. Warning if not valid.
 *
 * @param node to have the name checked.
 * @param name of the node to be checked.
 */
public static void checkForValidName(final Node node, final String name)
{
  if (!ValidationUtil.isSbeCppName(name))
  {
    handleWarning(node, "name is not valid for C++: " + name);
  }
  if (!ValidationUtil.isSbeJavaName(name))
  {
    handleWarning(node, "name is not valid for Java: " + name);
  }
  if (!ValidationUtil.isSbeGolangName(name))
  {
    handleWarning(node, "name is not valid for Golang: " + name);
  }
  if (!ValidationUtil.isSbeCSharpName(name))
  {
    handleWarning(node, "name is not valid for C#: " + name);
  }
}

代码示例来源:origin: uk.co.real-logic/sbe-tool

private static void addTypeWithNameCheck(final Map<String, Type> typeByNameMap, final Type type, final Node node)
{
  if (typeByNameMap.get(type.name()) != null)
  {
    handleWarning(node, "type already exists for name: " + type.name());
  }
  checkForValidName(node, type.name());
  typeByNameMap.put(type.name(), type);
}

代码示例来源:origin: uk.co.real-logic/sbe

private static void addTypeWithNameCheck(final Map<String, Type> typeByNameMap, final Type type, final Node node)
{
  if (typeByNameMap.get(type.name()) != null)
  {
    handleWarning(node, "type already exists for name: " + type.name());
  }
  checkForValidName(node, type.name());
  typeByNameMap.put(type.name(), type);
}

代码示例来源:origin: uk.co.real-logic/sbe-all

private static void addTypeWithNameCheck(final Map<String, Type> typeByNameMap, final Type type, final Node node)
{
  if (typeByNameMap.get(type.name()) != null)
  {
    handleWarning(node, "type already exists for name: " + type.name());
  }
  checkForValidName(node, type.name());
  typeByNameMap.put(type.name(), type);
}

代码示例来源:origin: uk.co.real-logic/sbe-tool

XmlSchemaParser.handleWarning(node, "\"blockLength\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"templateId\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"schemaId\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"version\" should be UINT16");

代码示例来源:origin: uk.co.real-logic/sbe-all

XmlSchemaParser.handleWarning(node, "\"blockLength\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"templateId\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"schemaId\" should be UINT16");
XmlSchemaParser.handleWarning(node, "\"version\" should be UINT16");

代码示例来源:origin: uk.co.real-logic/sbe-all

handleWarning(node, "Choice value already defined: " + c.primitiveValue());
handleWarning(node, "Choice already exists for name: " + c.name());

代码示例来源:origin: uk.co.real-logic/sbe-all

XmlSchemaParser.handleWarning(node, "\"length\" should be UINT8, UINT16, or UINT32");

代码示例来源:origin: uk.co.real-logic/sbe-tool

XmlSchemaParser.handleWarning(node, "\"length\" should be UINT8, UINT16, or UINT32");

代码示例来源:origin: uk.co.real-logic/sbe-tool

XmlSchemaParser.handleWarning(node, "\"blockLength\" should be UINT8 or UINT16");
XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be unsigned type");
final PrimitiveValue numInGroupMinValue = numInGroupType.minValue();
if (null == numInGroupMinValue)
  XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be UINT8 or UINT16");

代码示例来源:origin: uk.co.real-logic/sbe-all

XmlSchemaParser.handleWarning(node, "\"blockLength\" should be UINT8 or UINT16");
XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be unsigned type");
final PrimitiveValue numInGroupMinValue = numInGroupType.minValue();
if (null == numInGroupMinValue)
  XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be UINT8 or UINT16");

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