| java.lang.Object ca.forklabs.media.jai.DescriptorUtil
DescriptorUtil | public class DescriptorUtil (Code) | | Class
DescriptorUtil offers methods to help in the validation process
of
OperationDescriptor objects.
author: Daniel Léonard version: $Revision: 1.3 $ |
Method Summary | |
public static boolean | areAllSourceRenderable(Iterable> sources) Determines if all the sources are renderable image.
Parameters: sources - the sources. | public static boolean | areAllSourceRendered(Iterable> sources) Determines if all the sources are rendered image.
Parameters: sources - the sources. | public static void | collateSources(ParameterBlock pb) Collates all the sources into a single collection. | public static boolean | isCollectionMode(String mode) Determines if the mode represents the collection mode.
Parameters: mode - the mode. | public static boolean | isRenderableCollectionMode(String mode) Determines if the mode represents the renderable collection mode.
Parameters: mode - the mode. | public static boolean | isRenderableMode(String mode) Determines if the mode represents the renderable mode.
Parameters: mode - the mode. | public static boolean | isRenderedMode(String mode) Determines if the mode represents the rendered mode.
Parameters: mode - the mode. | public static boolean | isSourceCollection(Object source) Determines if the source is a collection.
Parameters: source - the source. | public static boolean | isSourceRenderable(Object source) Determines if the source is a renderable image.
Parameters: source - the source. | public static boolean | isSourceRendered(Object source) Determines if the source is a rendered image.
Parameters: source - the source. |
DescriptorUtil | protected DescriptorUtil()(Code) | | Only allow subclasses.
|
areAllSourceRenderable | public static boolean areAllSourceRenderable(Iterable> sources)(Code) | | Determines if all the sources are renderable image.
Parameters: sources - the sources. true if all the sources are of typeRenderableImage, false otherwise. |
areAllSourceRendered | public static boolean areAllSourceRendered(Iterable> sources)(Code) | | Determines if all the sources are rendered image.
Parameters: sources - the sources. true if all the sources are of typeRenderedImage, false otherwise. |
collateSources | public static void collateSources(ParameterBlock pb)(Code) | | Collates all the sources into a single collection. All the original
sources are removed from the parameter block and the new
CollectionImage is put as source0. If a source is a
collection, all its elements are put in the order they are returned by the
iterator. If the source is an array, all the elements are put in
index-order.
Parameters: pb - the parameter block. |
isCollectionMode | public static boolean isCollectionMode(String mode)(Code) | | Determines if the mode represents the collection mode.
Parameters: mode - the mode. true if the mode is the same asCollectionRegistryMode.MODE_NAME, false otherwise. |
isRenderableCollectionMode | public static boolean isRenderableCollectionMode(String mode)(Code) | | Determines if the mode represents the renderable collection mode.
Parameters: mode - the mode. true if the mode is the same asRenderableCollectionRegistryMode.MODE_NAME, false otherwise. |
isRenderableMode | public static boolean isRenderableMode(String mode)(Code) | | Determines if the mode represents the renderable mode.
Parameters: mode - the mode. true if the mode is the same asRenderableRegistryMode.MODE_NAME, false otherwise. |
isRenderedMode | public static boolean isRenderedMode(String mode)(Code) | | Determines if the mode represents the rendered mode.
Parameters: mode - the mode. true if the mode is the same asRenderedRegistryMode.MODE_NAME, false otherwise. |
isSourceCollection | public static boolean isSourceCollection(Object source)(Code) | | Determines if the source is a collection.
Parameters: source - the source. true if the source is of type Collection, false otherwise. |
isSourceRenderable | public static boolean isSourceRenderable(Object source)(Code) | | Determines if the source is a renderable image.
Parameters: source - the source. true if the source is of type RenderableImage, false otherwise. |
isSourceRendered | public static boolean isSourceRendered(Object source)(Code) | | Determines if the source is a rendered image.
Parameters: source - the source. true if the source is of type RenderedImage, false otherwise. |
|
|