public static FormattedString of ( String format , Object object ) { return object == null ? new Null ( ) : "binary" . equals ( format ) ? new Base64 ( ( byte [ ] ) object ) : "byte" . equals ( format ) ? new Base64 ( ( byte [ ] ) object ) : "date" . equals ( format ) ? new Date ( ( java . util . Date ) object ) : "date-time" . equals ( format ) ? new DateTime ( ( java . util . Date ) object ) : "uuid" . equals ( format ) ? new Uuid ( ( UUID ) object ) : new Native ( object ) ; }
Creates a FormattedString for the given object .