Class PropertyFieldTemplate
java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyFieldTemplate
Defines how a single property field may be structured. Used exclusively by
PropertyGroupTemplate.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final PropertyType -
Constructor Summary
ConstructorsConstructorDescriptionPropertyFieldTemplate(String name, String description, PropertyType type) Defines how a single property field may be structured. -
Method Summary
-
Field Details
-
name
-
description
-
type
-
-
Constructor Details
-
PropertyFieldTemplate
public PropertyFieldTemplate(@Nonnull String name, @Nonnull String description, @Nonnull PropertyType type) Defines how a single property field may be structured. Used exclusively byPropertyGroupTemplate.- Parameters:
name- Key of the property field being described. Property field keys can be up to 256 bytes. Must not benull.description- Description of the property field. Property field descriptions can be up to 1024 bytes. Must not benull.type- Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getName
Key of the property field being described. Property field keys can be up to 256 bytes.- Returns:
- value for this field, never
null.
-
getDescription
Description of the property field. Property field descriptions can be up to 1024 bytes.- Returns:
- value for this field, never
null.
-
getType
- Returns:
- value for this field, never
null.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-