fr.umlv.tatoo.cc.parser.grammar
Class VersionDecl

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.generator.AbstractObjectId
      extended by fr.umlv.tatoo.cc.parser.grammar.VersionDecl
All Implemented Interfaces:
ObjectId

public class VersionDecl
extends AbstractObjectId

Represents a version of a production.

Author:
Remi Forax

Constructor Summary
VersionDecl(String id, VersionDecl parent)
          Create a vesion with an id and a parent version.
 
Method Summary
 VersionDecl getParent()
          Returns the parent version.
 
Methods inherited from class fr.umlv.tatoo.cc.common.generator.AbstractObjectId
getId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionDecl

public VersionDecl(String id,
                   VersionDecl parent)
Create a vesion with an id and a parent version.

Parameters:
id -
parent -
Method Detail

getParent

public VersionDecl getParent()
Returns the parent version.

Returns:
the parent version or null if it's the root version.