use of edu.stanford.bmir.protege.web.shared.collection.CollectionId in project webprotege by protegeproject.
the class CollectionViewPlaceTokenizer method getPlace.
@Override
public CollectionViewPlace getPlace(String token) {
MatchResult result = regExp.exec(token);
ProjectId projectId = ProjectId.get(result.getGroup(1));
CollectionId collectionId = CollectionId.get(result.getGroup(2));
FormId formId = new FormId(result.getGroup(3));
String selectionString = result.getGroup(5);
GWT.log("[CollectionViewPlaceTokenizer] Selection string: " + selectionString);
Optional<CollectionItem> selection = Optional.ofNullable(selectionString).map(CollectionItem::get);
return new CollectionViewPlace(projectId, collectionId, formId, selection);
}
Aggregations