using System;
namespace VersOne.Epub.Schema
{
///
/// A generic metadata item of the EPUB book.
///
/// See ,
/// ,
/// and for more information.
///
///
public class EpubMetadataMeta
{
///
/// Initializes a new instance of the class.
///
/// The name of the EPUB 2 generic metadata item or null for EPUB 3 generic metadata item.
/// The content (i.e. value) of the EPUB 2 generic metadata item or the metadata expression of the EPUB 3 generic metadata item.
/// The unique ID of this EPUB 3 generic metadata item or null if the generic metadata item doesn't have an ID.
///
/// A relative IRI that identifies the resource augmented by the EPUB 3 generic metadata item
/// or null if the generic metadata item doesn't specify any augmentation.
///
///
/// The property data type value that defines the statement being made in the expression (see ) of the EPUB 3 generic metadata item
/// or null for EPUB 2 generic metadata item.
///
///
/// The system or scheme that the expression (see ) of the EPUB 3 generic metadata item is drawn from
/// or null if the generic metadata item doesn't specify a scheme for the expression.
///
/// The text direction of this EPUB 3 generic metadata item or null if the generic metadata item doesn't specify a text direction.
/// The language of this EPUB 3 generic metadata item or null if the generic metadata item doesn't specify the language.
/// The parameter is null.
public EpubMetadataMeta(string? name, string content, string? id = null, string? refines = null, string? property = null, string? scheme = null,
EpubTextDirection? textDirection = null, string? language = null)
{
Name = name;
Content = content ?? throw new ArgumentNullException(nameof(content));
Id = id;
Refines = refines;
Property = property;
Scheme = scheme;
TextDirection = textDirection;
Language = language;
}
///
/// Gets the name of the EPUB 2 generic metadata item or null for EPUB 3 generic metadata item.
/// See for more information.
///
public string? Name { get; }
///
/// Gets the content (i.e. value) of the EPUB 2 generic metadata item or the metadata expression of the EPUB 3 generic metadata item.
///
/// See
/// and for more information.
///
///
public string Content { get; }
///
/// Gets the unique ID of this EPUB 3 generic metadata item or null if the generic metadata item doesn't have an ID.
/// See for more information.
///
public string? Id { get; }
///
///
/// Gets a relative IRI that identifies the resource augmented by the EPUB 3 generic metadata item
/// or null if the generic metadata item doesn't specify any augmentation.
///
/// See for more information.
///
///
public string? Refines { get; }
///
///
/// Gets the property data type value that defines the statement being made in the expression (see ) of the EPUB 3 generic metadata item
/// or null for EPUB 2 generic metadata item.
///
///
/// See
/// and for more information.
///
///
public string? Property { get; }
///
///
/// Gets the system or scheme that the expression (see ) of the EPUB 3 generic metadata item is drawn from
/// or null if the generic metadata item doesn't specify a scheme for the expression.
///
///
/// See for more information.
///
///
public string? Scheme { get; }
///
/// Gets the text direction of this EPUB 3 generic metadata item or null if the generic metadata item doesn't specify a text direction.
/// See for more information.
///
public EpubTextDirection? TextDirection { get; }
///
/// Gets the language of this EPUB 3 generic metadata item or null if the generic metadata item doesn't specify the language.
/// See for more information.
///
public string? Language { get; }
}
}