public String encoded(){
  StringBuilder buf=new StringBuilder();
  buf.append(getName());
  buf.append('|');
  buf.append(getValue());
  if (getOperator() != Operator.HAS) {
    buf.append('|');
    buf.append(getOperator());
  }
  return buf.toString();
}

public String encoded ( ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( getName ( ) ) ; buf . append ( '|' ) ; buf . append ( getValue ( ) ) ; if ( getOperator ( ) != Operator . HAS ) { buf . append ( '|' ) ; buf . append ( getOperator ( ) ) ; } return buf . toString ( ) ; }
this method returns an encoded form for the property criteria .
