const ST_GuidPattern = `\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}`
const ST_PointPattern = `-?[0-9]+,-?[0-9]+`
var ST_GuidPatternRe = regexp.MustCompile(ST_GuidPattern)
var ST_PointPatternRe = regexp.MustCompile(ST_PointPattern)
type CT_CtxLink struct {
DirectionAttr ST_Dir
RefAttr *ST_Ref
}
func NewCT_CtxLink() *CT_CtxLink
func (m *CT_CtxLink) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_CtxLink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_CtxLink) Validate() error
Validate validates the CT_CtxLink and its children
func (m *CT_CtxLink) ValidateWithPath(path string) error
ValidateWithPath validates the CT_CtxLink and its children, prefixing error messages with path
type CT_CtxNode struct {
IdAttr *string
TypeAttr ST_CtxNodeType
RotatedBoundingBoxAttr *ST_Points
AlignmentLevelAttr *int32
ContentTypeAttr *int32
AscenderAttr *ST_Points
DescenderAttr *ST_Points
BaselineAttr *ST_Points
MidlineAttr *ST_Points
CustomRecognizerIdAttr *string
MathMLAttr *string
MathStructAttr *string
MathSymbolAttr *string
BeginModifierTypeAttr *string
EndModifierTypeAttr *string
RotationAngleAttr *int32
HotPointsAttr *ST_Points
CentroidAttr *string
SemanticTypeAttr *ST_SemanticType
ShapeNameAttr *string
ShapeGeometryAttr *ST_Points
Property []*CT_Property
SourceLink []*CT_CtxLink
DestinationLink []*CT_CtxLink
}
func NewCT_CtxNode() *CT_CtxNode
func (m *CT_CtxNode) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_CtxNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_CtxNode) Validate() error
Validate validates the CT_CtxNode and its children
func (m *CT_CtxNode) ValidateWithPath(path string) error
ValidateWithPath validates the CT_CtxNode and its children, prefixing error messages with path
type CT_Property struct {
TypeAttr string
Content string
}
func NewCT_Property() *CT_Property
func (m *CT_Property) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *CT_Property) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *CT_Property) Validate() error
Validate validates the CT_Property and its children
func (m *CT_Property) ValidateWithPath(path string) error
ValidateWithPath validates the CT_Property and its children, prefixing error messages with path
type Context struct {
CT_CtxNode
}
func NewContext() *Context
func (m *Context) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m *Context) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (m *Context) Validate() error
Validate validates the Context and its children
func (m *Context) ValidateWithPath(path string) error
ValidateWithPath validates the Context and its children, prefixing error messages with path
ST_CtxNodeType is a union type
type ST_CtxNodeType struct {
ST_KnownCtxNodeType ST_KnownCtxNodeType
ST_Guid *string
}
func ParseUnionST_CtxNodeType(s string) (ST_CtxNodeType, error)
func (m ST_CtxNodeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m ST_CtxNodeType) String() string
func (m *ST_CtxNodeType) Validate() error
func (m *ST_CtxNodeType) ValidateWithPath(path string) error
type ST_Dir byte
const (
ST_DirUnset ST_Dir = 0
ST_DirTo ST_Dir = 1
ST_DirFrom ST_Dir = 2
ST_DirWith ST_Dir = 3
)
func (m ST_Dir) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (e ST_Dir) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
func (m ST_Dir) String() string
func (m *ST_Dir) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (e *ST_Dir) UnmarshalXMLAttr(attr xml.Attr) error
func (m ST_Dir) Validate() error
func (m ST_Dir) ValidateWithPath(path string) error
type ST_KnownCtxNodeType byte
const (
ST_KnownCtxNodeTypeUnset ST_KnownCtxNodeType = 0
ST_KnownCtxNodeTypeRoot ST_KnownCtxNodeType = 1
ST_KnownCtxNodeTypeUnclassifiedInk ST_KnownCtxNodeType = 2
ST_KnownCtxNodeTypeWritingRegion ST_KnownCtxNodeType = 3
ST_KnownCtxNodeTypeAnalysisHint ST_KnownCtxNodeType = 4
ST_KnownCtxNodeTypeObject ST_KnownCtxNodeType = 5
ST_KnownCtxNodeTypeInkDrawing ST_KnownCtxNodeType = 6
ST_KnownCtxNodeTypeImage ST_KnownCtxNodeType = 7
ST_KnownCtxNodeTypeParagraph ST_KnownCtxNodeType = 8
ST_KnownCtxNodeTypeLine ST_KnownCtxNodeType = 9
ST_KnownCtxNodeTypeInkBullet ST_KnownCtxNodeType = 10
ST_KnownCtxNodeTypeInkWord ST_KnownCtxNodeType = 11
ST_KnownCtxNodeTypeTextWord ST_KnownCtxNodeType = 12
ST_KnownCtxNodeTypeCustomRecognizer ST_KnownCtxNodeType = 13
ST_KnownCtxNodeTypeMathRegion ST_KnownCtxNodeType = 14
ST_KnownCtxNodeTypeMathEquation ST_KnownCtxNodeType = 15
ST_KnownCtxNodeTypeMathStruct ST_KnownCtxNodeType = 16
ST_KnownCtxNodeTypeMathSymbol ST_KnownCtxNodeType = 17
ST_KnownCtxNodeTypeMathIdentifier ST_KnownCtxNodeType = 18
ST_KnownCtxNodeTypeMathOperator ST_KnownCtxNodeType = 19
ST_KnownCtxNodeTypeMathNumber ST_KnownCtxNodeType = 20
ST_KnownCtxNodeTypeNonInkDrawing ST_KnownCtxNodeType = 21
ST_KnownCtxNodeTypeGroupNode ST_KnownCtxNodeType = 22
ST_KnownCtxNodeTypeMixedDrawing ST_KnownCtxNodeType = 23
)
func (m ST_KnownCtxNodeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (e ST_KnownCtxNodeType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
func (m ST_KnownCtxNodeType) String() string
func (m *ST_KnownCtxNodeType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (e *ST_KnownCtxNodeType) UnmarshalXMLAttr(attr xml.Attr) error
func (m ST_KnownCtxNodeType) Validate() error
func (m ST_KnownCtxNodeType) ValidateWithPath(path string) error
type ST_KnownSemanticType byte
const (
ST_KnownSemanticTypeUnset ST_KnownSemanticType = 0
ST_KnownSemanticTypeNone ST_KnownSemanticType = 1
ST_KnownSemanticTypeUnderline ST_KnownSemanticType = 2
ST_KnownSemanticTypeStrikethrough ST_KnownSemanticType = 3
ST_KnownSemanticTypeHighlight ST_KnownSemanticType = 4
ST_KnownSemanticTypeScratchOut ST_KnownSemanticType = 5
ST_KnownSemanticTypeVerticalRange ST_KnownSemanticType = 6
ST_KnownSemanticTypeCallout ST_KnownSemanticType = 7
ST_KnownSemanticTypeEnclosure ST_KnownSemanticType = 8
ST_KnownSemanticTypeComment ST_KnownSemanticType = 9
ST_KnownSemanticTypeContainer ST_KnownSemanticType = 10
ST_KnownSemanticTypeConnector ST_KnownSemanticType = 11
)
func (m ST_KnownSemanticType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (e ST_KnownSemanticType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
func (m ST_KnownSemanticType) String() string
func (m *ST_KnownSemanticType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (e *ST_KnownSemanticType) UnmarshalXMLAttr(attr xml.Attr) error
func (m ST_KnownSemanticType) Validate() error
func (m ST_KnownSemanticType) ValidateWithPath(path string) error
type ST_Points []string
func ParseSliceST_Points(v string) (ST_Points, error)
ST_Ref is a union type
type ST_Ref struct {
ST_Guid *string
Uint32 *uint32
}
func ParseUnionST_Ref(s string) (ST_Ref, error)
func (m ST_Ref) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m ST_Ref) String() string
func (m *ST_Ref) Validate() error
func (m *ST_Ref) ValidateWithPath(path string) error
ST_SemanticType is a union type
type ST_SemanticType struct {
ST_KnownSemanticType ST_KnownSemanticType
Uint32 *uint32
}
func ParseUnionST_SemanticType(s string) (ST_SemanticType, error)
func (m ST_SemanticType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (m ST_SemanticType) String() string
func (m *ST_SemanticType) Validate() error
func (m *ST_SemanticType) ValidateWithPath(path string) error