public boolean isNamespaceAware() { return mConfig.willSupportNamespaces(); }
protected static InputElementStack createElementStack(ReaderConfig cfg) { return new InputElementStack(cfg, cfg.willSupportNamespaces()); }
/** * 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()); }
/** * 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()); }
return mConfig.willSupportNamespaces(); } else if (stdFeat == SAXFeature.NAMESPACE_PREFIXES) { return !mConfig.willSupportNamespaces(); } else if (stdFeat == SAXFeature.RESOLVE_DTD_URIS) {
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); } }
return mStaxFactory.getConfig().willSupportNamespaces(); } else if (stdFeat == SAXFeature.NAMESPACE_PREFIXES) { return mFeatNsPrefixes;
/** * 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()); }
protected static InputElementStack createElementStack(ReaderConfig cfg) { if (cfg.willSupportNamespaces()) { return new NsInputElementStack(16, cfg); } return new NonNsInputElementStack(16, cfg); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
protected static InputElementStack createElementStack(ReaderConfig cfg) { if (cfg.willSupportNamespaces()) { return new NsInputElementStack(16, cfg); } return new NonNsInputElementStack(16, cfg); }
/** * 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()); }
protected static InputElementStack createElementStack(ReaderConfig cfg) { if (cfg.willSupportNamespaces()) { return new NsInputElementStack(16, cfg); } return new NonNsInputElementStack(16, cfg); }
/** * 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()); }
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); } }
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;