protected String getArgString ( Object arg ) { //if (arg instanceof LatLong) { // return ((LatLong) arg).getVariableName(); //} else if ( arg instanceof JavascriptObject ) { return ( ( JavascriptObject ) arg ) . getVariableName ( ) ; // return ((JavascriptObject) arg).getPropertiesAsString(); } else if ( arg instanceof JavascriptEnum ) { return ( ( JavascriptEnum ) arg ) . getEnumValue ( ) . toString ( ) ; } else { return arg . toString ( ) ; } }
Takes the specified object and converts the argument to a String .