Method | Description | |
---|---|---|
AddAll ( List |
Sets the collection of Resources to the given collection of resources
|
|
add ( |
Adds a resource to the resources. Fixes the resources id and href if necessary.
|
|
containsByHref ( string href ) : bool |
Whether there exists a resource with the given href
|
|
containsId ( string id ) : bool |
Whether the map of resources already contains a resource with the given id.
|
|
findFirstResourceByMediaType ( Resource>.Dictionary |
Gets the first resource (random order) with the give mediatype. Useful for looking up the table of contents as it's supposed to be the only resource with NCX mediatype.
|
|
findFirstResourceByMediaType ( |
Gets the first resource (random order) with the give mediatype. Useful for looking up the table of contents as it's supposed to be the only resource with NCX mediatype.
|
|
fixResourceId ( |
Checks the id of the given resource and changes to a unique identifier if it isn't one already.
|
|
getAll ( ) : IEnumerable |
||
getAllHrefs ( ) : IEnumerable |
||
getByHref ( string href ) : |
Gets the resource with the given href. If the given href contains a fragmentId then that fragment id will be ignored.
|
|
getById ( string id ) : |
Gets the resource with the given id.
|
|
getByIdOrHref ( string idOrHref ) : |
First tries to find a resource with as id the given idOrHref, if that fails it tries to find one with the idOrHref as href.
|
|
getResourceMap ( ) : Resource>.Dictionary |
The resources that make up this book. Resources can be xhtml pages, images, xml documents, etc.
|
|
getResourcesByMediaType ( |
All resources that have the given MediaType.
|
|
getResourcesByMediaTypes ( |
All Resources that match any of the given list of MediaTypes
|
|
isEmpty ( ) : bool | ||
remove ( string href ) : |
Remove the resource with the given href.
|
|
set ( List |
Sets the collection of Resources to the given collection of resources
|
|
size ( ) : int |
The number of resources
|
Method | Description | |
---|---|---|
createHref ( |
||
createUniqueResourceId ( |
Creates a new resource id that is guarenteed to be unique for this set of Resources
|
|
fixResourceHref ( |
||
getResourceItemPrefix ( |
||
makeValidId ( string resourceId, |
Check if the id is a valid identifier. if not: prepend with valid identifier
|
public AddAll ( List |
||
resources | List |
A map with as keys the resources href and as values the /// Resources |
return | void |
public static findFirstResourceByMediaType ( Resource>.Dictionary |
||
resources | Resource>.Dictionary | |
mediaType | ||
return |
public findFirstResourceByMediaType ( |
||
mediaType | ||
return |
public fixResourceId ( |
||
resource | resource | |
return | void |
public getByIdOrHref ( string idOrHref ) : |
||
idOrHref | string | |
return |
public getResourceMap ( ) : Resource>.Dictionary |
||
return | Resource>.Dictionary |
public getResourcesByMediaType ( |
||
mediaType | ||
return | List |
public getResourcesByMediaTypes ( |
||
mediaTypes | ||
return | List |