gpt4 book ai didi

org.codehaus.stax2.validation.XMLValidator.validateElementStart()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 07:33:05 30 4
gpt4 key购买 nike

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

XMLValidator.validateElementStart介绍

暂无

代码示例

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

protected void writeStartOrEmpty(String prefix, String localName, String nsURI)
  throws XMLStreamException
{
  checkStartElement(localName, prefix);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, prefix);
  }
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(prefix, localName, nsURI);
  }
  doWriteStartTag(prefix, localName);
}

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

protected void writeStartOrEmpty(String localName, String nsURI)
  throws XMLStreamException
{
  // Need a prefix...
  String prefix = mCurrElem.getPrefix(nsURI);
  if (prefix == null) {
    throw new XMLStreamException("Unbound namespace URI '"+nsURI+"'");
  }
  checkStartElement(localName, prefix);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, prefix);
  }
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(prefix, localName, nsURI);
  }
  doWriteStartTag(prefix, localName);
}

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

/**
 * This method is assumed to just use default namespace (if any),
 * and no further checks should be done.
 */
public void writeStartElement(String localName)
  throws XMLStreamException
{
  checkStartElement(localName, null);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, XmlConsts.ELEM_NO_NS_URI, XmlConsts.ELEM_NO_PREFIX);
  }
  mEmptyElement = false;
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, localName);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(localName);
  }
  doWriteStartTag(localName);
}

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

/**
 *<p>
 * Note: It is assumed caller just wants the element to belong to whatever
 * is the current default namespace.
 */
public void writeEmptyElement(String localName)
  throws XMLStreamException
{
  checkStartElement(localName, null);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, XmlConsts.ELEM_NO_NS_URI, XmlConsts.ELEM_NO_PREFIX);
  }
  mEmptyElement = true;
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, localName);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(localName);
  }
  doWriteStartTag(localName);
}

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

mValidator.validateElementStart(localName, nsURI, prefix);
prefix = generateElemPrefix(null, nsURI, mCurrElem);
if (mValidator != null) {
  mValidator.validateElementStart(localName, nsURI, prefix);

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

mValidator.validateElementStart(localName, XmlConsts.ELEM_NO_NS_URI, XmlConsts.ELEM_NO_PREFIX);

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

public void validateElementStart(String localName, String uri,
                 String prefix)
  throws XMLValidationException
{
  mFirst.validateElementStart(localName, uri, prefix);
  mSecond.validateElementStart(localName, uri, prefix);
}

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

public void validateElementStart(String localName, String uri,
                 String prefix)
  throws XMLValidationException
{
  mFirst.validateElementStart(localName, uri, prefix);
  mSecond.validateElementStart(localName, uri, prefix);
}

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

public void validateElementStart(String localName, String uri,
                 String prefix)
  throws XMLValidationException
{
  mFirst.validateElementStart(localName, uri, prefix);
  mSecond.validateElementStart(localName, uri, prefix);
}

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

public void validateElementStart(String localName, String uri,
                 String prefix)
  throws XMLStreamException
{
  mFirst.validateElementStart(localName, uri, prefix);
  mSecond.validateElementStart(localName, uri, prefix);
}

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

if (actPrefix != null) { // fine, an existing binding we can use:
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, actPrefix);
    mValidator.validateElementStart(localName, nsURI, actPrefix);

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

vld.validateElementStart
  (mCurrElement.mLocalName, mCurrElement.mNamespaceURI, mCurrElement.mPrefix);

代码示例来源:origin: com.fasterxml/aalto-xml

/**
 * It is assumed here that caller actually wants whatever is the
 * default namespace (or it is used in "non-namespace" mode, where
 * no namespaces are bound ever). As such we do not have to
 * distinguish between repairing and non-repairing modes.
 */
@Override
public void writeEmptyElement(String localName) throws XMLStreamException
{
  _verifyStartElement(null, localName);
  WName name = _symbols.findSymbol(localName);
  if (_validator != null) {
    _validator.validateElementStart(localName, "", "");
  }
  _writeStartTag(name, true);
}

代码示例来源:origin: FasterXML/aalto-xml

/**
 * It is assumed here that caller actually wants whatever is the
 * default namespace (or it is used in "non-namespace" mode, where
 * no namespaces are bound ever). As such we do not have to
 * distinguish between repairing and non-repairing modes.
 */
@Override
public void writeEmptyElement(String localName) throws XMLStreamException
{
  _verifyStartElement(null, localName);
  WName name = _symbols.findSymbol(localName);
  if (_validator != null) {
    _validator.validateElementStart(localName, "", "");
  }
  _writeStartTag(name, true);
}

代码示例来源:origin: FasterXML/aalto-xml

/**
 * It is assumed here that caller actually wants whatever is the
 * default namespace (or it is used in "non-namespace" mode, where
 * no namespaces are bound ever). As such we do not have to
 * distinguish between repairing and non-repairing modes.
 */
@Override
public void writeStartElement(String localName)
  throws XMLStreamException
{
  _verifyStartElement(null, localName);
  WName name = _symbols.findSymbol(localName);
  if (_validator != null) {
    _validator.validateElementStart(localName, "", "");
  }
  _writeStartTag(name, false);
}

代码示例来源:origin: com.fasterxml/aalto-xml

/**
 * It is assumed here that caller actually wants whatever is the
 * default namespace (or it is used in "non-namespace" mode, where
 * no namespaces are bound ever). As such we do not have to
 * distinguish between repairing and non-repairing modes.
 */
@Override
public void writeStartElement(String localName)
  throws XMLStreamException
{
  _verifyStartElement(null, localName);
  WName name = _symbols.findSymbol(localName);
  if (_validator != null) {
    _validator.validateElementStart(localName, "", "");
  }
  _writeStartTag(name, false);
}

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

protected void writeStartOrEmpty(String prefix, String localName, String nsURI)
  throws XMLStreamException
{
  checkStartElement(localName, prefix);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, prefix);
  }
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(prefix, localName, nsURI);
  }
  doWriteStartTag(prefix, localName);
}

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

protected void writeStartOrEmpty(String prefix, String localName, String nsURI)
  throws XMLStreamException
{
  checkStartElement(localName, prefix);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, prefix);
  }
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(prefix, localName, nsURI);
  }
  doWriteStartTag(prefix, localName);
}

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

protected void writeStartOrEmpty(String prefix, String localName, String nsURI)
  throws XMLStreamException
{
  checkStartElement(localName, prefix);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, prefix);
  }
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(prefix, localName, nsURI);
  }
  doWriteStartTag(prefix, localName);
}

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

protected void writeStartOrEmpty(String prefix, String localName, String nsURI)
  throws XMLStreamException
{
  checkStartElement(localName, prefix);
  if (mValidator != null) {
    mValidator.validateElementStart(localName, nsURI, prefix);
  }
  if (mOutputElemPool != null) {
    SimpleOutputElement newCurr = mOutputElemPool;
    mOutputElemPool = newCurr.reuseAsChild(mCurrElem, prefix, localName, nsURI);
    --mPoolSize;
    mCurrElem = newCurr;
  } else {
    mCurrElem = mCurrElem.createChild(prefix, localName, nsURI);
  }
  doWriteStartTag(prefix, localName);
}

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