
io.fixprotocol.orchestra.model.quickfix.GroupInstanceScope Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2017-2020 FIX Protocol Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package io.fixprotocol.orchestra.model.quickfix;
import java.util.List;
import io.fixprotocol._2020.orchestra.repository.FieldRefType;
import io.fixprotocol._2020.orchestra.repository.GroupRefType;
import io.fixprotocol._2020.orchestra.repository.GroupType;
import io.fixprotocol.orchestra.dsl.antlr.Evaluator;
import io.fixprotocol.orchestra.model.FixNode;
import io.fixprotocol.orchestra.model.FixValue;
import io.fixprotocol.orchestra.model.ModelException;
import io.fixprotocol.orchestra.model.PathStep;
import io.fixprotocol.orchestra.model.Scope;
import io.fixprotocol.orchestra.model.SymbolResolver;
import quickfix.Group;
/**
* Symbol Scope for an instance of a repeating group
*
* @author Don Mendelson
*
*/
class GroupInstanceScope extends AbstractMessageScope implements Scope {
private final GroupType groupType;
private Scope parent;
public GroupInstanceScope(Group group, GroupType groupType, RepositoryAccessor repository,
SymbolResolver symbolResolver, Evaluator evaluator) {
super(group, repository, symbolResolver, evaluator);
this.groupType = groupType;
}
/*
* (non-Javadoc)
*
* @see
* io.fixprotocol.orchestra.dsl.antlr.Scope#assign(io.fixprotocol.orchestra.dsl.antlr.PathStep,
* io.fixprotocol.orchestra.dsl.antlr.FixValue)
*/
@Override
public FixValue> assign(PathStep pathStep, FixValue> fixValue) throws ModelException {
final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy