/** * Initializes parser handler's XML blob state. Should be called by the * handler's constructor in order to honor * {@link ExtensionProfile#declareArbitraryXmlExtension(Class)}. */ protected void initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, ElementHandler handler) { boolean arbitraryXml = profile.allowsArbitraryXml(); boolean mixedContent = false; ExtensionManifest profManifest = getManifest(profile, extPoint); if (profManifest != null) { if (profManifest.arbitraryXml) { arbitraryXml = profManifest.arbitraryXml; // mixedContent is only enabled if the profile manifest is present, and // supports mixed content, regardless of if the profile allows // arbitrary xml. mixedContent = profManifest.mixedContent; } } if (arbitraryXml) { handler.initializeXmlBlob( xmlBlob, mixedContent, /* fullTextIndex */false); } }
/** * Initializes parser handler's XML blob state. Should be called by the * handler's constructor in order to honor * {@link ExtensionProfile#declareArbitraryXmlExtension(Class)}. */ protected void initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, ElementHandler handler) { boolean arbitraryXml = profile.allowsArbitraryXml(); boolean mixedContent = false; ExtensionManifest profManifest = getManifest(profile, extPoint); if (profManifest != null) { if (profManifest.arbitraryXml) { arbitraryXml = profManifest.arbitraryXml; // mixedContent is only enabled if the profile manifest is present, and // supports mixed content, regardless of if the profile allows // arbitrary xml. mixedContent = profManifest.mixedContent; } } if (arbitraryXml) { handler.initializeXmlBlob( xmlBlob, mixedContent, /* fullTextIndex */false); } }
/** * Initializes parser handler's XML blob state. Should be called by the * handler's constructor in order to honor * {@link ExtensionProfile#declareArbitraryXmlExtension(Class)}. */ protected void initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, ElementHandler handler) { boolean arbitraryXml = profile.allowsArbitraryXml(); boolean mixedContent = false; ExtensionManifest profManifest = getManifest(profile, extPoint); if (profManifest != null) { if (profManifest.arbitraryXml) { arbitraryXml = profManifest.arbitraryXml; // mixedContent is only enabled if the profile manifest is present, and // supports mixed content, regardless of if the profile allows // arbitrary xml. mixedContent = profManifest.mixedContent; } } if (arbitraryXml) { handler.initializeXmlBlob( xmlBlob, mixedContent, /* fullTextIndex */false); } }