public class ContextPath extends Object
| Constructor and Description |
|---|
ContextPath() |
ContextPath(ContextPath contextPath) |
ContextPath(IncludeInfo includeInfo) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getParentPath(String path) |
IncludeInfo |
peek() |
IncludeInfo |
pop() |
void |
push(IncludeInfo includeInfo) |
void |
push(org.yaml.snakeyaml.nodes.ScalarNode node) |
void |
push(org.yaml.snakeyaml.nodes.Tag tag) |
void |
pushRoot(String absoluteFile) |
String |
resolveAbsolutePath(String relativeFile) |
static String |
resolveAbsolutePath(String relativeFile,
String parentPath) |
String |
resolveRelativePath(org.yaml.snakeyaml.nodes.Tag tag)
Calculates the relative path of an include applied tag with respect
to the current context
e.g.:
context: a/b/c/x.raml
tag: a/b/c/d/y.raml
result: d/y.raml
|
int |
size() |
public ContextPath()
public ContextPath(ContextPath contextPath)
public ContextPath(IncludeInfo includeInfo)
public void pushRoot(String absoluteFile)
public static String resolveAbsolutePath(String relativeFile, String parentPath)
public String resolveRelativePath(org.yaml.snakeyaml.nodes.Tag tag)
tag - include applied tagpublic IncludeInfo peek()
public IncludeInfo pop()
public void push(IncludeInfo includeInfo)
public void push(org.yaml.snakeyaml.nodes.ScalarNode node)
public void push(org.yaml.snakeyaml.nodes.Tag tag)
public int size()
Copyright © 2020. All rights reserved.