|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mindtree.techworks.insight.reporting.verifiers.AbstractVerifier
public abstract class AbstractVerifier
An abstract implementation of the Verifier interface. It
provides common services required by verifiers at a single location. Some
of those include maintaining a registry of Jobs currently registered to be
called when this Verifier is triggered.
Verifier,
Job,
Serialized Form| Field Summary | |
|---|---|
protected java.util.List |
_jobs
The lists of jobs to be invoked when the verifier is triggered. |
| Constructor Summary | |
|---|---|
AbstractVerifier()
Creates a new AbstractVerifier instance. |
|
AbstractVerifier(java.lang.String displayName)
Creates a new AbstractVerifier instance, with the display
name provided. |
|
| Method Summary | |
|---|---|
VerifierDeserializer |
getDeserializer()
Returns the default implementation of VerifierDeserializer. |
java.lang.String |
getDisplayName()
Returns the display name of the verifier to be displayed in the UI of the application to the user. |
protected abstract java.util.Map |
getFieldMap()
The implementing verifiers should return a map of the fields that they require to be serialized as a map. |
java.lang.String |
getUID()
Returns the unique identifier for this Verifier - the fully
qualified name of the class implementing the interface. |
void |
registerJob(Job job)
Registers a job to be executed when the Verifier is triggered. |
java.lang.String |
serialize()
Generates a default serialized form of the Verifier. |
protected abstract boolean |
serializeJobs()
Returns true if the Jobs registered for
this Verifier are to be serialized. |
protected void |
setDisplayName(java.lang.String displayName)
Sets the display name of the Verifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.mindtree.techworks.insight.reporting.verifiers.Verifier |
|---|
notifyEndAction, notifyStartAction, verify |
| Methods inherited from interface com.mindtree.techworks.insight.reporting.verifiers.DefaultImplDeserializable |
|---|
deserializeField |
| Field Detail |
|---|
protected java.util.List _jobs
| Constructor Detail |
|---|
public AbstractVerifier(java.lang.String displayName)
AbstractVerifier instance, with the display
name provided.
displayName - The display name of the Verifier.public AbstractVerifier()
AbstractVerifier instance.
| Method Detail |
|---|
protected abstract java.util.Map getFieldMap()
toString() method, or they need to be
arrays or Collections. In the latter case, the values in the
array or Collection need to return serializable data from
the toString() method.
protected abstract boolean serializeJobs()
true if the Jobs registered for
this Verifier are to be serialized.
true if Jobs are to be serialized
or falsepublic void registerJob(Job job)
registerJob in interface Verifierjob - The Job to be registered.
java.lang.IllegalArgumentException - If the job passed in is nullVerifier.registerJob(com.mindtree.techworks.insight.reporting.jobs.Job)public java.lang.String serialize()
Verifier. Only
fields returned by the #getFieldMap() method are
serialized. Verifiers serialized using this method may be
deserialized using the VerifierDeserializerImpl.
For a format of the serialized Verifier see
VerifierDeserializer documentation.
Verifiers extending this class may override this method and
provide their own VerifierDeserializer instances.
serialize in interface VerifierString form of the Verifier.Verifier.serialize()public VerifierDeserializer getDeserializer()
VerifierDeserializer.
Subclasses using a different VerifierDeserializer
implementation should override this method.
getDeserializer in interface VerifierVerifierDeserializer to be used for the Verifier.Verifier.getDeserializer()public java.lang.String getDisplayName()
Verifier
getDisplayName in interface VerifierVerifier.Verifier.getDisplayName()public java.lang.String getUID()
VerifierVerifier - the fully
qualified name of the class implementing the interface.
getUID in interface VerifierVerifier.getUID()protected void setDisplayName(java.lang.String displayName)
Verifier. Sub classes, which do
not use the constructor to set the display name of the
Verifier, may use this method to set the display name.
displayName - The display name of the Verifier.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||