
com.structurizr.dsl.DynamicViewRelationshipParser Maven / Gradle / Ivy
The newest version!
package com.structurizr.dsl;
final class DynamicViewRelationshipParser extends AbstractParser {
private final static int URL_INDEX = 1;
void parseUrl(DynamicViewRelationshipContext context, Tokens tokens) {
// url
if (tokens.hasMoreThan(URL_INDEX)) {
throw new RuntimeException("Too many tokens, expected: url ");
}
if (!tokens.includes(URL_INDEX)) {
throw new RuntimeException("Expected: url ");
}
String url = tokens.get(URL_INDEX);
context.getRelationshipView().setUrl(url);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy