Class SearchInputMetadataDTO

java.lang.Object
org.codeability.sharing.plugins.api.search.SearchInputMetadataDTO

public class SearchInputMetadataDTO extends Object
transfers the queried meta data
Author:
Michael Breu
  • Constructor Details

    • SearchInputMetadataDTO

      public SearchInputMetadataDTO()
      just for JSON
    • SearchInputMetadataDTO

      public SearchInputMetadataDTO(String programmingLanguage, String keyword, List<String> naturalLanguage, String license, String author, String format)
      a convenience constructor.
      Parameters:
      programmingLanguage - the programmingLanguage
      keyword - the keywords
      naturalLanguage - the list of requested languages
      license - the license(s)
      author - the author
      format - the format
  • Method Details

    • getFormat

      public String getFormat()
      Returns:
      the format
    • setFormat

      public void setFormat(String format)
      sets the format
      Parameters:
      format - the format
    • hasMetadataInput

      public boolean hasMetadataInput()
      checks for minimal meta data
      Returns:
      the meta data
    • getProgrammingLanguage

      public String getProgrammingLanguage()
      the programming language
      Returns:
      the programming language
    • setProgrammingLanguage

      public void setProgrammingLanguage(String programmingLanguage)
      Parameters:
      programmingLanguage - the programming language
    • getKeyword

      public String getKeyword()
      a string containing the keywords
      Returns:
      a string containing the keywords
    • setKeyword

      public void setKeyword(String keyword)
      Parameters:
      keyword - a string containing the keywords
    • getNaturalLanguage

      public List<String> getNaturalLanguage()
      Returns:
      the selected natural languages
    • getNaturalLanguagesAsString

      public String getNaturalLanguagesAsString()
      Returns:
      the selected natural languages
    • setNaturalLanguage

      public void setNaturalLanguage(List<String> naturalLanguages)
      Parameters:
      naturalLanguages - the list of selected natural languages
    • getLicense

      public String getLicense()
      the license
      Returns:
      the requested license
    • setLicense

      public void setLicense(String license)
      Parameters:
      license - the requested license
    • getAuthor

      public String getAuthor()
      Returns:
      the author
    • setAuthor

      public void setAuthor(String author)
      setter for author
      Parameters:
      author - the author
    • getLearningResourceType

      public String getLearningResourceType()
    • setLearningResourceType

      public void setLearningResourceType(String learningResourceType)
    • getParentId

      public String getParentId()
      Returns:
      the parentId
    • setParentId

      public void setParentId(String parentId)
      Parameters:
      parentId - the parentId to set
    • toString

      public String toString()
      to string
      Overrides:
      toString in class Object