src/org/nutz/mapl/impl/convert/StructureConvert.java
@SuppressWarnings("unchecked")
    private void loadListRelation(List<?> obj, String path) {
        if(obj.size() <= 0){
            return;
        }
        if(obj.get(0) instanceof String){
            relation.put(path, (List<String>) obj);
            return;
        }
        loadRelation(obj.get(0), path + "[]");
    }
@SuppressWarnings("unchecked")
    private void loadListRelation(List<?> obj, String path) {
        if(obj.size() <= 0){
            return;
        }
        if(obj.get(0) instanceof String){
            relation.put(path, (List<String>) obj);
            return;
        }
        loadRelation(obj.get(0), path + "[]");
    }
@ SuppressWarnings ( "unchecked" ) private void loadListRelation ( List < ? > obj , String path ) { if ( obj . size ( ) <= 0 ) { return ; } if ( obj . get ( 0 ) instanceof String ) { relation . put ( path , ( List < String > ) obj ) ; return ; } loadRelation ( obj . get ( 0 ) , path + "[]" ) ; }
解析List配置信息
@param obj
@param path
解析List配置信息