Class PropertyGroup

java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyGroup

public class PropertyGroup extends Object
A subset of the property fields described by the corresponding 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.
  • Field Details

    • templateId

      @Nonnull protected final String templateId
    • fields

      @Nonnull protected final List<PropertyField> fields
  • Constructor Details

    • PropertyGroup

      public PropertyGroup(@Nonnull String templateId, @Nonnull List<PropertyField> fields)
      A subset of the property fields described by the corresponding 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.
      Parameters:
      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.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getTemplateId

      @Nonnull public String getTemplateId()
      A unique identifier for the associated template.
      Returns:
      value for this field, never null.
    • getFields

      @Nonnull public List<PropertyField> getFields()
      The actual properties associated with the template. There can be up to 32 property types per template.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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