public String getPositionInString ( ModificationFeature mf ) { Set vals = SITE_ACC . getValueFromBean ( mf ) ; if ( ! vals . isEmpty ( ) ) { int x = ( ( Integer ) vals . iterator ( ) . next ( ) ) ; if ( x > 0 ) return "@" + x ; } vals = INTERVAL_BEGIN_ACC . getValueFromBean ( mf ) ; if ( ! vals . isEmpty ( ) ) { int begin = ( ( Integer ) vals . iterator ( ) . next ( ) ) ; vals = INTERVAL_END_ACC . getValueFromBean ( mf ) ; if ( ! vals . isEmpty ( ) ) { int end = ( ( Integer ) vals . iterator ( ) . next ( ) ) ; if ( begin > 0 && end > 0 && begin <= end ) { if ( begin == end ) return "@" + begin ; else return "@" + "[" + begin + "-" + end + "]" ; } } } return "" ; }
Gets the position of the modification feature as a String .