/[suikacvs]/messaging/manakai/lib/Message/DOM/DOMException.pm
Suika

Contents of /messaging/manakai/lib/Message/DOM/DOMException.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Jun 17 13:37:40 2007 UTC (17 years, 5 months ago) by wakaba
Branch: MAIN
Changes since 1.3: +21 -2 lines
++ manakai/t/ChangeLog	17 Jun 2007 13:37:22 -0000
2007-06-17  Wakaba  <wakaba@suika.fam.cx>

	* DOM-Attr.t, DOM-AttributeDefinition.t, DOM-DocumentType.t,
	DOM-Element.t, DOM-Entity.t, DOM-EntityReference.t,
	DOM-Notation.t, DOM-ProcessingInstruction.t: New.

	* DOM-Document.t, DOM-Node.t: Tests for newly-implemented attributes
	and methods are added.

	* Makefile (test-module-dom-old): Renamed from |test-module-dom|.
	(test-module-dom): New.

++ manakai/lib/Message/DOM/ChangeLog	17 Jun 2007 13:34:54 -0000
2007-06-17  Wakaba  <wakaba@suika.fam.cx>

	* Attr.pm (____new): Initialize |specified| as 1.
	(base_uri, manakai_attribute_type, specified): Implemented.
	(prefix): Don't check read-only flag unless |strict_error_checking|.
	(value): Call |text_content| for now.

	* AttributeDefinition.pm (DeclaredValueType, DefaultValueType): Added.
	(declared_type, default_type): Implemented.

	* CharacterData.pm (____new): Allow a scalar reference
	as an input for the |data| attribute.
	(base_uri, manakai_append_text): Implemented.

	* DOMConfiguration.pm (set_parameter): Resetting implemented.

	* DOMDocument.pm (____new): Set default values to
	configuration parameter whose default is true.
	(document_uri, input_encoding): Implemented.
	(all_declarations_processed, manakai_is_html): Implemented.
	(base_uri, manakai_append_text,
	manakai_entity_base_uri, strict_error_checking,
	xml_encoding, xml_version, xml_standalone): Implemented.

	* DOMElement.pm (manakai_base_uri, base_uri): Implemented.
	(get_attribute, get_attribute_node): Alpha version.
	(set_attribute_node, set_attribute_node_ns): Implemented.
	(set_attribute_ns): Accept non-ARRAY qualified name.

	* DOMException.pm (___error_def): |WRONG_DOCUMENT_ERR|,
	|NOT_SUPPORTED_ERR|, and |INUSE_ATTRIBUTE_ERR| are added.

	* DocumentType.pm (public_id, system_id): Implemented.
	(base_uri, declaration_base_uri, manakai_declaration_base_uri,
	manakai_append_text): Implemented.
	(element_types, general_entities, notations,
	set_element_type_definition_node, set_general_entity_node,
	set_notation_node): Alpha version.

	* ElementTypeDefinition.pm (manakai_append_text): Implemented.
	(attribute_definitions, set_attribute_definition_node): Alpha version.

	* Entity.pm (has_replacement_tree, public_id, system_id,
	manakai_declaration_base_uri, manakai_entity_base_uri,
	manakai_entity_uri): Implemented.

	* EntityReference.pm (manakai_expanded, manakai_external): Implemented.
	(base_uri, manakai_entity_base_uri): Implemented.

	* Node.pm (base_uri): Implemented.
	(text_content): Don't check read-only or not
	unless |strict_error_checking|.
	(manakai_append_text): Implemented.
	(get_feature): Alpha.
	(manakai_set_read_only): Implemented.

	* Notation.pm (public_id, system_id, manakai_append_text,
	manakai_declaration_base_uri): Implemented.

	* ProcessingInstruction.pm (manakai_base_uri,
	base_uri, manakai_append_text): Implemented.

1 wakaba 1.1 package Message::DOM::DOMException;
2     use strict;
3 wakaba 1.4 our $VERSION=do{my @r=(q$Revision: 1.3 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
4 wakaba 1.1 push our @ISA, 'Message::Util::Error', 'Message::IF::DOMException';
5     require Message::Util::Error;
6    
7     sub ___error_def () {+{
8 wakaba 1.4 WRONG_DOCUMENT_ERR => {
9     -code => 4,
10     -description => q(Can't insert into different document),
11     },
12 wakaba 1.1 NO_MODIFICATION_ALLOWED_ERR => {
13     -code => 7,
14     -subtype => {
15 wakaba 1.3 READ_ONLY_NODE_ERR => {
16     -description => q(Can't modify read-only node),
17     },
18 wakaba 1.1 READ_ONLY_NODE_LIST_ERR => {
19     -description => q(Can't modify read-only node list),
20     },
21     },
22     },
23 wakaba 1.4 NOT_SUPPORTED_ERR => {
24     -code => 9,
25     -subtype => {
26     NON_HTML_OPERATION_ERR => {
27     -description => q(Can't apply to HTML document),
28     },
29     UNKNOWN_XML_VERSION_ERR => {
30     -description => q(Specified version of XML is not supported),
31     },
32     },
33     },
34     INUSE_ATTRIBUTE_ERR => {
35     -code => 10,
36     -description => q(Attribute is already in use),
37     },
38 wakaba 1.1 }} # ___error_def
39    
40     package Message::IF::DOMException;
41 wakaba 1.2 push our @ISA, 'Message::Util::Error';
42 wakaba 1.1
43     ## DOM1
44     sub INDEX_SIZE_ERR () { 1 }
45     sub DOMSTRING_SIZE_ERR () { 2 }
46     sub HIERARCHY_REQUEST_ERR () { 3 }
47     sub WRONG_DOCUMENT_ERR () { 4 }
48     sub INVALID_CHARACTER_ERR () { 5 }
49     sub NO_DATA_ALLOWED_ERR () { 6 }
50     sub NO_MODIFICATION_ALLOWED_ERR () { 7 }
51     sub NOT_FOUND_ERR () { 8 }
52     sub NOT_SUPPORTED_ERR () { 9 }
53     sub INUSE_ATTRIBUTE_ERR () { 10 }
54     ## DOM2
55     sub INVALID_STATE_ERR () { 11 }
56     sub SYNTAX_ERR () { 12 }
57     sub INVALID_MODIFICATION_ERR () { 13 }
58     sub NAMESPACE_ERR () { 14 }
59     sub INVALID_ACCESS_ERR () { 15 }
60     ## DOM3
61     sub VALIDATION_ERR () { 16 }
62     sub TYPE_MISMATCH_ERR () { 17 }
63    
64     =head1 LICENSE
65    
66     Copyright 2007 Wakaba <w@suika.fam.cx>
67    
68     This program is free software; you can redistribute it and/or
69     modify it under the same terms as Perl itself.
70    
71     =cut
72    
73     1;
74 wakaba 1.4 ## $Date: 2007/06/16 15:27:45 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24