xmpbj

package
v0.0.0-...-3cbae95 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package xmpbj implements the XMP Basic Job Ticket namespace as defined by XMP Specification Part 2.

Package xmpbj implements the XMP Basic Job Ticket namespace as defined by XMP Specification Part 2.

Index

Constants

This section is empty.

Variables

View Source
var (
	NsXmpBJ = xmp.NewNamespace("xmpBJ", "http://ns.adobe.com/xap/1.0/bj/", NewModel)
)

Functions

func NewModel

func NewModel(name string) xmp.Model

Types

type Job

type Job struct {
	ID   string  `xmp:"stJob:id,attr"`
	Name string  `xmp:"stJob:name,attr"`
	Url  xmp.Uri `xmp:"stJob:url,attr"`
}

Part 2: 1.2.5.1 Job

func (Job) IsZero

func (x Job) IsZero() bool

func (Job) MarshalXMP

func (x Job) MarshalXMP(e *xmp.Encoder, node *xmp.Node, m xmp.Model) error

type JobArray

type JobArray []*Job

func (JobArray) MarshalXMP

func (x JobArray) MarshalXMP(e *xmp.Encoder, node *xmp.Node, m xmp.Model) error

func (JobArray) Typ

func (x JobArray) Typ() xmp.ArrayType

func (*JobArray) UnmarshalXMP

func (x *JobArray) UnmarshalXMP(d *xmp.Decoder, node *xmp.Node, m xmp.Model) error

type JobTicket

type JobTicket struct {
	JobRef JobArray `xmp:"xmpBJ:JobRef"`
}

func FindModel

func FindModel(d *xmp.Document) *JobTicket

func MakeModel

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

func (JobTicket) Can

func (x JobTicket) Can(nsName string) bool

func (*JobTicket) CanTag

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

func (*JobTicket) GetTag

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

func (JobTicket) Namespaces

func (x JobTicket) Namespaces() xmp.NamespaceList

func (*JobTicket) SetTag

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

func (*JobTicket) SyncFromXMP

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

func (*JobTicket) SyncModel

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

func (JobTicket) SyncToXMP

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

Jump to

Keyboard shortcuts

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