public String toAddressPathString ( ) { if ( isRoot ( ) ) { return "/" ; } StringBuilder str = new StringBuilder ( ) ; List < Property > parts = addressNode . asPropertyList ( ) ; for ( Property part : parts ) { String name = part . getName ( ) ; String value = part . getValue ( ) . asString ( ) ; str . append ( "/" ) . append ( name ) . append ( "=" ) . append ( value ) ; } return str . toString ( ) ; }
Returns the address as a flattened string that is compatible with the DMR CLI address paths .