Class FeaturesResponse

java.lang.Object
org.tailormap.api.viewer.model.FeaturesResponse
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", comments="Generator version: 7.10.0") public class FeaturesResponse extends Object implements Serializable
A -possibly empty- list of features with requested attributes and presentation metadata
See Also:
  • Constructor Details

    • FeaturesResponse

      public FeaturesResponse()
  • Method Details

    • total

      public FeaturesResponse total(Integer total)
    • getTotal

      public Integer getTotal()
      the total number of available features, can be an estimated value. Can be missing when unknown or irrelevant (eg. featureinfo request)
      Returns:
      total
    • setTotal

      public void setTotal(Integer total)
    • page

      public FeaturesResponse page(Integer page)
    • getPage

      @Min(1L) public @Min(1L) Integer getPage()
      current page, this will allow the client to request the next or previous page by adding or removing 1 or more minimum: 1
      Returns:
      page
    • setPage

      public void setPage(Integer page)
    • pageSize

      public FeaturesResponse pageSize(Integer pageSize)
    • getPageSize

      @Min(1L) public @Min(1L) Integer getPageSize()
      number of features in a page, this will allow calculating the offset (page * pagesize) minimum: 1
      Returns:
      pageSize
    • setPageSize

      public void setPageSize(Integer pageSize)
    • features

      public FeaturesResponse features(List<@Valid Feature> features)
    • addFeaturesItem

      public FeaturesResponse addFeaturesItem(Feature featuresItem)
    • getFeatures

      @NotNull @Valid @Size(min=0) public @NotNull @Valid @Size(min=0) List<@Valid Feature> getFeatures()
      list of features. When the pagenumber*pagesize exceeds the number of features this list will be empty
      Returns:
      features
    • setFeatures

      public void setFeatures(List<@Valid Feature> features)
    • columnMetadata

      public FeaturesResponse columnMetadata(List<@Valid ColumnMetadata> columnMetadata)
    • addColumnMetadataItem

      public FeaturesResponse addColumnMetadataItem(ColumnMetadata columnMetadataItem)
    • getColumnMetadata

      @NotNull @Valid @Size(min=0) public @NotNull @Valid @Size(min=0) List<@Valid ColumnMetadata> getColumnMetadata()
      presentation metadata
      Returns:
      columnMetadata
    • setColumnMetadata

      public void setColumnMetadata(List<@Valid ColumnMetadata> columnMetadata)
    • template

      public FeaturesResponse template(String template)
    • getTemplate

      public String getTemplate()
      Template/description for a feature. Will replace placeholders by attribute values in the viewer
      Returns:
      template
    • setTemplate

      public void setTemplate(String template)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object