protected String findPropertyImpl(final String key) { String value = props.getProperty(key); if (value != null) { return value; } for (MessagePart child : children) { value = child.findProperty(key); if (value != null) { return value; } } return null; }
protected String findPropertyImpl(final String key) { String value = props.getProperty(key); if (value != null) { return value; } for (MessagePart child : children) { value = child.findProperty(key); if (value != null) { return value; } } return null; }
/** Search in message parts properties then in extra properties and then * in sub reports. Returns first occurrence of the key. */ public String findProperty(String key) { MessagePart topMessagePart = getTopMessagePart(); if (topMessagePart != null) { String value = topMessagePart.findProperty(key); if (value != null) { return value; } } if (extraProperties != null) { String value = extraProperties.getProperty(key); if (value != null) { return value; } } if (getSubActionsReport() != null) { for (ActionReport subReport : getSubActionsReport()) { String value = subReport.findProperty(key); if (value != null) { return value; } } } return null; } }
/** Search in message parts properties then in extra properties and then * in sub reports. Returns first occurrence of the key. */ public String findProperty(String key) { MessagePart topMessagePart = getTopMessagePart(); if (topMessagePart != null) { String value = topMessagePart.findProperty(key); if (value != null) { return value; } } if (extraProperties != null) { String value = extraProperties.getProperty(key); if (value != null) { return value; } } if (getSubActionsReport() != null) { for (ActionReport subReport : getSubActionsReport()) { String value = subReport.findProperty(key); if (value != null) { return value; } } } return null; } }