Use an iteration variable in walker
This commit is contained in:
parent
345d6f2e8c
commit
904e2cc20f
1 changed files with 8 additions and 4 deletions
|
|
@ -935,8 +935,8 @@ class MetaInfo extends GISJsonSerialised {
|
|||
private boolean limiteddepth
|
||||
private int maxdepth
|
||||
|
||||
IterationInfo(ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>(),
|
||||
Map<String, CollectedMeta> metamap = new Map<String, CollectedMeta>(),
|
||||
IterationInfo(ArrayList<CollectedMeta> metacollection,
|
||||
Map<String, CollectedMeta> metamap,
|
||||
String comment = '',
|
||||
int level = 0,
|
||||
String gatheredpath = '',
|
||||
|
|
@ -1056,11 +1056,15 @@ class MetaInfo extends GISJsonSerialised {
|
|||
}
|
||||
|
||||
def allrelatedmeta(String metapath = '') {
|
||||
return walkrelated(new IterationInfo(new ArrayList<CollectedMeta>(), new Map<String, CollectedMeta>(), '', 0, '', metapath))
|
||||
def ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>()
|
||||
def Map<String, CollectedMeta> metamap = new Map<String, CollectedMeta>()
|
||||
return walkrelated(new IterationInfo(metacollection, metamap, '', 0, '', metapath))
|
||||
}
|
||||
|
||||
ArrayList<CollectedMeta> releasewalker(int maxdepth, String startpath = '', String startmetapath = '') {
|
||||
def results = walkrelated(new IterationInfo(new ArrayList<CollectedMeta>(), new Map<String, CollectedMeta>(), 'meta', 0, startpath, startmetapath, true, maxdepth))
|
||||
def ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>()
|
||||
def Map<String, CollectedMeta> metamap = new Map<String, CollectedMeta>()
|
||||
def results = walkrelated(new IterationInfo(metacollection, metamap, 'meta', 0, startpath, startmetapath, true, maxdepth))
|
||||
return results.metacollection
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue