org.alfresco.util.schemacomp.model
Class Schema

java.lang.Object
  extended by org.alfresco.util.schemacomp.model.AbstractDbObject
      extended by org.alfresco.util.schemacomp.model.Schema
All Implemented Interfaces:
java.lang.Iterable, DbObject

public class Schema
extends AbstractDbObject
implements java.lang.Iterable

Instances of this class represent a database schema.


Field Summary
protected  java.util.List objects
           
 
Fields inherited from class org.alfresco.util.schemacomp.model.AbstractDbObject
comparisonUtils
 
Constructor Summary
Schema(java.lang.String name)
          Construct a schema with the given name.
 
Method Summary
 void accept(DbObjectVisitor visitor)
          Allows a visitor to be invoked against this DbObject.
 void add(DbObject dbObject)
          Add an object to this schema - this method will set this schema as the object's parent.
 boolean contains(DbObject object)
           
protected  void doDiff(DbObject right, DiffContext ctx, Result.Strength strength)
          Override this method to provide subclass specific diffing logic.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.util.Iterator iterator()
           
 
Methods inherited from class org.alfresco.util.schemacomp.model.AbstractDbObject
diff, getName, getNameStrength, getParent, getTypeName, getValidators, sameAs, setComparisonUtils, setName, setNameStrength, setParent, setValidators, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

objects

protected final java.util.List objects
Constructor Detail

Schema

public Schema(java.lang.String name)
Construct a schema with the given name.

Parameters:
name -
Method Detail

add

public void add(DbObject dbObject)
Add an object to this schema - this method will set this schema as the object's parent.

Parameters:
dbObject -

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable

contains

public boolean contains(DbObject object)
Parameters:
identifier -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractDbObject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractDbObject

doDiff

protected void doDiff(DbObject right,
                      DiffContext ctx,
                      Result.Strength strength)
Description copied from class: AbstractDbObject
Override this method to provide subclass specific diffing logic.

Overrides:
doDiff in class AbstractDbObject

accept

public void accept(DbObjectVisitor visitor)
Description copied from interface: DbObject
Allows a visitor to be invoked against this DbObject. Implementations should ensure that child objects are visited first (by calling accept on them) before invoking the visitor on itself.

Specified by:
accept in interface DbObject


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.