public class PropertyGroup
extends java.lang.Object
PropertyGroupTemplate. Properties are always added to a Dropbox file as a
PropertyGroup. The possible key names and value types in this group
are defined by the corresponding PropertyGroupTemplate.| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyGroup.Serializer
For internal use only.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<PropertyField> |
fields |
protected java.lang.String |
templateId |
| Constructor and Description |
|---|
PropertyGroup(java.lang.String templateId,
java.util.List<PropertyField> fields)
A subset of the property fields described by the corresponding
PropertyGroupTemplate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<PropertyField> |
getFields()
The actual properties associated with the template.
|
java.lang.String |
getTemplateId()
A unique identifier for the associated template.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String templateId
protected final java.util.List<PropertyField> fields
public PropertyGroup(java.lang.String templateId,
java.util.List<PropertyField> fields)
PropertyGroupTemplate. Properties are always added to a Dropbox file as
a PropertyGroup. The possible key names and value types in this
group are defined by the corresponding PropertyGroupTemplate.templateId - A unique identifier for the associated template. Must
have length of at least 1, match pattern "(/|ptid:).*", and
not be null.fields - The actual properties associated with the template. There
can be up to 32 property types per template. Must not contain a
null item and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public java.lang.String getTemplateId()
null.public java.util.List<PropertyField> getFields()
null.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringMultiline()
The returned String may contain newlines.