@Override public Object createObject(Attributes attributes) { boolean allowUnknownChildElements = "true".equalsIgnoreCase(attributes.getValue("allow-unknown-child-elements")); SetNestedPropertiesRule snpr = new SetNestedPropertiesRule(); snpr.setAllowUnknownChildElements( allowUnknownChildElements ); return snpr; } }
public Object createObject(Attributes attributes) { boolean allowUnknownChildElements = "true".equalsIgnoreCase(attributes.getValue("allow-unknown-child-elements")); SetNestedPropertiesRule snpr = new SetNestedPropertiesRule(); snpr.setAllowUnknownChildElements( allowUnknownChildElements ); return snpr; } }
new String[]{"text", "textTruncateSuffix"}); textRule.setTrimData(false); textRule.setAllowUnknownChildElements(true); digester.addRule("*/text", textRule);
SetNestedPropertiesRule textRule = new SetNestedPropertiesRule(new String[]{"text", "reportElement", "box", "textElement"}, new String[]{"text"}); textRule.setTrimData(false); textRule.setAllowUnknownChildElements(true); digester.addRule("*/staticText", textRule);