Package com.cloudinary.metadata
Class MetadataDataSource
- java.lang.Object
-
- org.cloudinary.json.JSONObject
-
- com.cloudinary.metadata.MetadataDataSource
-
- All Implemented Interfaces:
java.io.Serializable
public class MetadataDataSource extends JSONObject
Represent a data source for a given field. This is used in both 'Set' and 'Enum' field types. The datasource holds a list of the valid values to be used with the corresponding metadata field.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetadataDataSource.Entry
Represents a single entry in a datasource definition for a field.
-
Field Summary
-
Fields inherited from class org.cloudinary.json.JSONObject
NULL
-
-
Constructor Summary
Constructors Constructor Description MetadataDataSource(java.util.List<MetadataDataSource.Entry> entries)
Creates a new instance of data source with the given list of entries.
-
Method Summary
-
Methods inherited from class org.cloudinary.json.JSONObject
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, similar, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, write
-
-
-
-
Constructor Detail
-
MetadataDataSource
public MetadataDataSource(java.util.List<MetadataDataSource.Entry> entries)
Creates a new instance of data source with the given list of entries.- Parameters:
entries
-
-
-