This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
/
hasattr.go
156 lines (119 loc) · 2.91 KB
/
hasattr.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
package xsd
import (
xsdt "github.com/metaleap/go-xsd/types"
)
type hasAttrAbstract struct {
Abstract bool `xml:"abstract,attr"`
}
type hasAttrAttributeFormDefault struct {
AttributeFormDefault string `xml:"attributeFormDefault,attr"`
}
type hasAttrBase struct {
Base xsdt.Qname `xml:"base,attr"`
}
type hasAttrBlock struct {
Block string `xml:"block,attr"`
}
type hasAttrBlockDefault struct {
BlockDefault string `xml:"blockDefault,attr"`
}
type hasAttrDefault struct {
Default string `xml:"default,attr"`
}
type hasAttrFinal struct {
Final string `xml:"final,attr"`
}
type hasAttrFinalDefault struct {
FinalDefault string `xml:"finalDefault,attr"`
}
type hasAttrFixed struct {
Fixed string `xml:"fixed,attr"`
}
type hasAttrForm struct {
Form string `xml:"form,attr"`
}
type hasAttrElementFormDefault struct {
ElementFormDefault string `xml:"elementFormDefault,attr"`
}
type hasAttrId struct {
Id xsdt.Id `xml:"id,attr"`
}
type hasAttrItemType struct {
ItemType xsdt.Qname `xml:"itemType,attr"`
}
type hasAttrLang struct {
Lang xsdt.Language `xml:"lang,attr"`
}
type hasAttrMaxOccurs struct {
MaxOccurs string `xml:"maxOccurs,attr"`
}
func (me *hasAttrMaxOccurs) Value() (l xsdt.Long) {
if len(me.MaxOccurs) == 0 {
l = 1
} else if me.MaxOccurs == "unbounded" {
l = -1
} else {
l.Set(me.MaxOccurs)
}
return
}
type hasAttrMemberTypes struct {
MemberTypes string `xml:"memberTypes,attr"`
}
type hasAttrMinOccurs struct {
MinOccurs uint64 `xml:"minOccurs,attr"`
}
type hasAttrMixed struct {
Mixed bool `xml:"mixed,attr"`
}
type hasAttrName struct {
Name xsdt.NCName `xml:"name,attr"`
}
type hasAttrNamespace struct {
Namespace string `xml:"namespace,attr"`
}
type hasAttrNillable struct {
Nillable bool `xml:"nillable,attr"`
}
type hasAttrProcessContents struct {
ProcessContents string `xml:"processContents,attr"`
}
type hasAttrPublic struct {
Public string `xml:"public,attr"`
}
type hasAttrRef struct {
Ref xsdt.Qname `xml:"ref,attr"`
}
type hasAttrRefer struct {
Refer xsdt.Qname `xml:"refer,attr"`
}
type hasAttrSchemaLocation struct {
SchemaLocation xsdt.AnyURI `xml:"schemaLocation,attr"`
}
type hasAttrSource struct {
Source xsdt.AnyURI `xml:"source,attr"`
}
type hasAttrSubstitutionGroup struct {
SubstitutionGroup xsdt.Qname `xml:"substitutionGroup,attr"`
}
type hasAttrSystem struct {
System xsdt.AnyURI `xml:"system,attr"`
}
type hasAttrTargetNamespace struct {
TargetNamespace xsdt.AnyURI `xml:"targetNamespace,attr"`
}
type hasAttrType struct {
Type xsdt.Qname `xml:"type,attr"`
}
type hasAttrUse struct {
Use string `xml:"use,attr"`
}
type hasAttrValue struct {
Value string `xml:"value,attr"`
}
type hasAttrVersion struct {
Version xsdt.Token `xml:"version,attr"`
}
type hasAttrXpath struct {
Xpath string `xml:"xpath,attr"`
}