aboutsummaryrefslogtreecommitdiff
path: root/xsd/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-18 16:17:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-18 16:17:39 +0200
commitaa66cbd3101414d48d153f5c2255fdada9b85d94 (patch)
tree1c478283292057b2e82536adab872cc271b74746 /xsd/cxx
parent2eba9f9f73be55f3f070a73449de8e3764e9cd87 (diff)
Add support for default element values of anyType type
Diffstat (limited to 'xsd/cxx')
-rw-r--r--xsd/cxx/tree/default-value.cxx8
-rw-r--r--xsd/cxx/tree/default-value.hxx6
2 files changed, 12 insertions, 2 deletions
diff --git a/xsd/cxx/tree/default-value.cxx b/xsd/cxx/tree/default-value.cxx
index d6e83d8..6ac5f5c 100644
--- a/xsd/cxx/tree/default-value.cxx
+++ b/xsd/cxx/tree/default-value.cxx
@@ -460,9 +460,15 @@ namespace CXX
Traversal::NodeBase::dispatch (ultimate_base (c));
}
- // anySimpleType.
+ // anyType & anySimpleType.
//
Void InitValue::
+ traverse (SemanticGraph::AnyType& t)
+ {
+ os << fq_name (t) << " (" << strlit (value_) << ")";
+ }
+
+ Void InitValue::
traverse (SemanticGraph::AnySimpleType& t)
{
os << fq_name (t) << " (" << strlit (value_) << ")";
diff --git a/xsd/cxx/tree/default-value.hxx b/xsd/cxx/tree/default-value.hxx
index 0384a30..cd3d0f2 100644
--- a/xsd/cxx/tree/default-value.hxx
+++ b/xsd/cxx/tree/default-value.hxx
@@ -178,6 +178,7 @@ namespace CXX
Traversal::Union,
Traversal::Complex,
+ Traversal::AnyType,
Traversal::AnySimpleType,
Traversal::Fundamental::String,
@@ -236,9 +237,12 @@ namespace CXX
virtual Void
traverse (SemanticGraph::Complex&);
- // anySimpleType.
+ // anyType & anySimpleType.
//
virtual Void
+ traverse (SemanticGraph::AnyType&);
+
+ virtual Void
traverse (SemanticGraph::AnySimpleType&);
// Strings.