ca.uhn.hl7v3.sourcegen
Class DataTypeDefinition

java.lang.Object
  extended by ca.uhn.hl7v3.sourcegen.DataTypeDefinition

public class DataTypeDefinition
extends java.lang.Object

Contains information about a RIM data type, sufficient to generate source code for it.

Author:
Bryan Tripp

Constructor Summary
DataTypeDefinition()
          Creates a new instance of DataTypeDefinition
 
Method Summary
static java.lang.String getAssociatedGeneric(java.lang.String instanceJavaName)
          Given a name of the Java class for an Instance RIM data type (i.e.
 ComponentDefinition[] getComponents()
           
 java.lang.String getDescription()
           
 java.lang.String getLongName()
           
 java.lang.String getName()
           
 java.lang.String getSuperClass()
           
 java.lang.String getType()
           
static boolean isInstance(java.lang.String datatypeName)
          Returns true if the given datatype name is an Instance (i.e.
static java.lang.String mapInstanceName(java.lang.String instanceRIMName)
          Given the name of an Instance RIM data type (i.e.
 void setComponents(ComponentDefinition[] components)
           
 void setDescription(java.lang.String description)
           
 void setLongName(java.lang.String longName)
           
 void setName(java.lang.String name)
           
 void setSuperClass(java.lang.String superClass)
           
 void setType(java.lang.String type)
           
static java.lang.String unmapInstanceName(java.lang.String instanceJavaName)
          Performs the reverse mapping to mapInstanceName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypeDefinition

public DataTypeDefinition()
Creates a new instance of DataTypeDefinition

Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setLongName

public void setLongName(java.lang.String longName)

getLongName

public java.lang.String getLongName()

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

setSuperClass

public void setSuperClass(java.lang.String superClass)

getSuperClass

public java.lang.String getSuperClass()

setComponents

public void setComponents(ComponentDefinition[] components)

getComponents

public ComponentDefinition[] getComponents()

mapInstanceName

public static java.lang.String mapInstanceName(java.lang.String instanceRIMName)
Given the name of an Instance RIM data type (i.e. a restriction of a Generic type), provides the Java class name that will be used to represent it.


unmapInstanceName

public static java.lang.String unmapInstanceName(java.lang.String instanceJavaName)
Performs the reverse mapping to mapInstanceName.


getAssociatedGeneric

public static java.lang.String getAssociatedGeneric(java.lang.String instanceJavaName)
Given a name of the Java class for an Instance RIM data type (i.e. a restriction of a Generic type), returns the name of the associated Generic class.


isInstance

public static boolean isInstance(java.lang.String datatypeName)
Returns true if the given datatype name is an Instance (i.e. specialization of a Generic).



Copyright © 2001-2011 University Health Network. All Rights Reserved.