Class AttribReport
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.report.AbstractReport
br.ufsc.labsec.signature.conformanceVerifier.report.AttribReport
- All Implemented Interfaces:
ReportElement
Esta classe representa o relatório de um atributo da assinatura
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields inherited from class AbstractReport
DATE_TIME_FORMATTER -
Constructor Summary
ConstructorsConstructorDescriptionConstrutorAttribReport(String errorMessage) Construtor para relatório de atributo com mensagem de erro errorMessageAttribReport(String attributeName, String attributeError) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildElements(ReportBuilder<?, ?> documentBuilder) Constroi os elementos específicos do relatórioRetorna o nome do atributoRetorna a tag do elementoRetorna a mensagem de alertabooleanhasError()Verifica se há erro no atributobooleanIndica se há presença de alertavoidsetAttribName(String name) Atribue name ao atributovoidsetAttributeValueReport(AttributeValueReport attributeValueReport) voidsetError(boolean error) Atribue presença de erro no atributovoidAtribue a validade do atributovoidsetType(AttribReport.Type type) voidsetWarningMessage(String warningMessage) Atribue uma mensagem de alertavoidsetWarningMessage(String warningMessage, boolean error) Atribue uma mensagem de alertatoString()Retorna nome do atributoMethods inherited from class AbstractReport
addAllErrorMessages, addErrorMessage, clear, formatDate, generateDocument, generateElement, generateJSON, getErrorMessagesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ReportElement
getPluralElementTag
-
Constructor Details
-
AttribReport
public AttribReport()Construtor -
AttribReport
Construtor para relatório de atributo com mensagem de erro errorMessage -
AttribReport
-
-
Method Details
-
getElementTag
Description copied from interface:ReportElementRetorna a tag do elemento- Returns:
- A tag do elemento
-
setType
-
setAttribName
Atribue name ao atributo- Parameters:
name- O nome do atributo
-
setError
Atribue a validade do atributo- Parameters:
error- A validade do atributo
-
setError
public void setError(boolean error) Atribue presença de erro no atributo- Parameters:
error- Presença de erro no atributo
-
buildElements
Description copied from class:AbstractReportConstroi os elementos específicos do relatório- Specified by:
buildElementsin classAbstractReport- Parameters:
documentBuilder- builder
-
hasError
public boolean hasError()Verifica se há erro no atributo- Returns:
- Presença de erro no atributo
-
getValidityStatus
-
getAttribName
-
getWarningMessage
-
setWarningMessage
Atribue uma mensagem de alerta- Parameters:
warningMessage- A mensagem de alerta
-
setWarningMessage
Atribue uma mensagem de alerta- Parameters:
warningMessage- A mensagem de alerta
-
hasWarning
public boolean hasWarning()Indica se há presença de alerta- Returns:
- A presença de mensagem de alerta
-
toString
-
setAttributeValueReport
-