/** * 按照分解出来的位置和名称来设置需要解析的元素名称, 还有该元素对应的解析模型 * * @param end 是否是最后一个 * @param ele 元素名称 * @param propertyValue 是否是取属性 * @param mapPath 设置需要解析的元素名称,还有该元素对应的解析模型的Map对象 */ private static void setParsePath( boolean end, String ele, boolean propertyValue, Map<String, ParserModel> mapPath) { ParserModel pm = new ParserModel(); pm.setEnd(end); // 如果带有$符号就说明不是一个值 pm.setSingleVlaue(!(ele.indexOf(DOLLAR) > 0)); pm.setPropertyValue(propertyValue); // 去掉$ ele = ele.replace(DOLLAR, ""); mapPath.put(ele, pm); listEle.add(ele); }