public static enum CAContentCore.ServiceType extends java.lang.Enum<CAContentCore.ServiceType>
Enum Constant and Description |
---|
FACEBOOK_JAZZ
content has been retrieved from Facebook using the Facebook Jazz Service
service id: 3
|
FACEBOOK_PHOTO
content has been retrieved from Facebook, service id: 4
|
FSIO
Deprecated.
|
PICASA_STORAGE_SERVICE
content has been retrieved from Picasa, service id: 1
|
TWITTER_JAZZ
content has been retrieved from Twitter using the Twitter Jazz Service
service id: 5
|
TWITTER_PHOTO
content has been retrieved from Twitter, service id: 6
|
URL_STORAGE
content has been uploaded directly to the service using URLs
service id: 7
|
Modifier and Type | Method and Description |
---|---|
static java.util.EnumSet<CAContentCore.ServiceType> |
fromIdArray(int[] serviceIds) |
static CAContentCore.ServiceType |
fromServiceId(java.lang.Integer id) |
int |
getServiceId() |
static boolean |
isEmpty(java.util.EnumSet<CAContentCore.ServiceType> types) |
static int[] |
toIdArray(java.util.EnumSet<CAContentCore.ServiceType> types) |
static java.lang.String |
toServiceIdString(java.util.EnumSet<CAContentCore.ServiceType> set) |
static CAContentCore.ServiceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CAContentCore.ServiceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CAContentCore.ServiceType PICASA_STORAGE_SERVICE
@Deprecated public static final CAContentCore.ServiceType FSIO
public static final CAContentCore.ServiceType FACEBOOK_JAZZ
FBJContentCore
public static final CAContentCore.ServiceType FACEBOOK_PHOTO
public static final CAContentCore.ServiceType TWITTER_JAZZ
TJContentCore
public static final CAContentCore.ServiceType TWITTER_PHOTO
public static final CAContentCore.ServiceType URL_STORAGE
public static CAContentCore.ServiceType[] values()
for (CAContentCore.ServiceType c : CAContentCore.ServiceType.values()) System.out.println(c);
public static CAContentCore.ServiceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CAContentCore.ServiceType fromServiceId(java.lang.Integer id) throws java.lang.IllegalArgumentException
id
- java.lang.IllegalArgumentException
- on bad inputpublic static boolean isEmpty(java.util.EnumSet<CAContentCore.ServiceType> types)
types
- public int getServiceId()
public static java.util.EnumSet<CAContentCore.ServiceType> fromIdArray(int[] serviceIds) throws java.lang.IllegalArgumentException
serviceIds
- java.lang.IllegalArgumentException
- on bad inputpublic static int[] toIdArray(java.util.EnumSet<CAContentCore.ServiceType> types)
types
- public static java.lang.String toServiceIdString(java.util.EnumSet<CAContentCore.ServiceType> set)
set
- Copyright © 2015 Tampere University of Technology, Pori Department.