public class XCardOutputProperties extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
XCardOutputProperties() |
XCardOutputProperties(Integer indent,
String xmlVersion) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getIndent()
Gets the number of indent spaces to use for pretty-printing.
|
String |
getXmlVersion()
Gets the XML version to use.
|
void |
setIndent(Integer indent)
Sets the number of indent spaces to use for pretty-printing (disabled by
default).
|
void |
setXmlVersion(String version)
Sets the XML version to use (defaults to "1.0").
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic XCardOutputProperties()
public XCardOutputProperties(Integer indent, String xmlVersion)
indent - the number of indent spaces to use for pretty-printing or
null to disable pretty-printing (disabled by default)xmlVersion - the XML version to use (defaults to "1.0") (Note: Many
JDKs only support 1.0 natively. For XML 1.1 support, add a JAXP library
like xalan to your project)IllegalArgumentException - if the indent amount is less than zeropublic Integer getIndent()
public void setIndent(Integer indent)
indent - the number of indent spaces to use or null to disable
pretty-printingIllegalArgumentException - if the indent amount is less than zeropublic String getXmlVersion()
public void setXmlVersion(String version)
Sets the XML version to use (defaults to "1.0").
Note: Many JDKs only support 1.0 natively. For XML 1.1 support, add a JAXP library like xalan to your project.
version - the XML version or null to removeCopyright © 2012–2023 Michael Angstadt. All rights reserved.