Class GenericAttributeError
- java.lang.Object
-
- fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError
-
- All Implemented Interfaces:
fr.paris.lutece.util.ErrorMessage,java.io.Serializable
- Direct Known Subclasses:
MandatoryError
public class GenericAttributeError extends java.lang.Object implements java.io.Serializable, fr.paris.lutece.util.ErrorMessageclass GenericAttributeError- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericAttributeError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorMessage()Gets the error Messagejava.lang.StringgetFieldName()booleangetIsDisplayableError()Check if the error is a displayable error.java.lang.StringgetMessage()java.lang.StringgetTitleQuestion()java.lang.StringgetUrl()booleanisMandatoryError()return true if the error is a mandatory errorvoidsetErrorMessage(java.lang.String errorMessage)set the error messagevoidsetIsDisplayableError(boolean bDisplayableError)Set the error as displayable or not.voidsetMandatoryError(boolean mandatoryError)set true if the error is a mandatory errorvoidsetTitleQuestion(java.lang.String titleMandatoryQuestion)set the title of the mandatory questionvoidsetUrl(java.lang.String strUrl)
-
-
-
Method Detail
-
isMandatoryError
public boolean isMandatoryError()
return true if the error is a mandatory error- Returns:
- true if the error is a mandatory error
-
setMandatoryError
public void setMandatoryError(boolean mandatoryError)
set true if the error is a mandatory error- Parameters:
mandatoryError- true if the error is a mandatory error
-
getErrorMessage
public java.lang.String getErrorMessage()
Gets the error Message- Returns:
- the error Message
-
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
set the error message- Parameters:
errorMessage- the error message
-
getTitleQuestion
public java.lang.String getTitleQuestion()
- Returns:
- the title of the mandatory question
-
setTitleQuestion
public void setTitleQuestion(java.lang.String titleMandatoryQuestion)
set the title of the mandatory question- Parameters:
titleMandatoryQuestion- the title of the mandatory question
-
setUrl
public void setUrl(java.lang.String strUrl)
- Parameters:
strUrl- the _strUrl to set
-
getUrl
public java.lang.String getUrl()
- Returns:
- the _strUrl
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessagein interfacefr.paris.lutece.util.ErrorMessage
-
getIsDisplayableError
public boolean getIsDisplayableError()
Check if the error is a displayable error. Non displayable errors should not be displayed in any manners to users.- Returns:
- True if the error is a displayable error, false otherwise
-
setIsDisplayableError
public void setIsDisplayableError(boolean bDisplayableError)
Set the error as displayable or not. Non displayable errors should not be displayed in any manners to users.- Parameters:
bDisplayableError- True if the error is a displayable error, false otherwise
-
getFieldName
public java.lang.String getFieldName()
- Specified by:
getFieldNamein interfacefr.paris.lutece.util.ErrorMessage
-
-