templates.model
Class Validator.ValidatorResult

java.lang.Object
  extended by templates.model.Validator.ValidatorResult
Enclosing class:
Validator

public static class Validator.ValidatorResult
extends java.lang.Object

Encapsulates a consistency issue found by the validator.

Author:
Lenko Grigorov

Field Summary
 java.util.List<TemplateComponent> components
          TemplateComponents contributing to the consistency issue, if any.
static int ERROR
          Type "error".
 java.lang.String event
          The name of the event contributing to the consistency issue, if any.
 java.util.List<TemplateLink> links
          TemplateLinks contributing to the consistency issue, if any.
 java.lang.String message
          String descriptor of the message.
 int type
          The type of the consistency issue (ERROR or WARNING ).
static int WARNING
          Type "warning".
 
Constructor Summary
Validator.ValidatorResult(java.lang.String message, java.util.Collection<TemplateComponent> components, java.util.Collection<TemplateLink> links, java.lang.String event, int type)
          Construct a descriptor of a consistency issue.
Validator.ValidatorResult(java.lang.String message, java.util.Collection<TemplateComponent> components, int type)
          Construct a descriptor of a consistency issue.
Validator.ValidatorResult(java.lang.String message, int type)
          Construct a descriptor of a consistency issue.
Validator.ValidatorResult(java.lang.String message, TemplateComponent component, java.util.Collection<TemplateLink> links, int type)
          Construct a descriptor of a consistency issue.
Validator.ValidatorResult(java.lang.String message, TemplateComponent component, java.util.Collection<TemplateLink> links, java.lang.String event, int type)
          Construct a descriptor of a consistency issue.
Validator.ValidatorResult(java.lang.String message, TemplateComponent component, int type)
          Construct a descriptor of a consistency issue.
Validator.ValidatorResult(java.lang.String message, TemplateLink link, int type)
          Construct a descriptor of a consistency issue.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR

public static final int ERROR
Type "error".

See Also:
Constant Field Values

WARNING

public static final int WARNING
Type "warning".

See Also:
Constant Field Values

message

public java.lang.String message
String descriptor of the message. Not human readable.


components

public java.util.List<TemplateComponent> components
TemplateComponents contributing to the consistency issue, if any.


links

public java.util.List<TemplateLink> links
TemplateLinks contributing to the consistency issue, if any.


event

public java.lang.String event
The name of the event contributing to the consistency issue, if any.


type

public int type
The type of the consistency issue (ERROR or WARNING ).

Constructor Detail

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 java.util.Collection<TemplateComponent> components,
                                 java.util.Collection<TemplateLink> links,
                                 java.lang.String event,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
components - the TemplateComponents contributing to the issue
links - the TemplateLinks contributing to the issue
event - the name of the event contributing to the issue
type - the type of the issue

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 TemplateComponent component,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
component - the TemplateComponent contributing to the issue
type - the type of the issue

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 java.util.Collection<TemplateComponent> components,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
components - the TemplateComponents contributing to the issue
type - the type of the issue

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 TemplateComponent component,
                                 java.util.Collection<TemplateLink> links,
                                 java.lang.String event,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
component - the TemplateComponent contributing to the issue
links - the TemplateLinks contributing to the issue
event - the name of the event contributing to the issue
type - the type of the issue

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 TemplateComponent component,
                                 java.util.Collection<TemplateLink> links,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
component - the TemplateComponent contributing to the issue
links - the TemplateLinks contributing to the issue
type - the type of the issue

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 TemplateLink link,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
link - the TemplateLink contributing to the issue
type - the type of the issue

Validator.ValidatorResult

public Validator.ValidatorResult(java.lang.String message,
                                 int type)
Construct a descriptor of a consistency issue.

Parameters:
message - the string descriptor of the issue
type - the type of the issue