import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.type.LengthEffectiveStatementImpl;
public class LengthStatementImpl extends AbstractDeclaredStatement<List<LengthConstraint>> implements LengthStatement {
super(context);
}
- public static class Definition
- extends
- AbstractStatementSupport<List<LengthConstraint>, LengthStatement, EffectiveStatement<List<LengthConstraint>, LengthStatement>> {
+ public static class Definition extends AbstractStatementSupport<List<LengthConstraint>, LengthStatement,
+ EffectiveStatement<List<LengthConstraint>, LengthStatement>> {
public Definition() {
super(Rfc6020Mapping.LENGTH);
@Override
public List<LengthConstraint> parseArgumentValue(StmtContext<?, ?, ?> ctx, String value) {
- return TypeUtils.parseLengthListFromString(value);
+ return TypeUtils.parseLengthListFromString(ctx, value);
}
@Override
@Override
public EffectiveStatement<List<LengthConstraint>, LengthStatement> createEffective(
- StmtContext<List<LengthConstraint>, LengthStatement, EffectiveStatement<List<LengthConstraint>, LengthStatement>> ctx) {
+ StmtContext<List<LengthConstraint>, LengthStatement, EffectiveStatement<List<LengthConstraint>,
+ LengthStatement>> ctx) {
return new LengthEffectiveStatementImpl(ctx);
}
@Override
public void onFullDefinitionDeclared(StmtContext.Mutable<List<LengthConstraint>,
- LengthStatement, EffectiveStatement<List<LengthConstraint>, LengthStatement>> stmt) throws SourceException {
+ LengthStatement, EffectiveStatement<List<LengthConstraint>, LengthStatement>> stmt) {
super.onFullDefinitionDeclared(stmt);
SUBSTATEMENT_VALIDATOR.validate(stmt);
}
public List<LengthConstraint> getValue() {
return argument();
}
-}
\ No newline at end of file
+}