ALF-11032: Load file in to object graph

Added facility to load an object graph from an XML input stream.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31568 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2011-10-31 15:14:45 +00:00
parent fa7854a9aa
commit b7c32e2c92
13 changed files with 474 additions and 9 deletions

View File

@@ -18,6 +18,7 @@
*/
package org.alfresco.util.schemacomp.model;
import java.util.ArrayList;
import java.util.List;
import org.alfresco.util.schemacomp.DbObjectVisitor;
@@ -32,9 +33,14 @@ import org.alfresco.util.schemacomp.Result.Strength;
*/
public class Index extends AbstractDbObject
{
private List<String> columnNames;
private final List<String> columnNames = new ArrayList<String>();
public Index(String name)
{
super(null, name);
}
/**
* @param table the parent table
* @param columnNames
@@ -42,7 +48,7 @@ public class Index extends AbstractDbObject
public Index(Table table, String name, List<String> columnNames)
{
super(table, name);
this.columnNames = columnNames;
this.columnNames.addAll(columnNames);
setNameStrength(Strength.WARN);
}
@@ -59,7 +65,8 @@ public class Index extends AbstractDbObject
*/
public void setColumnNames(List<String> columnNames)
{
this.columnNames = columnNames;
this.columnNames.clear();
this.columnNames.addAll(columnNames);
}
@Override