public enum SFV3ElementType extends java.lang.Enum<SFV3ElementType>
| Enum Constant and Description |
|---|
File |
Folder |
Item |
ItemInfo |
Link |
Note |
StorageCenter |
SymbolicLink |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getV3Class() |
static boolean |
isFileType(SFODataObject object) |
static boolean |
isFolderType(SFODataObject object) |
static boolean |
isLinkType(SFODataObject object) |
static boolean |
isNoteType(SFODataObject object) |
static boolean |
isSymbolicLinkType(SFODataObject object) |
static void |
registerSubClass(SFV3ElementType elementType,
java.lang.Class<?> newClass)
We are allowing consumers of the SDK to register their own deriived classes from the base models
we have inside the SDK.
|
static void |
registerSubClass(java.lang.String originalClassName,
java.lang.Class<?> newClass) |
java.lang.String |
toString() |
java.lang.String |
type()
returns the ShareFile type string as required by the odata.type
|
static SFV3ElementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SFV3ElementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SFV3ElementType File
public static final SFV3ElementType Folder
public static final SFV3ElementType Item
public static final SFV3ElementType ItemInfo
public static final SFV3ElementType Link
public static final SFV3ElementType Note
public static final SFV3ElementType StorageCenter
public static final SFV3ElementType SymbolicLink
public static SFV3ElementType[] values()
for (SFV3ElementType c : SFV3ElementType.values()) System.out.println(c);
public static SFV3ElementType 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 java.lang.String toString()
toString in class java.lang.Enum<SFV3ElementType>public java.lang.String type()
public java.lang.Class<?> getV3Class()
public static void registerSubClass(SFV3ElementType elementType, java.lang.Class<?> newClass) throws java.lang.InstantiationException, java.lang.IllegalAccessException, SFInvalidTypeException
SFFileEx extends SFFile
{
boolean mIsSync
}
java.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionSFInvalidTypeExceptionpublic static void registerSubClass(java.lang.String originalClassName,
java.lang.Class<?> newClass)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
SFInvalidTypeException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionSFInvalidTypeExceptionpublic static boolean isFolderType(SFODataObject object)
public static boolean isFileType(SFODataObject object)
public static boolean isNoteType(SFODataObject object)
public static boolean isLinkType(SFODataObject object)
public static boolean isSymbolicLinkType(SFODataObject object)