HomeUniDoc
...

Package content_types

Overview ▾

Index ▾

Constants
Variables
type CT_Default
    func NewCT_Default() *CT_Default
    func (m *CT_Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *CT_Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *CT_Default) Validate() error
    func (m *CT_Default) ValidateWithPath(path string) error
type CT_Override
    func NewCT_Override() *CT_Override
    func (m *CT_Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *CT_Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *CT_Override) Validate() error
    func (m *CT_Override) ValidateWithPath(path string) error
type CT_Types
    func NewCT_Types() *CT_Types
    func (m *CT_Types) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *CT_Types) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *CT_Types) Validate() error
    func (m *CT_Types) ValidateWithPath(path string) error
type Default
    func NewDefault() *Default
    func (m *Default) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *Default) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *Default) Validate() error
    func (m *Default) ValidateWithPath(path string) error
type Override
    func NewOverride() *Override
    func (m *Override) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *Override) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *Override) Validate() error
    func (m *Override) ValidateWithPath(path string) error
type Types
    func NewTypes() *Types
    func (m *Types) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *Types) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *Types) Validate() error
    func (m *Types) ValidateWithPath(path string) error

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

type CT_Default struct {
    ExtensionAttr   string
    ContentTypeAttr string
}

func NewCT_Default

func NewCT_Default() *CT_Default

func (*CT_Default) MarshalXML

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

func (*CT_Default) UnmarshalXML

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

func (*CT_Default) Validate

func (m *CT_Default) Validate() error

Validate validates the CT_Default and its children

func (*CT_Default) ValidateWithPath

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

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

type CT_Override

type CT_Override struct {
    ContentTypeAttr string
    PartNameAttr    string
}

func NewCT_Override

func NewCT_Override() *CT_Override

func (*CT_Override) MarshalXML

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

func (*CT_Override) UnmarshalXML

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

func (*CT_Override) Validate

func (m *CT_Override) Validate() error

Validate validates the CT_Override and its children

func (*CT_Override) ValidateWithPath

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

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

type CT_Types

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

func NewCT_Types

func NewCT_Types() *CT_Types

func (*CT_Types) MarshalXML

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

func (*CT_Types) UnmarshalXML

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

func (*CT_Types) Validate

func (m *CT_Types) Validate() error

Validate validates the CT_Types and its children

func (*CT_Types) ValidateWithPath

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

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

type Default

type Default struct {
    CT_Default
}

func NewDefault

func NewDefault() *Default

func (*Default) MarshalXML

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

func (*Default) UnmarshalXML

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

func (*Default) Validate

func (m *Default) Validate() error

Validate validates the Default and its children

func (*Default) ValidateWithPath

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

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

type Override

type Override struct {
    CT_Override
}

func NewOverride

func NewOverride() *Override

func (*Override) MarshalXML

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

func (*Override) UnmarshalXML

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

func (*Override) Validate

func (m *Override) Validate() error

Validate validates the Override and its children

func (*Override) ValidateWithPath

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

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

type Types

type Types struct {
    CT_Types
}

func NewTypes

func NewTypes() *Types

func (*Types) MarshalXML

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

func (*Types) UnmarshalXML

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

func (*Types) Validate

func (m *Types) Validate() error

Validate validates the Types and its children

func (*Types) ValidateWithPath

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

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