Use an iteration variable in walker
This commit is contained in:
parent
904e2cc20f
commit
27298b9974
1 changed files with 2 additions and 2 deletions
|
|
@ -1057,13 +1057,13 @@ class MetaInfo extends GISJsonSerialised {
|
|||
|
||||
def allrelatedmeta(String metapath = '') {
|
||||
def ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>()
|
||||
def Map<String, CollectedMeta> metamap = new Map<String, CollectedMeta>()
|
||||
def Map<String, CollectedMeta> metamap = new LinkedHashMap<String, CollectedMeta>()
|
||||
return walkrelated(new IterationInfo(metacollection, metamap, '', 0, '', metapath))
|
||||
}
|
||||
|
||||
ArrayList<CollectedMeta> releasewalker(int maxdepth, String startpath = '', String startmetapath = '') {
|
||||
def ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>()
|
||||
def Map<String, CollectedMeta> metamap = new Map<String, CollectedMeta>()
|
||||
def Map<String, CollectedMeta> metamap = new LinkedHashMap<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