com.ctc.wstx.api.ReaderConfig.willSupportNamespaces()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(68)

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

ReaderConfig.willSupportNamespaces介绍

暂无

代码示例

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

public boolean isNamespaceAware() {
  return mConfig.willSupportNamespaces();
}

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

protected static InputElementStack createElementStack(ReaderConfig cfg)
{
  return new InputElementStack(cfg, cfg.willSupportNamespaces());
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, PrefixedName name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

/**
 * Method called to create an actual element definition, matching
 * an ELEMENT directive in a DTD subset.
 */
public static DTDElement createDefined(ReaderConfig cfg, Location loc, PrefixedName name,
                    StructValidator val, int allowedContent)
{
  if (allowedContent == XMLValidator.CONTENT_ALLOW_UNDEFINED) { // sanity check
    ExceptionUtil.throwInternal("trying to use XMLValidator.CONTENT_ALLOW_UNDEFINED via createDefined()");
  }
  return new DTDElement(loc, name, val, allowedContent,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

return mConfig.willSupportNamespaces();
} else if (stdFeat == SAXFeature.NAMESPACE_PREFIXES) {
  return !mConfig.willSupportNamespaces();
} else if (stdFeat == SAXFeature.RESOLVE_DTD_URIS) {

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

protected WstxDOMWrappingReader(DOMSource src, ReaderConfig cfg)
  throws XMLStreamException
{
  super(src, cfg.willSupportNamespaces(), cfg.willCoalesceText());
  mConfig = cfg;
  // [WSTX-162]: allow enabling/disabling name/ns intern()ing
  if (cfg.hasInternNamesBeenEnabled()) {
    setInternNames(true);
  }
  if (cfg.hasInternNsURIsBeenEnabled()) {
    setInternNsURIs(true);
  }
}

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

return mStaxFactory.getConfig().willSupportNamespaces();
} else if (stdFeat == SAXFeature.NAMESPACE_PREFIXES) {
  return mFeatNsPrefixes;

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, NameKey name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

protected static InputElementStack createElementStack(ReaderConfig cfg)
{
  if (cfg.willSupportNamespaces()) {
    return new NsInputElementStack(16, cfg);
  }
  return new NonNsInputElementStack(16, cfg);
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, PrefixedName name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, PrefixedName name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, NameKey name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, PrefixedName name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, PrefixedName name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

protected static InputElementStack createElementStack(ReaderConfig cfg)
{
  if (cfg.willSupportNamespaces()) {
    return new NsInputElementStack(16, cfg);
  }
  return new NonNsInputElementStack(16, cfg);
}

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

/**
 * Method called to create a "placeholder" element definition, needed to
 * contain attribute definitions.
 */
public static DTDElement createPlaceholder(ReaderConfig cfg, Location loc, NameKey name)
{
  return new DTDElement(loc, name, null, XMLValidator.CONTENT_ALLOW_UNDEFINED,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

protected static InputElementStack createElementStack(ReaderConfig cfg)
{
  if (cfg.willSupportNamespaces()) {
    return new NsInputElementStack(16, cfg);
  }
  return new NonNsInputElementStack(16, cfg);
}

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

/**
 * Method called to create an actual element definition, matching
 * an ELEMENT directive in a DTD subset.
 */
public static DTDElement createDefined(ReaderConfig cfg, Location loc, NameKey name,
                    StructValidator val, int allowedContent)
{
  if (allowedContent == XMLValidator.CONTENT_ALLOW_UNDEFINED) { // sanity check
    ExceptionUtil.throwInternal("trying to use XMLValidator.CONTENT_ALLOW_UNDEFINED via createDefined()");
  }
  return new DTDElement(loc, name, val, allowedContent,
             cfg.willSupportNamespaces(), cfg.isXml11());
}

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

protected WstxDOMWrappingReader(DOMSource src, ReaderConfig cfg)
  throws XMLStreamException
{
  super(src, cfg.willSupportNamespaces(), cfg.willCoalesceText());
  mConfig = cfg;
  // [WSTX-162]: allow enabling/disabling name/ns intern()ing
  if (cfg.hasInternNamesBeenEnabled()) {
    setInternNames(true);
  }
  if (cfg.hasInternNsURIsBeenEnabled()) {
    setInternNsURIs(true);
  }
}

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

return willCoalesceText() ? Boolean.TRUE : Boolean.FALSE;
case PROP_NAMESPACE_AWARE:
  return willSupportNamespaces() ? Boolean.TRUE : Boolean.FALSE;
case PROP_REPLACE_ENTITY_REFS:
  return willReplaceEntityRefs() ? Boolean.TRUE : Boolean.FALSE;

相关文章

微信公众号

最新文章

更多

ReaderConfig类方法