-/**
+/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
import org.opendaylight.yangtools.yang.model.api.stmt.RevisionStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-public class RevisionEffectiveStatementImpl extends
- EffectiveStatementBase<Date, RevisionStatement> {
+public final class RevisionEffectiveStatementImpl extends EffectiveStatementBase<Date, RevisionStatement> {
+ private final String reference;
+ private final String description;
- public RevisionEffectiveStatementImpl(
- StmtContext<Date, RevisionStatement, ?> ctx) {
+ public RevisionEffectiveStatementImpl(final StmtContext<Date, RevisionStatement, ?> ctx) {
super(ctx);
+
+ DescriptionEffectiveStatementImpl descStmt = firstEffective(DescriptionEffectiveStatementImpl.class);
+ if (descStmt != null) {
+ description = descStmt.argument();
+ } else {
+ description = null;
+ }
+
+ ReferenceEffectiveStatementImpl refStmt = firstEffective(ReferenceEffectiveStatementImpl.class);
+ if (refStmt != null) {
+ reference = refStmt.argument();
+ } else {
+ reference = null;
+ }
}
+ public final String getDescription() {
+ return description;
+ }
+
+ public final String getReference() {
+ return reference;
+ }
}
\ No newline at end of file