This mixin provides additional properties and methods which you can invoke on an instance of UploadStrategy.
| Name | Description | 
|---|---|
| Methods | |
| from | Convert value to UploadStrategy | 
| is | Checks equality with string values | 
This mixin provides additional properties and methods for the native Java class 
UploadStrategy, whose native public methods are available
for scripting, too. If a native method name is hidden by a property name in the mixin,
then prefix the native name with $.
from:UploadStrategy
Checks whether a value can be converted into an  UploadStrategy,
converts and normalizes it, and returns the converted value. Throws an error, if value can't
be converted.
a UploadStrategya string| Name | Type | Description | 
|---|---|---|
| value | string | the value to normalize | 
var UploadStrategy = org.openstreetmap.josm.gui.io.UploadStrategy;
var strategy = UploadStrategy.from("individualobjects");is:boolean
Replies true, if UploadStrategy, is equal to a specific enumeration value or to a string value.
Accepts one of the following values:a UploadStrategya string| Name | Type | Description | 
|---|---|---|
| value | string | the value to check | 
var UploadStrategy = org.openstreetmap.josm.gui.io.UploadStrategy;
var strategy = UploadStrategy.INDIVIDUAL_OBJECTS_STRATEGY;
strategy.is("indiv");             // true
strategy.is("individualobjects"); // true
strategy.is("chunked");           // false