Class SearchOperatorDTO

java.lang.Object
net.sourceforge.jbizmo.commons.search.dto.SearchOperatorDTO
All Implemented Interfaces:
Serializable

public class SearchOperatorDTO extends Object implements Serializable

Data transfer object for search operators

Copyright 2010 (C) by Martin Ganserer

Version:
1.0.0
Author:
Martin Ganserer
See Also:
  • Constructor Details

    • SearchOperatorDTO

      public SearchOperatorDTO(int id, String value, String description, boolean expectsArgument, boolean dateSupport, boolean booleanSupport, boolean textSupport, boolean numberSupport)
      Constructor
      Parameters:
      id -
      value -
      description -
      expectsArgument -
      dateSupport -
      booleanSupport -
      textSupport -
      numberSupport -
  • Method Details

    • isBooleanSupport

      public boolean isBooleanSupport()
      Returns:
      true if the operator supports boolean operations
    • getId

      public int getId()
      Returns:
      the ID
    • setId

      public void setId(int id)
      Set the ID
      Parameters:
      id -
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Set the description text
      Parameters:
      description -
    • getValue

      public String getValue()
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Set the value
      Parameters:
      value -
    • toString

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

      public boolean isExpectsArgument()
      Returns:
      true if the operator needs an argument
    • setExpectsArgument

      public void setExpectsArgument(boolean expectsArgument)
      Parameters:
      expectsArgument -
    • isDateSupport

      public boolean isDateSupport()
      Returns:
      true if the operator supports date fields
    • setDateSupport

      public void setDateSupport(boolean dateSupport)
      Parameters:
      dateSupport -
    • isTextSupport

      public boolean isTextSupport()
      Returns:
      true if the operator supports text fields
    • isNumberSupport

      public boolean isNumberSupport()
      Returns:
      true if the operator supports numeric fields
    • setTextSupport

      public void setTextSupport(boolean textSupport)
      Parameters:
      textSupport - the text support flag to set