Commit 3f78d296 authored by nshah's avatar nshah

OCVET-247, v18 of Content Transformation Stubs, 14/Mar/13, 3:45pm

parent fd594de5
......@@ -17,11 +17,11 @@ public interface Transformation
public ContentFormat getInputContentFormat();
/**
* Returns all of the possible output content formats the input format can
* Returns the output content format the input format can
* be transformed into. For content formats, that include video the method
* SHALL return <code>OutputVideoContentFormat</code> instances.
* SHALL return <code>OutputVideoContentFormat</code> instance.
*
* @return The output content formats.
* @return The output content format.
*/
public ContentFormat [] getOutputContentFormats();
public ContentFormat getOutputContentFormat();
}
package org.ocap.hn.transformation;
import java.util.EventListener;
import org.ocap.hn.content.ContentFormat;
import org.ocap.hn.content.ContentItem;
/**
* Listener interface for classes interested in getting notifications from the
* <code>TransformationManager</code>. Only one of the notify callbacks will be
* received for each (<code>ContentItem</code>, <code>ContentFormat</code>)
* received for each (<code>ContentItem</code>, <code>Transformation</code>)
* tuple.
*
*/
......@@ -31,23 +30,23 @@ public interface TransformationListener extends EventListener {
/**
* Callback indicating the <code>ContentResource</code> for the
* contentFormat has been created.
* transformation has been created.
*
* @param contentItem affected contentItem
* @param contentFormat requested transformation on contentItem
* @param transformation requested transformation on contentItem
*/
void notifyTransformationReady(ContentItem contentItem,
ContentFormat contentFormat);
Transformation transformation);
/**
* Callback indicating the content binary representation for the
* contentFormat could not be created.
* transformation could not be created.
*
* @param contentItem affected contentItem
* @param contentFormat requested transformation on contentItem
* @param transformation requested transformation on contentItem
* @param reasonCode reason for the failure
*/
void notifyTransformationFailed(ContentItem contentItem,
ContentFormat contentFormat, int reasonCode);
Transformation transformation, int reasonCode);
}
......@@ -135,4 +135,4 @@ public abstract class TransformationManager
*/
public abstract void setTransformations(ContentItem [] items,
Transformation [] transformations);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment