public Object getProperty(String name) throws PropertyException { if (INDENT_STRING.equals(name)) return indent; if (ENCODING_HANDLER.equals(name)) return escapeHandler; if (PREFIX_MAPPER.equals(name)) return prefixMapper; if (XMLDECLARATION.equals(name)) return printXmlDeclaration ? Boolean.TRUE : Boolean.FALSE; if (XML_HEADERS.equals(name)) return header; return super.getProperty(name); }
public void setProperty(String name, Object value) throws PropertyException { if (INDENT_STRING.equals(name) && value instanceof String) { indent = (String) value; return; } if (ENCODING_HANDLER.equals(name)) { escapeHandler = (CharacterEscapeHandler) value; return; } if (PREFIX_MAPPER.equals(name)) { prefixMapper = (NamespacePrefixMapper) value; return; } if (XMLDECLARATION.equals(name)) { printXmlDeclaration = ((Boolean) value).booleanValue(); return; } if (XML_HEADERS.equals(name)) { header = (String) value; return; } super.setProperty(name, value); }