public final class QNameHelper extends Object
This class not thread-safe. You'll have to create one helper per thread.
Constructor and Description |
---|
QNameHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
getFavorInteroperability()
Returns
true if interoperability with HTML/SGML should be
favored as recommended in the W3C XML specification. |
boolean |
getPredeclarePrefixPreferences() |
PrefixEntry[] |
getPrefixPreferences() |
List<String> |
listFrame() |
void |
popFrame() |
void |
pushFrame() |
void |
reset() |
void |
setFavorInteroperability(boolean favor)
Specifies whether interoperability with HTML/SGML should be favored as
recommended in the W3C XML specification.
|
void |
setPredeclarePrefixPreferences(boolean predeclare) |
void |
setPrefixPreferences(PrefixEntry[] prefixPreferences) |
String |
toQName(Name name,
boolean isAttribute) |
public void setPredeclarePrefixPreferences(boolean predeclare)
public boolean getPredeclarePrefixPreferences()
public void setPrefixPreferences(PrefixEntry[] prefixPreferences)
public PrefixEntry[] getPrefixPreferences()
public void setFavorInteroperability(boolean favor)
Default: false
.
public boolean getFavorInteroperability()
true
if interoperability with HTML/SGML should be
favored as recommended in the W3C XML specification. Returns
false
otherwise.public void reset()
public void pushFrame()
public void popFrame()