public static class FileDocument.MediaTypeSelector extends java.lang.Object implements DataSelector
FileDocument.isImage()
,
FileDocument.isAudio()
,
FileDocument.isVideo()
,
FileDocument.isFlash()
REVISION
Constructor and Description |
---|
MediaTypeSelector(java.lang.String mediaType)
Build a new FileDocument MediaTypeSelector using the given media type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSelected(Data data)
Evaluates if a data must be selected or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
test
public MediaTypeSelector(java.lang.String mediaType)
FileDocument.isImage()
FileDocument.isAudio()
FileDocument.isVideo()
FileDocument.isFlash()
mediaType
- the media type to selectpublic boolean isSelected(Data data)
DataSelector
isSelected
in interface DataSelector
data
- the data to evaluate.Copyright © 2001-2017 Jalios SA. All Rights Reserved.