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

Inheritance: ResourceReference
Exibir arquivo Open project: lanfengqi/EpubLib-Sharp

Public Methods

Method Description
TitledResourceReference ( Resource resource ) : System
TitledResourceReference ( Resource resource, string title ) : System
TitledResourceReference ( Resource resource, string title, string fragmentId ) : System
getCompleteHref ( ) : string

If the fragmentId is blank it returns the resource href, otherwise it returns the resource href + '#' + the fragmentId.

getFragmentId ( ) : string
getTitle ( ) : string
setFragmentId ( string fragmentId ) : void
setResource ( Resource resource ) : void

Sets the resource to the given resource and sets the fragmentId to null.

setResource ( Resource resource, string fragmentId ) : void

Sets the resource to the given resource and sets the fragmentId to null.

setTitle ( string title ) : void

Method Details

TitledResourceReference() public method

public TitledResourceReference ( Resource resource ) : System
resource Resource
return System

TitledResourceReference() public method

public TitledResourceReference ( Resource resource, string title ) : System
resource Resource
title string
return System

TitledResourceReference() public method

public TitledResourceReference ( Resource resource, string title, string fragmentId ) : System
resource Resource
title string
fragmentId string
return System

getCompleteHref() public method

If the fragmentId is blank it returns the resource href, otherwise it returns the resource href + '#' + the fragmentId.
public getCompleteHref ( ) : string
return string

getFragmentId() public method

public getFragmentId ( ) : string
return string

getTitle() public method

public getTitle ( ) : string
return string

setFragmentId() public method

public setFragmentId ( string fragmentId ) : void
fragmentId string
return void

setResource() public method

Sets the resource to the given resource and sets the fragmentId to null.
public setResource ( Resource resource ) : void
resource Resource
return void

setResource() public method

Sets the resource to the given resource and sets the fragmentId to null.
public setResource ( Resource resource, string fragmentId ) : void
resource Resource
fragmentId string
return void

setTitle() public method

public setTitle ( string title ) : void
title string
return void