home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / exml.lha / exml / main / xml_attribute.e < prev    next >
Text File  |  1999-04-13  |  1KB  |  58 lines

  1. indexing
  2.     description:"Objects representing a XML-attribute"
  3.     status:        "See notice at end of class."
  4.     author:        "Andreas Leitner"
  5. class
  6.     XML_ATTRIBUTE
  7. inherit
  8.     ANY
  9.         redefine
  10.             out
  11.         end
  12. creation
  13.     make
  14. feature {NONE} -- Initialisation
  15.     make (a_name, a_value: STRING) is
  16.         require
  17.             a_name_not_void: a_name /= Void
  18.             a_value_not_void: a_value /= Void
  19.         do
  20.             name := clone (a_name)
  21.             value := clone (a_value)
  22.         end
  23.  
  24. feature
  25.     name: STRING
  26.     value: STRING
  27. --    specified: BOOLEAN
  28.         -- not yet implemented
  29.  
  30.  
  31.     out: STRING is
  32.         do
  33.             !! Result.make (0)
  34.             Result.append (" ")
  35.             Result.append (name)
  36.             Result.append ("=%"")
  37.             Result.append (value)
  38.             Result.append ("%"")
  39.         end
  40.  
  41. invariant
  42.     name_not_void: name /= Void
  43.     value_not_void: value /= Void
  44. end -- class XML_ATTRIBUTE
  45. --|-------------------------------------------------------------------------
  46. --| eXML, Eiffel XML Parser Toolkit
  47. --| Copyright (C) 1999  Andreas Leitner
  48. --| See the file forum.txt included in this package for licensing info.
  49. --|
  50. --| Comments, Questions, Additions to this library? please contact:
  51. --|
  52. --| Andreas Leitner
  53. --| Arndtgasse 1/3/5
  54. --| 8010 Graz
  55. --| Austria
  56. --| email: andreas.leitner@teleweb.at
  57. --| web: http://exml.dhs.org
  58. --|-------------------------------------------------------------------------