const ST_CyPattern = `\s*[0-9]*\.[0-9]{4}\s*`
const ST_ErrorPattern = `\s*0x[0-9A-Za-z]{8}\s*`
var ST_CyPatternRe = regexp.MustCompile(ST_CyPattern)
var ST_ErrorPatternRe = regexp.MustCompile(ST_ErrorPattern)
type Array struct {
CT_Array
}
func NewArray() *Array
func (m *Array) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Array) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Array) Validate() error
Validate validates the Array and its children
func (m *Array) ValidateWithPath(path string) error
ValidateWithPath validates the Array and its children, prefixing error messages with path
type CT_Array struct {
// Array Lower Bounds Attribute
LBoundsAttr int32
// Array Upper Bounds Attribute
UBoundsAttr int32
// Array Base Type
BaseTypeAttr ST_ArrayBaseType
ArrayChoice []*CT_ArrayChoice
}
func NewCT_Array() *CT_Array
func (m *CT_Array) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Array) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Array) Validate() error
Validate validates the CT_Array and its children
func (m *CT_Array) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Array and its children, prefixing error messages with path
type CT_ArrayChoice struct {
Variant *Variant
I1 *int8
I2 *int16
I4 *int32
Int *int32
Ui1 *uint8
Ui2 *uint16
Ui4 *uint32
Uint *uint32
R4 *float32
R8 *float64
Decimal *float64
Bstr *string
Date *time.Time
Bool *bool
Error *string
Cy *string
}
func NewCT_ArrayChoice() *CT_ArrayChoice
func (m *CT_ArrayChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_ArrayChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_ArrayChoice) Validate() error
Validate validates the CT_ArrayChoice and its children
func (m *CT_ArrayChoice) ValidateWithPath(path string) error
ValidateWithPath validates the CT_ArrayChoice and its children, prefixing error messages with path
type CT_Empty struct {
}
func NewCT_Empty() *CT_Empty
func (m *CT_Empty) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Empty) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Empty) Validate() error
Validate validates the CT_Empty and its children
func (m *CT_Empty) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Empty and its children, prefixing error messages with path
type CT_Null struct {
}
func NewCT_Null() *CT_Null
func (m *CT_Null) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Null) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Null) Validate() error
Validate validates the CT_Null and its children
func (m *CT_Null) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Null and its children, prefixing error messages with path
type CT_Variant struct {
VariantChoice *CT_VariantChoice
}
func NewCT_Variant() *CT_Variant
func (m *CT_Variant) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Variant) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Variant) Validate() error
Validate validates the CT_Variant and its children
func (m *CT_Variant) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Variant and its children, prefixing error messages with path
type CT_VariantChoice struct {
Variant *Variant
Vector *Vector
Array *Array
Blob *string
Oblob *string
Empty *Empty
Null *Null
I1 *int8
I2 *int16
I4 *int32
I8 *int64
Int *int32
Ui1 *uint8
Ui2 *uint16
Ui4 *uint32
Ui8 *uint64
Uint *uint32
R4 *float32
R8 *float64
Decimal *float64
Lpstr *string
Lpwstr *string
Bstr *string
Date *time.Time
Filetime *time.Time
Bool *bool
Cy *string
Error *string
Stream *string
Ostream *string
Storage *string
Ostorage *string
Vstream *Vstream
Clsid *string
}
func NewCT_VariantChoice() *CT_VariantChoice
func (m *CT_VariantChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_VariantChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_VariantChoice) Validate() error
Validate validates the CT_VariantChoice and its children
func (m *CT_VariantChoice) ValidateWithPath(path string) error
ValidateWithPath validates the CT_VariantChoice and its children, prefixing error messages with path
type CT_Vector struct {
// Vector Base Type
BaseTypeAttr ST_VectorBaseType
// Vector Size
SizeAttr uint32
VectorChoice []*CT_VectorChoice
}
func NewCT_Vector() *CT_Vector
func (m *CT_Vector) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Vector) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Vector) Validate() error
Validate validates the CT_Vector and its children
func (m *CT_Vector) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Vector and its children, prefixing error messages with path
type CT_VectorChoice struct {
Variant *Variant
I1 *int8
I2 *int16
I4 *int32
I8 *int64
Ui1 *uint8
Ui2 *uint16
Ui4 *uint32
Ui8 *uint64
R4 *float32
R8 *float64
Lpstr *string
Lpwstr *string
Bstr *string
Date *time.Time
Filetime *time.Time
Bool *bool
Cy *string
Error *string
Clsid *string
}
func NewCT_VectorChoice() *CT_VectorChoice
func (m *CT_VectorChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_VectorChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_VectorChoice) Validate() error
Validate validates the CT_VectorChoice and its children
func (m *CT_VectorChoice) ValidateWithPath(path string) error
ValidateWithPath validates the CT_VectorChoice and its children, prefixing error messages with path
type CT_Vstream struct {
VersionAttr string
Content string
}
func NewCT_Vstream() *CT_Vstream
func (m *CT_Vstream) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Vstream) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Vstream) Validate() error
Validate validates the CT_Vstream and its children
func (m *CT_Vstream) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Vstream and its children, prefixing error messages with path
type Empty struct {
CT_Empty
}
func NewEmpty() *Empty
func (m *Empty) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Empty) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Empty) Validate() error
Validate validates the Empty and its children
func (m *Empty) ValidateWithPath(path string) error
ValidateWithPath validates the Empty and its children, prefixing error messages with path
type Null struct {
CT_Null
}
func NewNull() *Null
func (m *Null) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Null) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Null) Validate() error
Validate validates the Null and its children
func (m *Null) ValidateWithPath(path string) error
ValidateWithPath validates the Null and its children, prefixing error messages with path
type ST_ArrayBaseType byte
const (
ST_ArrayBaseTypeUnset ST_ArrayBaseType = 0
ST_ArrayBaseTypeVariant ST_ArrayBaseType = 1
ST_ArrayBaseTypeI1 ST_ArrayBaseType = 2
ST_ArrayBaseTypeI2 ST_ArrayBaseType = 3
ST_ArrayBaseTypeI4 ST_ArrayBaseType = 4
ST_ArrayBaseTypeInt ST_ArrayBaseType = 5
ST_ArrayBaseTypeUi1 ST_ArrayBaseType = 6
ST_ArrayBaseTypeUi2 ST_ArrayBaseType = 7
ST_ArrayBaseTypeUi4 ST_ArrayBaseType = 8
ST_ArrayBaseTypeUint ST_ArrayBaseType = 9
ST_ArrayBaseTypeR4 ST_ArrayBaseType = 10
ST_ArrayBaseTypeR8 ST_ArrayBaseType = 11
ST_ArrayBaseTypeDecimal ST_ArrayBaseType = 12
ST_ArrayBaseTypeBstr ST_ArrayBaseType = 13
ST_ArrayBaseTypeDate ST_ArrayBaseType = 14
ST_ArrayBaseTypeBool ST_ArrayBaseType = 15
ST_ArrayBaseTypeCy ST_ArrayBaseType = 16
ST_ArrayBaseTypeError ST_ArrayBaseType = 17
)
func (m ST_ArrayBaseType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (e ST_ArrayBaseType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
func (m ST_ArrayBaseType) String() string
func (m *ST_ArrayBaseType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (e *ST_ArrayBaseType) UnmarshalXMLAttr(attr xml.Attr) error
func (m ST_ArrayBaseType) Validate() error
func (m ST_ArrayBaseType) ValidateWithPath(path string) error
type ST_VectorBaseType byte
const (
ST_VectorBaseTypeUnset ST_VectorBaseType = 0
ST_VectorBaseTypeVariant ST_VectorBaseType = 1
ST_VectorBaseTypeI1 ST_VectorBaseType = 2
ST_VectorBaseTypeI2 ST_VectorBaseType = 3
ST_VectorBaseTypeI4 ST_VectorBaseType = 4
ST_VectorBaseTypeI8 ST_VectorBaseType = 5
ST_VectorBaseTypeUi1 ST_VectorBaseType = 6
ST_VectorBaseTypeUi2 ST_VectorBaseType = 7
ST_VectorBaseTypeUi4 ST_VectorBaseType = 8
ST_VectorBaseTypeUi8 ST_VectorBaseType = 9
ST_VectorBaseTypeR4 ST_VectorBaseType = 10
ST_VectorBaseTypeR8 ST_VectorBaseType = 11
ST_VectorBaseTypeLpstr ST_VectorBaseType = 12
ST_VectorBaseTypeLpwstr ST_VectorBaseType = 13
ST_VectorBaseTypeBstr ST_VectorBaseType = 14
ST_VectorBaseTypeDate ST_VectorBaseType = 15
ST_VectorBaseTypeFiletime ST_VectorBaseType = 16
ST_VectorBaseTypeBool ST_VectorBaseType = 17
ST_VectorBaseTypeCy ST_VectorBaseType = 18
ST_VectorBaseTypeError ST_VectorBaseType = 19
ST_VectorBaseTypeClsid ST_VectorBaseType = 20
)
func (m ST_VectorBaseType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (e ST_VectorBaseType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
func (m ST_VectorBaseType) String() string
func (m *ST_VectorBaseType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (e *ST_VectorBaseType) UnmarshalXMLAttr(attr xml.Attr) error
func (m ST_VectorBaseType) Validate() error
func (m ST_VectorBaseType) ValidateWithPath(path string) error
type Variant struct {
CT_Variant
}
func NewVariant() *Variant
func (m *Variant) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Variant) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Variant) Validate() error
Validate validates the Variant and its children
func (m *Variant) ValidateWithPath(path string) error
ValidateWithPath validates the Variant and its children, prefixing error messages with path
type Vector struct {
CT_Vector
}
func NewVector() *Vector
func (m *Vector) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Vector) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Vector) Validate() error
Validate validates the Vector and its children
func (m *Vector) ValidateWithPath(path string) error
ValidateWithPath validates the Vector and its children, prefixing error messages with path
type Vstream struct {
CT_Vstream
}
func NewVstream() *Vstream
func (m *Vstream) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Vstream) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Vstream) Validate() error
Validate validates the Vstream and its children
func (m *Vstream) ValidateWithPath(path string) error
ValidateWithPath validates the Vstream and its children, prefixing error messages with path