Class AbstractElementBuilderPlugin
java.lang.Object
org.opencastproject.mediapackage.elementbuilder.AbstractElementBuilderPlugin
- All Implemented Interfaces:
MediaPackageElementBuilderPlugin
- Direct Known Subclasses:
AbstractAttachmentBuilderPlugin,PublicationBuilderPlugin,TrackBuilderPlugin
public abstract class AbstractElementBuilderPlugin
extends Object
implements MediaPackageElementBuilderPlugin
This general implementation of a media package element builder supports specialized implementations by providing
tests on the filename an mime type of the file in question.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new abstract element builder plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()This is a convenience implementation for subclasses doing nothing.intReturns -1 by default.voidinit()This is a convenience implementation for subclasses doing nothing.voidsetPriority(int priority) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencastproject.mediapackage.elementbuilder.MediaPackageElementBuilderPlugin
accept, accept, accept, elementFromManifest, elementFromURI, newElement
-
Field Details
-
mimeTypes
The registered mime types -
xpath
The xpath facility -
priority
protected int priorityThe builder's priority
-
-
Constructor Details
-
AbstractElementBuilderPlugin
public AbstractElementBuilderPlugin()Creates a new abstract element builder plugin.
-
-
Method Details
-
init
public void init()This is a convenience implementation for subclasses doing nothing.- Specified by:
initin interfaceMediaPackageElementBuilderPlugin- See Also:
-
destroy
public void destroy()This is a convenience implementation for subclasses doing nothing.- Specified by:
destroyin interfaceMediaPackageElementBuilderPlugin- See Also:
-
getPriority
public int getPriority()Returns -1 by default. -
setPriority
public void setPriority(int priority)
-