|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.extensions.ExtensionInfo<T>
T
- The type of the extensionpublic abstract class ExtensionInfo<T extends IExtension>
Used to describe extensions to the media manager
Constructor Summary | |
---|---|
ExtensionInfo(ExtensionType type)
The constructor |
|
ExtensionInfo(java.lang.String id,
ExtensionType type,
ParameterType[] parameterInfos)
The constructor |
Method Summary | |
---|---|
protected abstract T |
createExtension()
Used to create the extension |
T |
getAnyExtension(MediaDirConfig config)
Used to get any extension from the media directory configuration. |
T |
getExtension(MediaDirConfig config,
int number)
Used to get the extension class type |
java.lang.String |
getId()
Used to get the id of the extension |
ParameterType[] |
getParameterInfos()
Used to get information on the parameters |
ExtensionType |
getType()
Used to get the type of the extension |
protected void |
setId(java.lang.String id)
Used to set the id of the extension |
protected void |
setParameterInfos(ParameterType[] parameterInfos)
Used to set the parameter information |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionInfo(ExtensionType type)
type
- The type of the extensionpublic ExtensionInfo(java.lang.String id, ExtensionType type, ParameterType[] parameterInfos)
id
- The id of the extensionparameterInfos
- The parameter infotype
- The type of the extensionMethod Detail |
---|
public T getExtension(MediaDirConfig config, int number) throws ExtensionException
config
- The media directory configurationnumber
- The index number of the extension
ExtensionException
- Thrown if their is a problem creating the extensionprotected abstract T createExtension() throws ExtensionException
ExtensionException
- Thrown if their is a problempublic T getAnyExtension(MediaDirConfig config) throws ExtensionException
config
- The media directory configuration
ExtensionException
- Thrown if their is a problem getting the extensionpublic ParameterType[] getParameterInfos()
protected void setParameterInfos(ParameterType[] parameterInfos)
parameterInfos
- The parameter informationpublic java.lang.String getId()
protected void setId(java.lang.String id)
id
- The id of the extensionpublic ExtensionType getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |