gpt4 book ai didi

com.ctc.wstx.io.WstxInputData.findIllegalNmtokenChar()方法的使用及代码示例

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

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

WstxInputData.findIllegalNmtokenChar介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLStreamException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLValidationException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: Nextdoor/bender

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLStreamException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLStreamException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLStreamException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: woodstox/wstx-asl

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLValidationException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: woodstox/wstx-lgpl

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLValidationException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: FasterXML/woodstox

protected String validateDefaultNmToken(InputProblemReporter rep, boolean normalize)
  throws XMLStreamException
{
  String origDefValue = mDefValue.getValue();
  String defValue = origDefValue.trim();
  if (defValue.length() == 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue+"'; empty String is not a valid NMTOKEN");
  }
  int illegalIx = WstxInputData.findIllegalNmtokenChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    reportValidationProblem(rep, "Invalid default value '"+defValue
                +"'; character #"+illegalIx+" ("
                +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                +") not valid NMTOKEN character");
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源:origin: woodstox/wstx-asl

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: Nextdoor/bender

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: woodstox/wstx-lgpl

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

代码示例来源:origin: FasterXML/woodstox

++count;
String token = defValue.substring(start, i);
int illegalIx = WstxInputData.findIllegalNmtokenChar(token, mCfgNsAware, mCfgXml11);
if (illegalIx >= 0) {
  reportValidationProblem(rep, "Invalid default value '"+defValue

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