/src/lib/xml/xml_node.e

http://github.com/tybor/Liberty · Specman e · 48 lines · 16 code · 5 blank · 27 comment · 0 complexity · 05fc7e025bb2bced2b67a08578519dcc MD5 · raw file

  1. -- See the Copyright notice at the end of this file.
  2. --
  3. deferred class XML_NODE
  4. --
  5. -- A node in an XML_TREE
  6. --
  7. insert
  8. VISITABLE
  9. feature {ANY}
  10. line, column: INTEGER
  11. -- The position of the node in its source file
  12. parent: XML_COMPOSITE_NODE
  13. -- The parent of the node, Void if it is the root
  14. feature {XML_COMPOSITE_NODE}
  15. set_parent (a_parent: like parent)
  16. require
  17. a_parent /= Void
  18. do
  19. parent := a_parent
  20. ensure
  21. parent = a_parent
  22. end
  23. end -- class XML_NODE
  24. --
  25. -- Copyright (C) 2009-2017: by all the people cited in the AUTHORS file.
  26. --
  27. -- Permission is hereby granted, free of charge, to any person obtaining a copy
  28. -- of this software and associated documentation files (the "Software"), to deal
  29. -- in the Software without restriction, including without limitation the rights
  30. -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  31. -- copies of the Software, and to permit persons to whom the Software is
  32. -- furnished to do so, subject to the following conditions:
  33. --
  34. -- The above copyright notice and this permission notice shall be included in
  35. -- all copies or substantial portions of the Software.
  36. --
  37. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  38. -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  39. -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  40. -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  41. -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  42. -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  43. -- THE SOFTWARE.