@@ -5,15 +5,11 @@ namespace XmlSchemaClassGenerator
5
5
{
6
6
public interface IXmlSchemaNode
7
7
{
8
- //string Name { get; }
9
8
string DefaultValue { get ; }
10
9
string FixedValue { get ; }
11
10
XmlSchemaForm Form { get ; }
12
11
XmlQualifiedName QualifiedName { get ; }
13
12
XmlQualifiedName RefName { get ; }
14
- //XmlQualifiedName SchemaTypeName { get; }
15
- //XmlSchemaType SchemaType { get; }
16
- //XmlSchemaType NodeSchemaType { get; }
17
13
18
14
XmlSchemaAnnotated Base { get ; }
19
15
XmlSchemaForm FormDefault { get ; }
@@ -25,24 +21,14 @@ public sealed class XmlSchemaAttributeEx : IXmlSchemaNode
25
21
26
22
public XmlSchemaAttribute Real { get ; }
27
23
28
- //public string Name => Real.Name;
29
24
public string DefaultValue => Real . DefaultValue ;
30
25
public string FixedValue => Real . FixedValue ;
31
26
public XmlSchemaForm Form => Real . Form ;
32
27
public XmlQualifiedName QualifiedName => Real . QualifiedName ;
33
28
public XmlQualifiedName RefName => Real . RefName ;
34
- //public XmlQualifiedName SchemaTypeName => Real.SchemaTypeName;
35
- //public XmlSchemaSimpleType SchemaType => Real.SchemaType;
36
29
public XmlSchemaSimpleType AttributeSchemaType => Real . AttributeSchemaType ;
37
-
38
30
public XmlSchemaAnnotated Base => Real ;
39
-
40
31
public XmlSchemaForm FormDefault => Base . GetSchema ( ) . AttributeFormDefault ;
41
-
42
- //XmlSchemaType IXmlSchemaNode.SchemaType => SchemaType;
43
-
44
- //XmlSchemaType IXmlSchemaNode.NodeSchemaType => AttributeSchemaType;
45
-
46
32
public XmlSchemaUse Use => Real . Use ;
47
33
48
34
public static implicit operator XmlSchemaAttributeEx ( XmlSchemaAttribute xs ) => new ( xs ) ;
@@ -55,24 +41,14 @@ public sealed class XmlSchemaElementEx : IXmlSchemaNode
55
41
56
42
public XmlSchemaElement Real { get ; }
57
43
58
- //public string Name => Real.Name;
59
44
public string DefaultValue => Real . DefaultValue ;
60
45
public string FixedValue => Real . FixedValue ;
61
46
public XmlSchemaForm Form => Real . Form ;
62
47
public XmlQualifiedName QualifiedName => Real . QualifiedName ;
63
48
public XmlQualifiedName RefName => Real . RefName ;
64
- //public XmlQualifiedName SchemaTypeName => Real.SchemaTypeName;
65
- //public XmlSchemaType SchemaType => Real.SchemaType;
66
49
public XmlSchemaType ElementSchemaType => Real . ElementSchemaType ;
67
-
68
50
public XmlSchemaAnnotated Base => Real ;
69
-
70
51
public XmlSchemaForm FormDefault => Base . GetSchema ( ) . ElementFormDefault ;
71
-
72
- //XmlSchemaType IXmlSchemaNode.SchemaType => SchemaType;
73
-
74
- //XmlSchemaType IXmlSchemaNode.NodeSchemaType => ElementSchemaType;
75
-
76
52
public bool IsNillable => Real . IsNillable ;
77
53
78
54
public static implicit operator XmlSchemaElementEx ( XmlSchemaElement xs ) => new ( xs ) ;
0 commit comments