/src/lib/xml/xml_data_node.e
Specman e | 62 lines | 29 code | 7 blank | 26 comment | 0 complexity | bbf7c4661962537b43299e94486c7cbd MD5 | raw file
1-- See the Copyright notice at the end of this file. 2-- 3class XML_DATA_NODE 4 -- 5 -- A leaf node containing data 6 -- 7 8inherit 9 XML_NODE 10 11create {XML_TREE} 12 make 13 14feature {ANY} 15 data: UNICODE_STRING 16 -- Data in the node 17 18feature {ANY} 19 accept (visitor: VISITOR) 20 local 21 v: XML_NODE_VISITOR 22 do 23 v ::= visitor 24 v.visit_data_node(Current) 25 end 26 27feature {} 28 make (a_data: like data; a_line: like line; a_column: like column) 29 require 30 a_data /= Void 31 a_line > 0 32 a_column > 0 33 do 34 data := a_data 35 line := a_line 36 column := a_column 37 end 38 39invariant 40 data /= Void 41 42end -- class XML_DATA_NODE 43-- 44-- Copyright (C) 2009-2017: by all the people cited in the AUTHORS file. 45-- 46-- Permission is hereby granted, free of charge, to any person obtaining a copy 47-- of this software and associated documentation files (the "Software"), to deal 48-- in the Software without restriction, including without limitation the rights 49-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 50-- copies of the Software, and to permit persons to whom the Software is 51-- furnished to do so, subject to the following conditions: 52-- 53-- The above copyright notice and this permission notice shall be included in 54-- all copies or substantial portions of the Software. 55-- 56-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 57-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 58-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 59-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 60-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 61-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 62-- THE SOFTWARE.