fr.paris.lutece.plugins.directory.modules.address.web
Class DirectoryAddressJspBean.SearchAddress

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.modules.address.web.DirectoryAddressJspBean.SearchAddress
Enclosing class:
DirectoryAddressJspBean

public static class DirectoryAddressJspBean.SearchAddress
extends java.lang.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" : "[...]"
 }
 

See Also:
http://www.json.org/}

Constructor Summary
DirectoryAddressJspBean.SearchAddress()
           
 
Method Summary
 fr.paris.lutece.util.ReferenceList getAddresses()
          Return matching addresses
 java.lang.String getAddressLabel()
          address
 int getIdEntry()
          Entry id
 java.lang.String getMessage()
          Returns the error message
 float getX()
          X
 float getY()
          Y
 boolean isError()
          true if the error message is not blank, false otherwise
 boolean isNoResult()
          true if no result, false otherwise
 boolean isSingleResult()
          true if there is one and only one result , false otherwise
 void setAddresses(fr.paris.lutece.util.ReferenceList refListAddresses)
          Sets the addresses
 void setAddressLabel(java.lang.String strAddressLabel)
          Sets the address
 void setIdEntry(int nIdEntry)
          Sets the entry id
 void setMessage(java.lang.String strMessage)
          Sets an error message
 void setX(float fX)
          Sets the x
 void setY(float fY)
          Sets the y
 java.lang.String toJSONString(java.util.Locale locale)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryAddressJspBean.SearchAddress

public DirectoryAddressJspBean.SearchAddress()
Method Detail

getAddressLabel

public java.lang.String getAddressLabel()
address

Returns:
address

setAddressLabel

public void setAddressLabel(java.lang.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(java.lang.String strMessage)
Sets an error message

Parameters:
strMessage - an error message

getMessage

public java.lang.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

toJSONString

public java.lang.String toJSONString(java.util.Locale locale)



Copyright © 2010 Mairie de Paris. All Rights Reserved.