/*
 * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective;

import java.util.Date;
import org.opendaylight.yangtools.yang.model.api.stmt.RevisionStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;

public final class RevisionEffectiveStatementImpl extends DeclaredEffectiveStatementBase<Date, RevisionStatement> {
    private final String reference;
    private final String description;

    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;
    }
}
@@ -396,16 +396,81 @@
 l.Date;%0A
+import org.opendaylight.yangtools.yang.model.api.DocumentedNode;%0A
 import o
@@ -716,19 +716,54 @@
 atement%3E
+%0A        implements DocumentedNode
  %7B%0A
+%0A
     priv
@@ -953,16 +953,22 @@
         
+final 
 Descript
@@ -1097,32 +1097,37 @@
 ) %7B%0A            
+this.
 description = de
@@ -1174,16 +1174,21 @@
         
+this.
 descript
@@ -1218,16 +1218,22 @@
         
+final 
 Referenc
@@ -1356,32 +1356,37 @@
 ) %7B%0A            
+this.
 reference = refS
@@ -1430,16 +1430,21 @@
         
+this.
 referenc
@@ -1462,32 +1462,46 @@
        %7D%0A    %7D%0A%0A
+    @Override%0A
     public final
@@ -1542,16 +1542,21 @@
  return 
+this.
 descript
@@ -1563,24 +1563,38 @@
 ion;%0A    %7D%0A%0A
+    @Override%0A
     public f
@@ -1637,16 +1637,21 @@
  return 
+this.
 referenc

Implement DocumentedNode interface to RevisionEffectiveStatementImpl for overriding getDescription() and getReference() methods for exposing it to others.