Lines 9-14
Link Here
|
9 |
public class NextCatalog extends CatalogElement implements INextCatalog |
9 |
public class NextCatalog extends CatalogElement implements INextCatalog |
10 |
{ |
10 |
{ |
11 |
String location; |
11 |
String location; |
|
|
12 |
ICatalog referencedCatalog; |
12 |
|
13 |
|
13 |
public NextCatalog() |
14 |
public NextCatalog() |
14 |
{ |
15 |
{ |
Lines 22-33
Link Here
|
22 |
|
23 |
|
23 |
public ICatalog getReferencedCatalog() |
24 |
public ICatalog getReferencedCatalog() |
24 |
{ |
25 |
{ |
25 |
return ((Catalog)ownerCatalog).getCatalogSet().lookupOrCreateCatalog(getId(), getAbsolutePath(location)); |
26 |
if (referencedCatalog == null) |
|
|
27 |
{ |
28 |
referencedCatalog = ((Catalog)ownerCatalog).getCatalogSet().lookupOrCreateCatalog(getId(), getAbsolutePath(location)); |
29 |
} |
30 |
return referencedCatalog; |
26 |
} |
31 |
} |
27 |
|
32 |
|
28 |
public void setCatalogLocation(String uri) |
33 |
public void setCatalogLocation(String uri) |
29 |
{ |
34 |
{ |
30 |
location = uri; |
35 |
location = uri; |
|
|
36 |
referencedCatalog = null; |
31 |
} |
37 |
} |
32 |
|
38 |
|
33 |
public Object clone() |
39 |
public Object clone() |
Lines 36-41
Link Here
|
36 |
nextCatalog.setCatalogLocation(location); |
42 |
nextCatalog.setCatalogLocation(location); |
37 |
return nextCatalog; |
43 |
return nextCatalog; |
38 |
} |
44 |
} |
39 |
|
|
|
40 |
|
41 |
} |
45 |
} |