文件名称:java-object-xpath:使用XPath查询遍历任何对象
文件大小:18KB
文件格式:ZIP
更新时间:2024-05-30 13:42:40
Java
OXPy(对象XPath) 一个Java库,允许使用XPath查询访问对象字段。 例子 class Characteristic { String key; String value; } class Gear { String id; List< Characteristic> characteristics; } class Vehicle { List< Gear> gears; } Vehicle vehicle = new Vehicle (); ... OXPy oxpy = new OXPy (); String xpath = " /gears[1]/characteristics/characteristic[@key='some-key'] " ; Optional< Object > characteristic = ox
【文件预览】:
java-object-xpath-master
----src()
--------test()
--------main()
----README.MD(949B)
----pom.xml(2KB)