GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
XML_DTD_PUBLIC_REPOSITORY
+
Point of view
ANY
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
XML_DTD_PARSER
All features
expanded class XML_DTD_PUBLIC_REPOSITORY
Summary
top
This class allows you to register public DTD files as local files (useful when the network is not available, or for performance reasons, or for any other reason).
Direct parents
Insert list:
URL_VALIDITY
Overview
top
Exported features
register
(public_id:
UNICODE_STRING
, a_url:
STRING
)
Register the public DTD
public_id
as having a local counterpart file in the given
local_path
.
is_registered
(public_id:
UNICODE_STRING
):
BOOLEAN
Does the given
public_id
have a registered
URL
?
valid_url
(a_url:
ABSTRACT_STRING
):
BOOLEAN
True if the
STRING
represents a real
URL
(i.e. with a known protocol and a valid URI for that protocol)
register
(public_id:
UNICODE_STRING
, a_url:
STRING
)
effective procedure
top
Register the public DTD
public_id
as having a local counterpart file in the given
local_path
.
require
valid_public_id:
not public_id.is_empty
valid_url:
valid_url
(a_url)
not_registered:
not
is_registered
(public_id)
ensure
registered:
is_registered
(public_id)
is_registered
(public_id:
UNICODE_STRING
):
BOOLEAN
effective function
top
Does the given
public_id
have a registered
URL
?
require
valid_public_id:
not public_id.is_empty
valid_url
(a_url:
ABSTRACT_STRING
):
BOOLEAN
effective function
top
True if the
STRING
represents a real
URL
(i.e. with a known protocol and a valid URI for that protocol)
require
a_url /= Void