home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / prosrc.bin / ImmediateAccess.java < prev    next >
Encoding:
Java Source  |  1998-03-18  |  1002 b   |  29 lines

  1. /*
  2.  * @(#ImmediateAccess.java
  3.  *
  4.  * Copyright (c) 1997 Symantec Corporation. All Rights Reserved.
  5.  *
  6.  */
  7.  
  8.  
  9. package symantec.itools.db.beans.binding.databus;
  10. public interface ImmediateAccess extends DataItem
  11. {
  12.  
  13. public String getValueAsString();
  14.  
  15. public Object getValueAsObject();
  16.  
  17. public String getPresentationString();
  18.  
  19.  
  20.      //These methods form the canonical transfer of data values. The method getPresentationString() differs
  21.     // from getValueAsString() in that the presentation string should include any formatting characters like ($),
  22.      //(,), or (.) for currency. (Internationalization of presentation strings is the problem of the data source,
  23.      //since the consumer does not have enough semantic understanding of the data item to do this work
  24.      //properly.)
  25.  
  26.      //Note that there is no requirement that getValueAsString() returns the same string as
  27.      //getValueAsObject().toString(). In fact, the latter generally returns uninterpretable results.
  28. }
  29.