2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective;
10 import java.util.Date;
11 import org.opendaylight.yangtools.yang.model.api.stmt.RevisionStatement;
12 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
14 public class RevisionEffectiveStatementImpl extends
15 EffectiveStatementBase<Date, RevisionStatement> {
17 private final String reference;
18 private final String description;
20 public RevisionEffectiveStatementImpl(
21 StmtContext<Date, RevisionStatement, ?> ctx) {
24 DescriptionEffectiveStatementImpl descStmt = firstEffective(DescriptionEffectiveStatementImpl.class);
25 if (descStmt != null) {
26 description = descStmt.argument();
31 ReferenceEffectiveStatementImpl refStmt = firstEffective(ReferenceEffectiveStatementImpl.class);
32 if (refStmt != null) {
33 reference = refStmt.argument();
39 public final String getDescription() {
43 public final String getReference() {