/** * This write method is used to set the value of the provided object * as the text for the XML element. This will acquire the string * value of the object using <code>toString</code> only if the * object provided is not an enumerated type. If the object is an * enumerated type then the <code>Enum.name</code> method is used. * * @param value this is the value to set as the XML element text * @param node this is the XML element to write the text value to * @param label the label that contains the contact details */ private void writeText(OutputNode node, Object value, Label label) throws Exception { if(value != null && !label.isTextList()) { String text = factory.getText(value); boolean data = label.isData(); node.setData(data); node.setValue(text); } }
/** * This write method is used to set the value of the provided object * as the text for the XML element. This will acquire the string * value of the object using <code>toString</code> only if the * object provided is not an enumerated type. If the object is an * enumerated type then the <code>Enum.name</code> method is used. * * @param value this is the value to set as the XML element text * @param node this is the XML element to write the text value to * @param label the label that contains the contact details */ private void writeText(OutputNode node, Object value, Label label) throws Exception { if(value != null && !label.isTextList()) { String text = factory.getText(value); boolean data = label.isData(); node.setData(data); node.setValue(text); } }
/** * This write method is used to set the value of the provided object * as the text for the XML element. This will acquire the string * value of the object using <code>toString</code> only if the * object provided is not an enumerated type. If the object is an * enumerated type then the <code>Enum.name</code> method is used. * * @param value this is the value to set as the XML element text * @param node this is the XML element to write the text value to * @param label the label that contains the contact details */ private void writeText(OutputNode node, Object value, Label label) throws Exception { if(value != null && !label.isTextList()) { String text = factory.getText(value); boolean data = label.isData(); node.setData(data); node.setValue(text); } }
boolean data = match.isData(); next.setData(data); writeElement(next, value, convert);
boolean data = match.isData(); next.setData(data); writeElement(next, value, convert);
boolean data = match.isData(); next.setData(data); writeElement(next, value, convert);