Home | History | Annotate | Download | only in plugin

Lines Matching refs:nodePath

49      * @param nodePath path to the node.
52 protected boolean isNodeExist(String nodePath) {
53 return (mNodes.get(nodePath) != null);
59 * @param nodePath path to the new node.
63 protected final int createLeafNode_(String nodePath, DmtData nodeValue) {
68 String[] data = DmtPathUtils.splitPath(nodePath);
77 if (isNodeExist(nodePath)) {
78 return updateLeafNode_(nodePath, nodeValue);
91 mNodes.put(nodePath, new DmtPluginNode(nodePath, nodeValue));
99 * @param nodePath path to the new node.
102 protected final int createInteriorNode_(String nodePath) {
103 String[] data = DmtPathUtils.splitPath(nodePath);
112 if (!DmtPathUtils.isSubPath(mPath, nodePath)) {
117 DmtPluginNode node = mNodes.get(nodePath);
133 mNodes.put(nodePath, new DmtPluginNode(nodePath, new DmtData(null, DmtData.NODE)));
158 * @param nodePath full path to the node.
162 protected final int updateLeafNode_(String nodePath, DmtData nodeValue) {
167 DmtPluginNode node = mNodes.get(nodePath);
185 * @param nodePath path to the node.
188 protected final int deleteNode_(String nodePath) {
189 DmtPluginNode node = mNodes.get(nodePath);
194 if (mPath.equals(nodePath)) {
199 String[] data = DmtPathUtils.splitPath(nodePath);
231 mNodes.remove(nodePath);
235 String subPath = nodePath + '/';
267 String nodePath;
269 nodePath = resolve(tag, true);
274 if (TextUtils.isEmpty(nodePath)) {
277 nodePath = mPath + '/' + nodePath;
279 return getNodeValue(nodePath);
339 String nodePath;
341 nodePath = resolve(tag, false);
346 if (TextUtils.isEmpty(nodePath)) {
349 nodePath = mPath + '/' + nodePath;
351 if (isNodeExist(nodePath)) {
352 if (updateLeafNode_(nodePath, value) != ErrorCodes.SYNCML_DM_SUCCESS) {
358 if (createLeafNode_(nodePath, value) != ErrorCodes.SYNCML_DM_SUCCESS) {
445 public Map<String, DmtPluginNode> getNodes(String nodePath) throws DmtException {
446 if (!DmtPathUtils.isSubPath(mPath, nodePath)) {
451 if (nodePath.equals(mPath)) {
458 if (DmtPathUtils.isSubPath(nodePath, nodeEntry.getKey())) {
466 public DmtPluginNode getNode(String nodePath) throws DmtException {
467 DmtPluginNode node = mNodes.get(nodePath);
476 public DmtData getNodeValue(String nodePath) throws DmtException {
477 DmtPluginNode node = mNodes.get(nodePath);