Package org.alfresco.util.schemacomp
Class Results
- java.lang.Object
-
- org.alfresco.util.schemacomp.Results
-
-
Constructor Summary
Constructors Constructor Description Results()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Difference.Where where, DbProperty left, DbProperty right)Record a difference between two objects, or specify that an object only appears in either the 'left' or 'right' schemas.voidadd(Result result)Resultget(int i)Get the ith result.java.util.Iterator<Result>iterator()Obtain an iterator for the top-level items held in this schema - since this is a hierarchical model, deeper items are obtained by navigating through the top-level items.intsize()
-
-
-
Method Detail
-
add
public void add(Difference.Where where, DbProperty left, DbProperty right)
Record a difference between two objects, or specify that an object only appears in either the 'left' or 'right' schemas.- Parameters:
where- The type of difference, seeDifference.Whereleft- Left value, or null if the item appears in the right, but not left schema.right- Right value, or null if the item appears in the left, but not right schema.
-
add
public void add(Result result)
-
iterator
public java.util.Iterator<Result> iterator()
Obtain an iterator for the top-level items held in this schema - since this is a hierarchical model, deeper items are obtained by navigating through the top-level items.- Specified by:
iteratorin interfacejava.lang.Iterable<Result>
-
get
public Result get(int i)
Get the ith result.- Parameters:
i- int- Returns:
- Result
-
size
public int size()
- Returns:
- How many top-level items are in the schema.
-
-