xmprights

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 13

Documentation

Overview

Package xmprights implements the XMP Rights management namespace as defined by XMP Specification Part 1.

Index

Constants

This section is empty.

Variables

View Source
var (
	NsXmpRights = xmp.NewNamespace("xmpRights", "http://ns.adobe.com/xap/1.0/rights/", NewModel)
)

Functions

func NewModel

func NewModel(name string) xmp.Model

Types

type XmpRights

type XmpRights struct {
	Certificate  string          `xmp:"xmpRights:Certificate"`
	Marked       xmp.Bool        `xmp:"xmpRights:Marked"`
	Owner        xmp.StringArray `xmp:"xmpRights:Owner"`
	UsageTerms   xmp.AltString   `xmp:"xmpRights:UsageTerms"`
	WebStatement string          `xmp:"xmpRights:WebStatement"`
}

func FindModel

func FindModel(d *xmp.Document) *XmpRights

func MakeModel

func MakeModel(d *xmp.Document) (*XmpRights, error)

func (XmpRights) Can

func (x XmpRights) Can(nsName string) bool

func (*XmpRights) CanTag

func (x *XmpRights) CanTag(tag string) bool

func (*XmpRights) GetTag

func (x *XmpRights) GetTag(tag string) (string, error)

func (XmpRights) Namespaces

func (x XmpRights) Namespaces() xmp.NamespaceList

func (*XmpRights) SetTag

func (x *XmpRights) SetTag(tag, value string) error

func (*XmpRights) SyncFromXMP

func (x *XmpRights) SyncFromXMP(d *xmp.Document) error

func (*XmpRights) SyncModel

func (x *XmpRights) SyncModel(d *xmp.Document) error

func (XmpRights) SyncToXMP

func (x XmpRights) SyncToXMP(d *xmp.Document) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL