Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.project.validator
Class TreeNodeValidator  view TreeNodeValidator download TreeNodeValidator.java

java.lang.Object
  extended byorg.objectstyle.cayenne.project.validator.TreeNodeValidator
Direct Known Subclasses:
DataMapValidator, DataNodeValidator, DbAttributeValidator, DbEntityValidator, DbRelationshipValidator, DomainValidator, ObjAttributeValidator, ObjEntityValidator, ObjRelationshipValidator, ProcedureParameterValidator, ProcedureValidator

public abstract class TreeNodeValidator
extends java.lang.Object

Validator of a single node in a project object tree. Do not confuse with org.objectstyle.cayenne.access.DataNode.


Field Summary
protected static DbAttributeValidator dbAttrValidator
           
protected static DbEntityValidator dbEntityValidator
           
protected static DbRelationshipValidator dbRelValidator
           
protected static DomainValidator domainValidator
           
private static org.apache.log4j.Logger logObj
           
protected static DataMapValidator mapValidator
           
protected static DataNodeValidator nodeValidator
           
protected static ObjAttributeValidator objAttrValidator
           
protected static ObjEntityValidator objEntityValidator
           
protected static ObjRelationshipValidator objRelValidator
           
protected static ProcedureParameterValidator procedureParameterValidator
           
protected static ProcedureValidator procedureValidator
           
 
Constructor Summary
TreeNodeValidator()
          Constructor for TreeNodeValidator.
 
Method Summary
static void validate(org.objectstyle.cayenne.project.ProjectPath path, Validator validator)
          Validates an object, appending any validation messages to the validator provided.
abstract  void validateObject(org.objectstyle.cayenne.project.ProjectPath treeNodePath, Validator validator)
          Validates an object, appending any warnings or errors to the validator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logObj

private static org.apache.log4j.Logger logObj

domainValidator

protected static final DomainValidator domainValidator

nodeValidator

protected static final DataNodeValidator nodeValidator

mapValidator

protected static final DataMapValidator mapValidator

objEntityValidator

protected static final ObjEntityValidator objEntityValidator

objAttrValidator

protected static final ObjAttributeValidator objAttrValidator

objRelValidator

protected static final ObjRelationshipValidator objRelValidator

dbEntityValidator

protected static final DbEntityValidator dbEntityValidator

dbAttrValidator

protected static final DbAttributeValidator dbAttrValidator

dbRelValidator

protected static final DbRelationshipValidator dbRelValidator

procedureValidator

protected static final ProcedureValidator procedureValidator

procedureParameterValidator

protected static final ProcedureParameterValidator procedureParameterValidator
Constructor Detail

TreeNodeValidator

public TreeNodeValidator()
Constructor for TreeNodeValidator.

Method Detail

validate

public static void validate(org.objectstyle.cayenne.project.ProjectPath path,
                            Validator validator)
Validates an object, appending any validation messages to the validator provided.


validateObject

public abstract void validateObject(org.objectstyle.cayenne.project.ProjectPath treeNodePath,
                                    Validator validator)
Validates an object, appending any warnings or errors to the validator. Object to be validated is the last object in a treeNodePath array argument. Concrete implementations would expect an object of a specific type. Otherwise, ClassCastException will be thrown.