Eiffel Media API
Overview Cluster Class Classes Index      Previous Next      Top Features

xml.resolver.simple

Class XM_NULL_EXTERNAL_RESOLVER


Direct ancestors

XM_EXTERNAL_RESOLVER

Features

Invariants

indexing

description

Null resolver that always fails

library

Gobo Eiffel XML Library

copyright

Copyright (c) 2002, Eric Bezault and others

license

Eiffel Forum License v2 (see forum.txt)

date

$Date: 2004/09/12 00:49:59 $

revision

$Revision: 1.1 $

class

XM_NULL_EXTERNAL_RESOLVER

inherit

XM_EXTERNAL_RESOLVER

feature -- Action(s)

resolve (a_system: STRING)

-- Fails.

-- (From XM_EXTERNAL_RESOLVER)

require
a_system_not_void: a_system /= Void
ensure
stream_open_on_success: not has_error implies last_stream.is_open_read
ensure then
fails: has_error
resolve_finish

-- The parser has finished with the last resolved entity.
-- The previously resolved entity becomes the last resolved one.
-- Note: last_stream is not required to be restored accordingly.

-- (From XM_EXTERNAL_RESOLVER)

resolve_public (a_public: STRING; a_system: STRING)

-- Resolve a public/system identified pair to an input stream.
-- (Default implementation: resolve using system ID only.)

-- (From XM_EXTERNAL_RESOLVER)

require
a_public_not_void: a_public /= Void
a_system_not_void: a_system /= Void
ensure
stream_open_on_success: not has_error implies last_stream.is_open_read

feature -- Result

has_error: BOOLEAN

-- Always true

-- (From XM_EXTERNAL_RESOLVER)

ensure then
fails: Result
last_error: STRING

-- Error message.

-- (From XM_EXTERNAL_RESOLVER)

require
has_error: has_error
ensure
not_void: Result /= Void
last_stream: KI_CHARACTER_INPUT_STREAM

-- Not used.

-- (From XM_EXTERNAL_RESOLVER)

require
not_error: not has_error
ensure
not_void: Result /= Void
ensure then
never_called: False

invariant


-- From ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)

end