public String nelson ( NelsonCondition condition ) { String description ; if ( condition . getContext ( ) != null && condition . getContext ( ) . get ( CONTEXT_PROPERTY_DESCRIPTION ) != null ) { description = condition . getContext ( ) . get ( CONTEXT_PROPERTY_DESCRIPTION ) ; } else { description = condition . getDataId ( ) ; } description += " violates one or the following Nelson rules: " + condition . getActiveRules ( ) ; return description ; }
Create a description for a NelsonCondition object .