public static String contextAsString ( final Set < Attribute > context ) { StringBuilder sb = new StringBuilder ( ) ; for ( Attribute attribute : context ) { if ( sb . length ( ) < 1 ) { sb . append ( "{" ) ; } else { sb . append ( ", " ) ; } sb . append ( Attribute . propertyKeyForURIBase ( attribute , EnvironmentalContext . URI_BASE ) ) . append ( "=" ) . append ( attribute . getValue ( ) ) ; } sb . append ( "}" ) ; return sb . toString ( ) ; }
Generate a string representation of the context attribute set