@Override public void write(OutputNode node, String raw) throws Exception { if (encryptedFields.contains(node.getName())) { node.setValue(TransferSettings.encrypt(raw)); node.setAttribute("encrypted", Boolean.TRUE.toString()); } else { node.setValue(raw); } }
/** * This is used to get the name of the element that owns the * nodes for the specified map. This can be used to determine * which element the node map belongs to. * * @return this returns the name of the owning element */ public String getName() { return source.getName(); }
/** * This is used to get the name of the element that owns the * nodes for the specified map. This can be used to determine * which element the node map belongs to. * * @return this returns the name of the owning element */ public String getName() { return source.getName(); }
/** * This is used to get the name of the element that owns the * nodes for the specified map. This can be used to determine * which element the node map belongs to. * * @return this returns the name of the owning element */ public String getName() { return source.getName(); }
/** * This is used to write a new start element to the resulting XML * document. This will create an output node of the specified * name before writing the start tag. Once the tag is written * the node is pushed on to the head of the output node stack. * * @param node this is the node that is to have its name written */ private void writeName(OutputNode node) throws Exception { String prefix = node.getPrefix(verbose); String name = node.getName(); if(name != null) { writer.writeStart(name, prefix); } }
/** * This is used to write a new start element to the resulting XML * document. This will create an output node of the specified * name before writing the start tag. Once the tag is written * the node is pushed on to the head of the output node stack. * * @param node this is the node that is to have its name written */ private void writeName(OutputNode node) throws Exception { String prefix = node.getPrefix(verbose); String name = node.getName(); if(name != null) { writer.writeStart(name, prefix); } }
/** * This is used to write a new start element to the resulting XML * document. This will create an output node of the specified * name before writing the start tag. Once the tag is written * the node is pushed on to the head of the output node stack. * * @param node this is the node that is to have its name written */ private void writeName(OutputNode node) throws Exception { String prefix = node.getPrefix(verbose); String name = node.getName(); if(name != null) { writer.writeStart(name, prefix); } }
_logger.Verbose("Old name was " + element.getName()); element.setName(javaType.getSimpleName()); _logger.Verbose("Changing name to " + javaType.getSimpleName());
/** * This is used to write a new end element to the resulting XML * document. This will acquire the name and value of the given * node, if the node has a value that is written. Finally a new * end tag is written to the document and the output is flushed. * * @param node this is the node that is to have an end tag */ private void writeEnd(OutputNode node) throws Exception { String name = node.getName(); String prefix = node.getPrefix(verbose); String value = node.getValue(); if(value != null) { writeValue(node); } if(name != null) { writer.writeEnd(name, prefix); writer.flush(); } }
/** * This is used to write a new end element to the resulting XML * document. This will acquire the name and value of the given * node, if the node has a value that is written. Finally a new * end tag is written to the document and the output is flushed. * * @param node this is the node that is to have an end tag */ private void writeEnd(OutputNode node) throws Exception { String name = node.getName(); String prefix = node.getPrefix(verbose); String value = node.getValue(); if(value != null) { writeValue(node); } if(name != null) { writer.writeEnd(name, prefix); writer.flush(); } }
/** * This is used to write a new end element to the resulting XML * document. This will acquire the name and value of the given * node, if the node has a value that is written. Finally a new * end tag is written to the document and the output is flushed. * * @param node this is the node that is to have an end tag */ private void writeEnd(OutputNode node) throws Exception { String name = node.getName(); String prefix = node.getPrefix(verbose); String value = node.getValue(); if(value != null) { writeValue(node); } if(name != null) { writer.writeEnd(name, prefix); writer.flush(); } }