com.ctc.wstx.api
public static class EmptyElementHandler.SetEmptyElementHandler extends java.lang.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 java.util.Set |
mEmptyElements |
Constructor and Description |
---|
EmptyElementHandler.SetEmptyElementHandler(java.util.Set emptyElements) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmptyElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String nsURI,
boolean allowEmpty) |
public EmptyElementHandler.SetEmptyElementHandler(java.util.Set emptyElements)
public boolean allowEmptyElement(java.lang.String prefix, java.lang.String localName, java.lang.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.