Class DataField


  • public final class DataField
    extends Object
    The DataField model.
    • Constructor Detail

      • DataField

        public DataField()
    • Method Detail

      • getCategoryLabel

        public String getCategoryLabel()
        Get the categoryLabel property: The label of the category that this field will be put into. If not provided, the field will be put into the default category. If no category exists with the specified label, a new category will be created.
        Returns:
        the categoryLabel value.
      • setCategoryLabel

        public DataField setCategoryLabel​(String categoryLabel)
        Set the categoryLabel property: The label of the category that this field will be put into. If not provided, the field will be put into the default category. If no category exists with the specified label, a new category will be created.
        Parameters:
        categoryLabel - the categoryLabel value to set.
        Returns:
        the DataField object itself.
      • getField

        public DataFieldField getField()
        Get the field property: The field to be created.
        Returns:
        the field value.
      • setField

        public DataField setField​(DataFieldField field)
        Set the field property: The field to be created.
        Parameters:
        field - the field value to set.
        Returns:
        the DataField object itself.
      • getDataPoint

        public DataFieldDataPoint getDataPoint()
        Get the dataPoint property: The data point to be created for this field. If a data point with the same slug and collection already exists, it will be reused.
        Returns:
        the dataPoint value.
      • setDataPoint

        public DataField setDataPoint​(DataFieldDataPoint dataPoint)
        Set the dataPoint property: The data point to be created for this field. If a data point with the same slug and collection already exists, it will be reused.
        Parameters:
        dataPoint - the dataPoint value to set.
        Returns:
        the DataField object itself.