public List<ProxyField> getProxyFields(final String ref, final String field)
    {
        List<ProxyField> ret = new ArrayList<ProxyField>();
        ProxyField refField = m_proxyObject.getProxyField(ref);
        Object o = refField.getValue();
        ValidationSession vs = m_proxyObject.getSession();
        if (o instanceof ValidationObject)
        {
            ProxyObject po = vs.getProxyObject((ValidationObject)o);
            if (po != null)
            {
                po.getProxyField(field);
                ret.add(po.getProxyField(field));
            }            
        }
        else if (o instanceof ListeningArray<?>)
        {
            @SuppressWarnings("unchecked")
			ListeningArray<ValidationObject> la = (ListeningArray<ValidationObject>)o;
            for (ValidationObject vo : la)
            {
                ProxyObject po = vs.getProxyObject(vo);
                if (po != null)
                {
                    po.getProxyField(field);
                    ret.add(po.getProxyField(field));
                }                
            }
        }
        return ret;
    }
public List < ProxyField > getProxyFields ( final String ref , final String field ) { List < ProxyField > ret = new ArrayList < ProxyField > ( ) ; ProxyField refField = m_proxyObject . getProxyField ( ref ) ; Object o = refField . getValue ( ) ; ValidationSession vs = m_proxyObject . getSession ( ) ; if ( o instanceof ValidationObject ) { ProxyObject po = vs . getProxyObject ( ( ValidationObject ) o ) ; if ( po != null ) { po . getProxyField ( field ) ; ret . add ( po . getProxyField ( field ) ) ; } } else if ( o instanceof ListeningArray < ? > ) { @ SuppressWarnings ( "unchecked" ) ListeningArray < ValidationObject > la = ( ListeningArray < ValidationObject > ) o ; for ( ValidationObject vo : la ) { ProxyObject po = vs . getProxyObject ( vo ) ; if ( po != null ) { po . getProxyField ( field ) ; ret . add ( po . getProxyField ( field ) ) ; } } } return ret ; }
/* (non-Javadoc)
@see nz.co.senanque.validationengine.ObjectMetadata#getProxyFields(java.lang.String, java.lang.String)