}
};
private static CustomChildrenParser repeatParser(XMLDecoder decoder)
{
final XMLDecoder fdecoder = decoder;
return new CustomChildrenParser() {
@Override
public void parse(Object parentObject, Node parentNode) {
if( parentObject==null || !(parentObject instanceof RepeatPattern) )return;
if( parentNode==null )return;
if( !parentNode.hasChildNodes() )return;
NodeList nl = parentNode.getChildNodes();
int count = nl.getLength();
// int parsed = 0;
for( int i=0; i<count; i++ )
{
Node n = nl.item(i);
if( n==null || !(n instanceof Element) )continue;
Object obj = fdecoder.parse(n);
if( obj==null )continue;
if( obj instanceof Pattern )
{
((RepeatPattern)parentObject).setSubPattern((Pattern)obj);
break;