属性的判断、取值、赋值
2020-02-23 本文已影响0人
夜月星空wcj
1、判断节点是否拥有某个属性,方法是:
boolean b = node.hasProperty(propertyName);
2、获取属性的值,方法是:
String value = node.getProperty(propertyName).getString();
3、给属性赋值,方法是:
node.setProperty(propertyName, "555");
判断、取值、赋值的代码参考如下:
