|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.bastard.mtracker.MediaFactory
public class MediaFactory
Factory class for MediaItems.
| Field Summary | |
|---|---|
static Dvd.ContentType |
defaultDvdContentType
|
protected static long |
mediaCatalogCounter
|
| Constructor Summary | |
|---|---|
MediaFactory()
|
|
| Method Summary | |
|---|---|
static Dvd |
createDvd()
Factory method to create a default DVD. |
static Dvd |
createDvd(Dvd.ContentType contentType)
Factory method to create a DVD with default name and specific content type. |
static Dvd |
createDvd(java.lang.String title)
Factory method to create a DVD with name title and
default content type. |
static Dvd |
createDvd(java.lang.String title,
Dvd.ContentType contentType)
Factory method to create a DVD with specific name and content type. |
static MediaCatalog |
createMediaCatalog()
Factory method to create a default media catalog. |
static MediaCatalog |
createMediaCatalog(java.lang.String catalogName)
Factory method to create a media catalog with name catalogName. |
static MediaId |
createMediaId()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static long mediaCatalogCounter
public static final Dvd.ContentType defaultDvdContentType
| Constructor Detail |
|---|
public MediaFactory()
| Method Detail |
|---|
public static MediaId createMediaId()
public static MediaCatalog createMediaCatalog()
public static MediaCatalog createMediaCatalog(java.lang.String catalogName)
catalogName.
- Parameters:
catalogName - The name you want to give to the catalog
- Returns:
- MediaCatalog implementation with name
catalogName
public static Dvd createDvd()
Dvd.ContentType.MIXED
public static Dvd createDvd(java.lang.String title)
title and
default content type.
Dvd.ContentType.MIXED
title - The name of this DVD
title and default content typepublic static Dvd createDvd(Dvd.ContentType contentType)
contentType - The type of content this DVD contains
public static Dvd createDvd(java.lang.String title,
Dvd.ContentType contentType)
title - The name of this DVDcontentType - The type of content this DVD contains
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||