public static class EmptyElementHandler.SetEmptyElementHandler extends Object implements EmptyElementHandler
Users of this class are encouraged to use a TreeSet
with the String.CASE_INSENSITIVE_ORDER
comparator if case-insensitive comparison is needed (like when dealing with HTML tags).
EmptyElementHandler.HtmlEmptyElementHandler, EmptyElementHandler.SetEmptyElementHandler
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
mEmptyElements |
Constructor and Description |
---|
SetEmptyElementHandler(Set<String> emptyElements) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmptyElement(String prefix,
String localName,
String nsURI,
boolean allowEmpty) |
public boolean allowEmptyElement(String prefix, String localName, String nsURI, boolean allowEmpty)
allowEmptyElement
in interface EmptyElementHandler
prefix
- The element's namespace prefix, null if not setlocalName
- The element's local namensURI
- The elements's namespace URI, null if not setallowEmpty
- The allow empty setting specified by the caller.Copyright © 2019 FasterXML. All rights reserved.