org.d2rq.lang
Class MapObject

java.lang.Object
  extended by org.d2rq.lang.MapObject
Direct Known Subclasses:
Configuration, Database, Mapping, ResourceMap, TranslationTable

public abstract class MapObject
extends Object

Abstract base class for classes that represent things in the mapping file.

Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
MapObject(Resource resource)
           
 
Method Summary
abstract  void accept(D2RQMappingVisitor visitor)
           
protected  void assertArgumentNotNull(Object object, Property property, int errorCode)
           
protected  void assertNotYetDefined(Object object, Property property, int errorCode)
           
 String getComment()
           
 Resource resource()
           
 void setComment(String comment)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapObject

public MapObject(Resource resource)
Method Detail

resource

public Resource resource()

getComment

public String getComment()

setComment

public void setComment(String comment)

accept

public abstract void accept(D2RQMappingVisitor visitor)

toString

public String toString()
Overrides:
toString in class Object

assertNotYetDefined

protected void assertNotYetDefined(Object object,
                                   Property property,
                                   int errorCode)

assertArgumentNotNull

protected void assertArgumentNotNull(Object object,
                                     Property property,
                                     int errorCode)