net.sourceforge.nrl.parser.type
Class TypeMappingEntry

java.lang.Object
  extended by net.sourceforge.nrl.parser.type.TypeMappingEntry

public class TypeMappingEntry
extends Object

An entry for the TypeMapping class. A triplet that maps a package name (can be * for any) and a model element name to an internal type. See the mapping class for more details.


Constructor Summary
TypeMappingEntry(String packageName, String modelElementName, NRLDataType type)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getModelElementName()
          Return the model element name we're mapping.
 String getPackageName()
          Return the package name.
 NRLDataType getType()
          Return the internal data type this maps to.
 int hashCode()
           
 void setModelElementName(String modelElementName)
          Set the model element name
 void setPackageName(String packageName)
          Set the package name
 void setType(NRLDataType type)
          Set the internal type
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMappingEntry

public TypeMappingEntry(String packageName,
                        String modelElementName,
                        NRLDataType type)
Method Detail

getPackageName

public String getPackageName()
Return the package name. Can be * for "any" package.

Returns:
the package name

getType

public NRLDataType getType()
Return the internal data type this maps to. One of the constants from NRLDataType.

Returns:
the internal type

getModelElementName

public String getModelElementName()
Return the model element name we're mapping.

Returns:
the model element name

setModelElementName

public void setModelElementName(String modelElementName)
Set the model element name

Parameters:
modelElementName - the new name

setPackageName

public void setPackageName(String packageName)
Set the package name

Parameters:
packageName - the new name

setType

public void setType(NRLDataType type)
Set the internal type

Parameters:
type - the type

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2006-2010 Christian Nentwich and others