fr.umlv.tatoo.cc.common.generator
Class AbstractObjectId

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.generator.AbstractObjectId
All Implemented Interfaces:
ObjectId
Direct Known Subclasses:
AbstractActionDecl, NonTerminalDecl, Priority, ProductionDecl, RuleDecl, StateMetadataDecl, TerminalDecl, VersionDecl

public abstract class AbstractObjectId
extends Object
implements ObjectId

Abstract class for all object that have a name. This

Author:
Remi

Constructor Summary
protected AbstractObjectId(String id)
          Create an object with an id.
 
Method Summary
 String getId()
          Returns the identifier of the current object
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractObjectId

protected AbstractObjectId(String id)
Create an object with an id.

Parameters:
id - the id of the object.
Method Detail

getId

public String getId()
Description copied from interface: ObjectId
Returns the identifier of the current object

Specified by:
getId in interface ObjectId
Returns:
the identifier of the object.

toString

public String toString()
Overrides:
toString in class Object