unioffice: github.com/unidoc/unioffice/schema/soo/pkg/content_types Index | Files

package content_types

import "github.com/unidoc/unioffice/schema/soo/pkg/content_types"

Index

Package Files

CT_Default.go CT_Override.go CT_Types.go Default.go Override.go Types.go common.go

Constants

const ST_ContentTypePattern = `^\p{Latin}+/.*$`
const ST_ExtensionPattern = `([!$&'\(\)\*\+,:=]|(%[0-9a-fA-F][0-9a-fA-F])|[:@]|[a-zA-Z0-9\-_~])+`

Variables

var ST_ContentTypePatternRe = regexp.MustCompile(ST_ContentTypePattern)
var ST_ExtensionPatternRe = regexp.MustCompile(ST_ExtensionPattern)

type CT_Default Uses

type CT_Default struct {
    ExtensionAttr   string
    ContentTypeAttr string
}

func NewCT_Default Uses

func NewCT_Default() *CT_Default

func (*CT_Default) MarshalXML Uses

func (m *CT_Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_Default) UnmarshalXML Uses

func (m *CT_Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_Default) Validate Uses

func (m *CT_Default) Validate() error

Validate validates the CT_Default and its children

func (*CT_Default) ValidateWithPath Uses

func (m *CT_Default) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Default and its children, prefixing error messages with path

type CT_Override Uses

type CT_Override struct {
    ContentTypeAttr string
    PartNameAttr    string
}

func NewCT_Override Uses

func NewCT_Override() *CT_Override

func (*CT_Override) MarshalXML Uses

func (m *CT_Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_Override) UnmarshalXML Uses

func (m *CT_Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_Override) Validate Uses

func (m *CT_Override) Validate() error

Validate validates the CT_Override and its children

func (*CT_Override) ValidateWithPath Uses

func (m *CT_Override) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Override and its children, prefixing error messages with path

type CT_Types Uses

type CT_Types struct {
    Default  []*Default
    Override []*Override
}

func NewCT_Types Uses

func NewCT_Types() *CT_Types

func (*CT_Types) MarshalXML Uses

func (m *CT_Types) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_Types) UnmarshalXML Uses

func (m *CT_Types) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_Types) Validate Uses

func (m *CT_Types) Validate() error

Validate validates the CT_Types and its children

func (*CT_Types) ValidateWithPath Uses

func (m *CT_Types) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Types and its children, prefixing error messages with path

type Default Uses

type Default struct {
    CT_Default
}

func NewDefault Uses

func NewDefault() *Default

func (*Default) MarshalXML Uses

func (m *Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Default) UnmarshalXML Uses

func (m *Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Default) Validate Uses

func (m *Default) Validate() error

Validate validates the Default and its children

func (*Default) ValidateWithPath Uses

func (m *Default) ValidateWithPath(path string) error

ValidateWithPath validates the Default and its children, prefixing error messages with path

type Override Uses

type Override struct {
    CT_Override
}

func NewOverride Uses

func NewOverride() *Override

func (*Override) MarshalXML Uses

func (m *Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Override) UnmarshalXML Uses

func (m *Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Override) Validate Uses

func (m *Override) Validate() error

Validate validates the Override and its children

func (*Override) ValidateWithPath Uses

func (m *Override) ValidateWithPath(path string) error

ValidateWithPath validates the Override and its children, prefixing error messages with path

type Types Uses

type Types struct {
    CT_Types
}

func NewTypes Uses

func NewTypes() *Types

func (*Types) MarshalXML Uses

func (m *Types) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Types) UnmarshalXML Uses

func (m *Types) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Types) Validate Uses

func (m *Types) Validate() error

Validate validates the Types and its children

func (*Types) ValidateWithPath Uses

func (m *Types) ValidateWithPath(path string) error

ValidateWithPath validates the Types and its children, prefixing error messages with path

Package content_types imports 4 packages (graph) and is imported by 2 packages. Updated 2019-05-05. Refresh now. Tools for package owners.