java.lang.Object
fr.paris.lutece.plugins.genericattributes.modules.address.business.SearchAddress

public class SearchAddress extends Object
SearchAddress. Use for JSON compatibility :
 {
  "noResult" : "false",
  "singleResult" : "false",
  "listAddresses" : [{"12345", "217 rue de Bercy"},
                 {"98765", "216, rue de Bercy"}],
  "message" : "",
  "error" : "false",
  "address" : "",
  "html" : "[...]"
 }
 
http://www.json.org/
  • Constructor Details

    • SearchAddress

      public SearchAddress()
  • Method Details

    • getAddressLabel

      public String getAddressLabel()
      address
      Returns:
      address
    • setAddressLabel

      public void setAddressLabel(String strAddressLabel)
      Sets the address
      Parameters:
      strAddressLabel - the new address
    • getIdEntry

      public int getIdEntry()
      Entry id
      Returns:
      the entry id
    • setIdEntry

      public void setIdEntry(int nIdEntry)
      Sets the entry id
      Parameters:
      nIdEntry - the new entry id
    • isNoResult

      public boolean isNoResult()
      true if no result, false otherwise
      Returns:
      true if no result, false otherwise
    • isSingleResult

      public boolean isSingleResult()
      true if there is one and only one result , false otherwise
      Returns:
      true if there is one and only one result, false otherwise
    • setAddresses

      public void setAddresses(fr.paris.lutece.util.ReferenceList refListAddresses)
      Sets the addresses
      Parameters:
      refListAddresses - the addresses
    • getAddresses

      public fr.paris.lutece.util.ReferenceList getAddresses()
      Return matching addresses
      Returns:
      the addresses
    • setMessage

      public void setMessage(String strMessage)
      Sets an error message
      Parameters:
      strMessage - an error message
    • getMessage

      public String getMessage()
      Returns the error message
      Returns:
      the error message, null otherwise.
    • isError

      public boolean isError()
      true if the error message is not blank, false otherwise
      Returns:
      true if the error message is not blank, false otherwise
    • getX

      public Float getX()
      X
      Returns:
      x
    • setX

      public void setX(Float fX)
      Sets the x
      Parameters:
      fX - the x
    • setY

      public void setY(Float fY)
      Sets the y
      Parameters:
      fY - the y
    • getY

      public Float getY()
      Y
      Returns:
      y
    • getIdAddress

      public String getIdAddress()
      Returns:
      the nIdAddress
    • setIdAddress

      public void setIdAddress(String strIdAddress)
      Parameters:
      nIdAddress - the IdAddress to set
    • toJSONString

      public String toJSONString(Locale locale)
      Parameters:
      locale - the locale
      Returns:
      json representation
      See Also:
      • JSONObject#toString()