Documentation
¶
Index ¶
- func IsStaticType(name string) bool
- func ParseXmlnsOverrides(overrides []string) (xmlnsOverrides, error)
- func StaticType(name string) staticType
- type Any
- type Attribute
- type AttributeGroup
- type Choice
- type ComplexContent
- type ComplexType
- func (ct *ComplexType) Attributes() []Attribute
- func (ct *ComplexType) ContainsText() bool
- func (ct *ComplexType) Elements() []Element
- func (ct *ComplexType) GoName() string
- func (ct *ComplexType) GoTypeName() string
- func (ct *ComplexType) HasXmlNameAttribute() bool
- func (ct *ComplexType) Schema() *Schema
- type Element
- func (e *Element) Array() bool
- func (e *Element) Attributes() []Attribute
- func (e *Element) ContainsText() bool
- func (e *Element) Elements() []Element
- func (e *Element) GoFieldName() string
- func (e *Element) GoForeignModule() string
- func (e *Element) GoMemLayout() string
- func (e *Element) GoName() string
- func (e *Element) GoTypeName() string
- func (e *Element) XmlName() string
- type Enumeration
- type Extension
- type FractionDigits
- type GenericContent
- type Import
- type Include
- type Length
- type MaxExclusive
- type MaxInclusive
- type MaxLength
- type MinExclusive
- type MinInclusive
- type MinLength
- type Pattern
- type Restriction
- type Schema
- func (sch *Schema) Empty() bool
- func (sch *Schema) ExportableComplexTypes() []ComplexType
- func (sch *Schema) ExportableElements() []Element
- func (sch *Schema) ExportableSimpleTypes() []SimpleType
- func (sch *Schema) GetAttribute(name string) *Attribute
- func (sch *Schema) GetElement(name string) *Element
- func (sch *Schema) GetType(name string) Type
- func (sch *Schema) GoImportsNeeded() []string
- func (sch *Schema) GoPackageName() string
- func (sch *Schema) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type Sequence
- type SequenceAll
- type SimpleContent
- type SimpleType
- type TotalDigits
- type Type
- type WhiteSpace
- type Workspace
- type Xmlns
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStaticType ¶
func ParseXmlnsOverrides ¶
func StaticType ¶
func StaticType(name string) staticType
Types ¶
type Attribute ¶
type Attribute struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema attribute"`
Name string `xml:"name,attr"`
Type reference `xml:"type,attr"`
Use string `xml:"use,attr"`
DuplicateCount uint `xml:"-"`
Ref reference `xml:"ref,attr"`
// contains filtered or unexported fields
}
Attribute defines single XML attribute
func (*Attribute) GoForeignModule ¶
type AttributeGroup ¶
type AttributeGroup struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema attributeGroup"`
Name string `xml:"name,attr"`
Ref reference `xml:"ref,attr"`
AttributesDirect []Attribute `xml:"attribute"`
// contains filtered or unexported fields
}
func (*AttributeGroup) Attributes ¶
func (att *AttributeGroup) Attributes() []Attribute
func (*AttributeGroup) ContainsText ¶
func (att *AttributeGroup) ContainsText() bool
func (*AttributeGroup) Elements ¶
func (att *AttributeGroup) Elements() []Element
func (*AttributeGroup) GoName ¶
func (att *AttributeGroup) GoName() string
func (*AttributeGroup) GoTypeName ¶
func (att *AttributeGroup) GoTypeName() string
func (*AttributeGroup) Schema ¶
func (att *AttributeGroup) Schema() *Schema
type Choice ¶
type ComplexContent ¶
type ComplexContent struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema complexContent"`
Extension *Extension `xml:"extension"`
Restriction *Restriction `xml:"restriction"`
// contains filtered or unexported fields
}
func (*ComplexContent) Attributes ¶
func (cc *ComplexContent) Attributes() []Attribute
func (*ComplexContent) ContainsText ¶
func (cc *ComplexContent) ContainsText() bool
func (*ComplexContent) Elements ¶
func (cc *ComplexContent) Elements() []Element
type ComplexType ¶
type ComplexType struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema complexType"`
Name string `xml:"name,attr"`
Mixed bool `xml:"mixed,attr"`
AttributesDirect []Attribute `xml:"attribute"`
Sequence *Sequence `xml:"sequence"`
SequenceAll *SequenceAll `xml:"all"`
SimpleContent *SimpleContent `xml:"simpleContent"`
ComplexContent *ComplexContent `xml:"complexContent"`
Choice *Choice `xml:"choice"`
// contains filtered or unexported fields
}
func (*ComplexType) Attributes ¶
func (ct *ComplexType) Attributes() []Attribute
func (*ComplexType) ContainsText ¶
func (ct *ComplexType) ContainsText() bool
func (*ComplexType) Elements ¶
func (ct *ComplexType) Elements() []Element
func (*ComplexType) GoName ¶
func (ct *ComplexType) GoName() string
func (*ComplexType) GoTypeName ¶
func (ct *ComplexType) GoTypeName() string
func (*ComplexType) HasXmlNameAttribute ¶
func (ct *ComplexType) HasXmlNameAttribute() bool
func (*ComplexType) Schema ¶
func (ct *ComplexType) Schema() *Schema
type Element ¶
type Element struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema element"`
Name string `xml:"name,attr"`
XmlNameOverride string `xml:"-"`
FieldOverride bool `xml:"-"`
Type reference `xml:"type,attr"`
Ref reference `xml:"ref,attr"`
MinOccurs string `xml:"minOccurs,attr"`
MaxOccurs string `xml:"maxOccurs,attr"`
ComplexType *ComplexType `xml:"complexType"`
SimpleType *SimpleType `xml:"simpleType"`
// contains filtered or unexported fields
}
Element defines single XML element
func (*Element) Attributes ¶
func (*Element) ContainsText ¶
func (*Element) GoFieldName ¶
func (*Element) GoForeignModule ¶
func (*Element) GoMemLayout ¶
func (*Element) GoTypeName ¶
type Enumeration ¶
type Enumeration struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema enumeration"`
Value string `xml:"value,attr"`
Fixed *bool `xml:"fixed,attr"`
}
Attribute defines single XML attribute
func (*Enumeration) GoName ¶
func (e *Enumeration) GoName() string
Public Go Name of this struct item
func (*Enumeration) Modifiers ¶
func (e *Enumeration) Modifiers() string
func (*Enumeration) XmlName ¶
func (e *Enumeration) XmlName() string
type Extension ¶
type Extension struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema extension"`
Base reference `xml:"base,attr"`
AttributesDirect []Attribute `xml:"attribute"`
AttributeGroups []AttributeGroup `xml:"attributeGroup"`
Sequence *Sequence `xml:"sequence"`
// contains filtered or unexported fields
}
func (*Extension) Attributes ¶
func (*Extension) ContainsText ¶
type FractionDigits ¶
type GenericContent ¶
type MaxExclusive ¶
type MaxInclusive ¶
type MinExclusive ¶
type MinInclusive ¶
type Restriction ¶
type Restriction struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema restriction"`
Base reference `xml:"base,attr"`
AttributesDirect []Attribute `xml:"attribute"`
EnumsDirect []Enumeration `xml:"enumeration"`
SimpleContent *SimpleContent `xml:"simpleContent"`
WhiteSpace *WhiteSpace `xml:"whiteSpace"`
Pattern *Pattern `xml:"pattern"`
MinExclusive *MinExclusive `xml:"minExclusive"`
MaxExclusive *MaxExclusive `xml:"maxExclusive"`
MinInclusive *MinInclusive `xml:"minInclusive"`
MaxInclusive *MaxInclusive `xml:"maxInclusive"`
TotalDigits *TotalDigits `xml:"totalDigits"`
FractionDigits *FractionDigits `xml:"fractionDigits"`
Length *Length `xml:"length"`
MinLength *MinLength `xml:"minLength"`
MaxLength *MaxLength `xml:"maxLength"`
// contains filtered or unexported fields
}
func (*Restriction) Attributes ¶
func (r *Restriction) Attributes() []Attribute
func (*Restriction) Enums ¶
func (r *Restriction) Enums() []Enumeration
type Schema ¶
type Schema struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema schema"`
Xmlns Xmlns `xml:"-"`
TargetNamespace string `xml:"targetNamespace,attr"`
Includes []Include `xml:"include"`
Imports []Import `xml:"import"`
Elements []Element `xml:"element"`
Attributes []Attribute `xml:"attribute"`
AttributeGroups []AttributeGroup `xml:"attributeGroup"`
ComplexTypes []ComplexType `xml:"complexType"`
SimpleTypes []SimpleType `xml:"simpleType"`
ModulesPath string `xml:"-"`
// contains filtered or unexported fields
}
Schema is the root XSD element
func (*Schema) ExportableComplexTypes ¶
func (sch *Schema) ExportableComplexTypes() []ComplexType
func (*Schema) ExportableElements ¶
func (*Schema) ExportableSimpleTypes ¶
func (sch *Schema) ExportableSimpleTypes() []SimpleType
func (*Schema) GetAttribute ¶
func (*Schema) GetElement ¶
func (*Schema) GoImportsNeeded ¶
func (*Schema) GoPackageName ¶
func (*Schema) UnmarshalXML ¶
type Sequence ¶
type SequenceAll ¶
type SequenceAll struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema all"`
ElementList []Element `xml:"element"`
Choices []Choice `xml:"choice"`
Any []Any `xml:"any"`
// contains filtered or unexported fields
}
func (*SequenceAll) Elements ¶
func (s *SequenceAll) Elements() []Element
type SimpleContent ¶
type SimpleContent struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema simpleContent"`
Extension *Extension `xml:"extension"`
Restriction *Restriction `xml:"restriction"`
// contains filtered or unexported fields
}
func (*SimpleContent) Attributes ¶
func (sc *SimpleContent) Attributes() []Attribute
func (*SimpleContent) ContainsText ¶
func (sc *SimpleContent) ContainsText() bool
func (*SimpleContent) Elements ¶
func (sc *SimpleContent) Elements() []Element
type SimpleType ¶
type SimpleType struct {
XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema simpleType"`
Name string `xml:"name,attr"`
Restriction *Restriction `xml:"restriction"`
// contains filtered or unexported fields
}
func (*SimpleType) Attributes ¶
func (st *SimpleType) Attributes() []Attribute
func (*SimpleType) ContainsText ¶
func (st *SimpleType) ContainsText() bool
func (*SimpleType) Elements ¶
func (st *SimpleType) Elements() []Element
func (*SimpleType) Enums ¶
func (st *SimpleType) Enums() []Enumeration
func (*SimpleType) GoName ¶
func (st *SimpleType) GoName() string
func (*SimpleType) GoTypeName ¶
func (st *SimpleType) GoTypeName() string
func (*SimpleType) Schema ¶
func (st *SimpleType) Schema() *Schema
type TotalDigits ¶
type WhiteSpace ¶
Click to show internal directories.
Click to hide internal directories.