import BaseObject from "./baseObject"; import { ByteVector } from "../../byteVector"; import { ObjectType } from "../constants"; import { File } from "../../file"; /** * This class extends {@link BaseObject} to provide a representation of an ASF content description * object. The content description object is optional and provides standard bibliographic * information such as title, author, copyright, description, rating information. */ export default class ContentDescriptionObject extends BaseObject { private _author; private _copyright; private _description; private _rating; private _title; private constructor(); /** * Constructs a blank content description object. */ static fromEmpty(): ContentDescriptionObject; /** * Constructs a new instance by reading from a file. * @param file File to read the content description object from * @param position Offset into the file where the object begins */ static fromFile(file: File, position: number): ContentDescriptionObject; /** * Gets the author of the media described by the current instance. * @returns Author of the media or `undefined` if it is not set. */ get author(): string; /** * Sets the author of the media described by the current instance. */ set author(value: string); /** * Gets the copyright information of the media described by the current instance. * @returns Copyright information of the media or `undefined` if it is not set. */ get copyright(): string; /** * Sets the copyright information of the media described by the current instance. */ set copyright(value: string); /** * Gets the description of the media described by the current instance. * @returns Description of the media or `undefined` if it is not set. */ get description(): string; /** * Sets the description of the media described by the current instance. */ set description(value: string); /** * Gets whether the current instance is empty. * @returns `true` if all the values are cleared. Otherwise, `false` is returned. */ get isEmpty(): boolean; /** @inheritDoc */ get objectType(): ObjectType; /** * Gets the rating of the media described by the current instance. * @returns Rating of the media or `undefined` if it is not set. */ get rating(): string; /** * Sets the rating of the media described by the current instance. */ set rating(value: string); /** * Gets the title of the media described by the current instance. * @returns Title of the media or `undefined` if it is not set. */ get title(): string; /** * Sets the title of the media described by the current instance. */ set title(value: string); /** * Renders the current instance as a raw ASF object. */ render(): ByteVector; }