Class PropertyFieldTemplate
- java.lang.Object
- 
- com.dropbox.core.v2.fileproperties.PropertyFieldTemplate
 
- 
 public class PropertyFieldTemplate extends java.lang.ObjectDefines how a single property field may be structured. Used exclusively byPropertyGroupTemplate.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected PropertyTypetype
 - 
Constructor SummaryConstructors Constructor Description PropertyFieldTemplate(java.lang.String name, java.lang.String description, PropertyType type)Defines how a single property field may be structured.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDescription()Description of the property field.java.lang.StringgetName()Key of the property field being described.PropertyTypegetType()Data type of the value of this property field.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
nameprotected final java.lang.String name 
 - 
descriptionprotected final java.lang.String description 
 - 
typeprotected final PropertyType type 
 
- 
 - 
Constructor Detail- 
PropertyFieldTemplatepublic PropertyFieldTemplate(java.lang.String name, java.lang.String description, 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 be- null.
- description- Description of the property field. Property field descriptions can be up to 1024 bytes. Must not be- null.
- type- Data type of the value of this property field. This type will be enforced upon property creation and modifications. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Key of the property field being described. Property field keys can be up to 256 bytes.- Returns:
- value for this field, never null.
 
 - 
getDescriptionpublic java.lang.String getDescription() Description of the property field. Property field descriptions can be up to 1024 bytes.- Returns:
- value for this field, never null.
 
 - 
getTypepublic PropertyType getType() Data type of the value of this property field. This type will be enforced upon property creation and modifications.- Returns:
- value for this field, never null.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-