gpt4 book ai didi

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

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

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

WstxInputData.getCharDesc介绍

暂无

代码示例

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLStreamException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

/**
 * Method called to verify that the name is a legal XML name.
 */
public final void verifyNameValidity(String name, boolean checkNs)
  throws XMLStreamException
{
  /* No empty names... caller must have dealt with optional arguments
   * prior to calling this method
   */
  if (name == null || name.length() == 0) {
    reportNwfName(ErrorConsts.WERR_NAME_EMPTY);
  }
  int illegalIx = WstxInputData.findIllegalNameChar(name, checkNs, mXml11);
  if (illegalIx >= 0) {
    if (illegalIx == 0) {
      reportNwfName(ErrorConsts.WERR_NAME_ILLEGAL_FIRST_CHAR,
             WstxInputData.getCharDesc(name.charAt(0)));
    }
    reportNwfName(ErrorConsts.WERR_NAME_ILLEGAL_CHAR,
           WstxInputData.getCharDesc(name.charAt(illegalIx)));
  }
}

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

protected String validateDefaultName(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 name");
  }
  // Ok, needs to be a valid XML name:
  int illegalIx = WstxInputData.findIllegalNameChar(defValue, mCfgNsAware, mCfgXml11);
  if (illegalIx >= 0) {
    if (illegalIx == 0) {
      reportValidationProblem(rep, "Invalid default value '"+defValue+"'; character "
                  +WstxInputData.getCharDesc(defValue.charAt(0))
                  +") not valid first character of a name");
    } else {
      reportValidationProblem(rep, "Invalid default value '"+defValue+"'; character #"+illegalIx+" ("
                  +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
                  +") not valid name character");
    }
  }
  // Ok, cool it's ok...
  return normalize ? defValue : origDefValue;
}

代码示例来源: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

reportValidationProblem(rep, "Invalid default value '"+defValue
              +"'; character "
              +WstxInputData.getCharDesc(defValue.charAt(start))
              +") not valid first character of a name token");
} else {
  reportValidationProblem(rep, "Invalid default value '"+defValue
              +"'; character "
              +WstxInputData.getCharDesc(c)
              +") not a valid name character");

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

reportValidationProblem(rep, "Invalid default value '"+defValue
            +"'; character #"+illegalIx+" ("
            +WstxInputData.getCharDesc(defValue.charAt(illegalIx))
            +") not a valid NMTOKENS character");

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLValidationException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLStreamException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLValidationException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLStreamException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLValidationException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLStreamException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

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

protected String reportInvalidChar(DTDValidatorBase v, char c, String msg)
  throws XMLStreamException
{
  reportValidationProblem(v, "Invalid character "+WstxInputData.getCharDesc(c)+": "+msg);
  return null;
}

代码示例来源: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: 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: 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;
}

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