public static enum PluginDataSourceFactory.FilterByType extends Enum<PluginDataSourceFactory.FilterByType> implements com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView>
Enum Constant and Description |
---|
CSS
content-type equals text/css
|
DOWNLOAD
type="download" is used to expose resources over HTTP
|
EMBEDDED
type="embedded" is used to expose resources over a medium that requires embedding of images, such as emails.
|
IMAGE
content-type starts with image/
|
RELATED
type="related" is used to mark resources for mail attachment
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(PluginDataSourceFactory.ResourceView resource) |
String |
toString() |
static PluginDataSourceFactory.FilterByType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluginDataSourceFactory.FilterByType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PluginDataSourceFactory.FilterByType EMBEDDED
public static final PluginDataSourceFactory.FilterByType DOWNLOAD
public static final PluginDataSourceFactory.FilterByType RELATED
public static final PluginDataSourceFactory.FilterByType IMAGE
public static final PluginDataSourceFactory.FilterByType CSS
public static PluginDataSourceFactory.FilterByType[] values()
for (PluginDataSourceFactory.FilterByType c : PluginDataSourceFactory.FilterByType.values()) System.out.println(c);
public static PluginDataSourceFactory.FilterByType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean evaluate(PluginDataSourceFactory.ResourceView resource)
evaluate
in interface com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView>
public String toString()
toString
in class Enum<PluginDataSourceFactory.FilterByType>
Copyright © 2003–2016 Atlassian. All rights reserved.