C# Class nl.siegmann.epublib.domain.Identifier

Show file Open project: lanfengqi/EpubLib-Sharp Class Usage Examples

Public Methods

Method Description
Identifier ( ) : System

Creates an Identifier with as value a random UUID and scheme "UUID"

Identifier ( string scheme, string value ) : System
equals ( Object otherIdentifier ) : bool
getBookIdIdentifier ( List identifiers ) : Identifier

The first identifier for which the bookId is true is made the bookId identifier. If no identifier has bookId == true then the first bookId identifier is written as the primary.

getScheme ( ) : string
getValue ( ) : string
hashCode ( ) : int
isBookId ( ) : bool

This bookId property allows the book creator to add multiple ids and tell the epubwriter which one to write out as the bookId. The Dublin Core metadata spec allows multiple identifiers for a Book. The epub spec requires exactly one identifier to be marked as the book id.

setBookId ( bool bookId ) : void
setScheme ( string scheme ) : void
setValue ( string value ) : void
toString ( ) : string

Method Details

Identifier() public method

Creates an Identifier with as value a random UUID and scheme "UUID"
public Identifier ( ) : System
return System

Identifier() public method

public Identifier ( string scheme, string value ) : System
scheme string
value string
return System

equals() public method

public equals ( Object otherIdentifier ) : bool
otherIdentifier Object
return bool

getBookIdIdentifier() public static method

The first identifier for which the bookId is true is made the bookId identifier. If no identifier has bookId == true then the first bookId identifier is written as the primary.
public static getBookIdIdentifier ( List identifiers ) : Identifier
identifiers List
return Identifier

getScheme() public method

public getScheme ( ) : string
return string

getValue() public method

public getValue ( ) : string
return string

hashCode() public method

public hashCode ( ) : int
return int

isBookId() public method

This bookId property allows the book creator to add multiple ids and tell the epubwriter which one to write out as the bookId. The Dublin Core metadata spec allows multiple identifiers for a Book. The epub spec requires exactly one identifier to be marked as the book id.
public isBookId ( ) : bool
return bool

setBookId() public method

public setBookId ( bool bookId ) : void
bookId bool
return void

setScheme() public method

public setScheme ( string scheme ) : void
scheme string
return void

setValue() public method

public setValue ( string value ) : void
value string
return void

toString() public method

public toString ( ) : string
return string