public class DriveObjectFactory extends Object
DriveObject,
DriveElement| Constructor and Description |
|---|
DriveObjectFactory(DriveService driveService)
Creates a new drive object factory using the specified
DriveService |
| Modifier and Type | Method and Description |
|---|---|
DriveElementArray |
createEmptyArray() |
DriveObject |
createEmptyObject()
Instantiates a new empty
DriveObject |
DriveElement |
createPrimitive(Object value)
Creates a new primitive element
|
DriveService |
getDriveService() |
public DriveObjectFactory(DriveService driveService)
DriveServicedriveService - the service using the factorypublic DriveObject createEmptyObject()
DriveObjectDriveObjectSimpleDriveObjectpublic DriveElement createPrimitive(Object value) throws NotAPrimitiveTypeException
value - value to be containedNotAPrimitiveTypeException - when value is not a primitivepublic DriveElementArray createEmptyArray()
public DriveService getDriveService()
Copyright © 2020. All rights reserved.