/** * The string representation of the path: /{Object ID}/{ObjectInstance ID}/{Resource ID}/{ResourceInstance ID} */ @Override public String toString() { StringBuilder b = new StringBuilder(); b.append("/"); if (getObjectId() != null) { b.append(getObjectId()); if (getObjectInstanceId() != null) { b.append("/").append(getObjectInstanceId()); if (getResourceId() != null) { b.append("/").append(getResourceId()); if (getResourceInstanceId() != null) { b.append("/").append(getResourceInstanceId()); } } } } return b.toString(); }
multiResourceMap.put(resourcePath, multiResource); JsonArrayEntry previousResInstance = multiResource.put(nodePath.getResourceInstanceId(), resourceElt); if (previousResInstance != null) { throw new CodecException( "2 RESOURCE_INSTANCE nodes (%s,%s) with the same identifier %d for path %s", previousResInstance, resourceElt, nodePath.getResourceInstanceId(), nodePath);