org.hl7.meta
Interface JavaIts

All Known Implementing Classes:
JavaItsImpl

public interface JavaIts

Provides Java ITS specific functionality.

Author:
Jerry Joyce

Method Summary
 java.lang.reflect.Method getAssociationAdder(java.lang.Class rimClass, java.lang.String associationName, java.lang.String distalRimClass)
          Returns the adder method for the given association.
 java.lang.reflect.Method getAssociationSetter(java.lang.Class rimClass, java.lang.String associationName, java.lang.String distalRimClass)
          Returns the setter method for the given association.
 java.lang.reflect.Method getAttributeSetter(java.lang.Class rimClass, java.lang.String attributeName, Datatype dt)
          Returns the setter method for the given attribute.
 java.lang.Class getDatatypeInterface(Datatype datatype)
          Returns the Java interface for the given RIM datatype.
 java.lang.reflect.Method getFeatureGetter(java.lang.Class rimClass, java.lang.String featureName)
          Returns the getter method for the given attribute or association (feature).
 java.lang.Class getRIMDataType(RimObject rimObject, java.lang.String methodNameStem)
           
 java.lang.Class getRimImplementation(java.lang.String rimName)
          Returns the Java class implementing the given RIM class.
 java.lang.Class getRimInterface(java.lang.String rimClass)
          Returns the Java interface for the given RIM class.
 

Method Detail

getDatatypeInterface

java.lang.Class getDatatypeInterface(Datatype datatype)
                                     throws java.lang.ClassNotFoundException
Returns the Java interface for the given RIM datatype.

Parameters:
datatype - RIM datatype
Returns:
corresponding Java interface
Throws:
java.lang.ClassNotFoundException - if the Java interface cannot be found

getRimInterface

java.lang.Class getRimInterface(java.lang.String rimClass)
                                throws java.lang.ClassNotFoundException
Returns the Java interface for the given RIM class.

Parameters:
rimClass - RIM class
Returns:
corresponding Java interface
Throws:
java.lang.ClassNotFoundException - if the Java interface cannot be found

getRimImplementation

java.lang.Class getRimImplementation(java.lang.String rimName)
                                     throws java.lang.ClassNotFoundException
Returns the Java class implementing the given RIM class.

Parameters:
rimName - RIM class name
Returns:
corresponding Java class
Throws:
java.lang.ClassNotFoundException - if the Java class cannot be found

getFeatureGetter

java.lang.reflect.Method getFeatureGetter(java.lang.Class rimClass,
                                          java.lang.String featureName)
                                          throws java.lang.NoSuchMethodException
Returns the getter method for the given attribute or association (feature).

Parameters:
rimClass - RIM class implementation
featureName - RIM feature name
Returns:
corresponding Java getter method
Throws:
java.lang.NoSuchMethodException - if there is no such getter

getAttributeSetter

java.lang.reflect.Method getAttributeSetter(java.lang.Class rimClass,
                                            java.lang.String attributeName,
                                            Datatype dt)
                                            throws java.lang.ClassNotFoundException,
                                                   java.lang.NoSuchMethodException
Returns the setter method for the given attribute.

Parameters:
rimClass - RIM class implementation
attributeName - RIM attribute name
dt - RIM datatype
Returns:
corresponding Java setter method
Throws:
java.lang.NoSuchMethodException - if there is no such setter
java.lang.ClassNotFoundException

getAssociationSetter

java.lang.reflect.Method getAssociationSetter(java.lang.Class rimClass,
                                              java.lang.String associationName,
                                              java.lang.String distalRimClass)
                                              throws java.lang.ClassNotFoundException,
                                                     java.lang.NoSuchMethodException
Returns the setter method for the given association.

Parameters:
rimClass - RIM class implementation
associationName - RIM association name
distalRimClass - Distal RIM class name
Returns:
corresponding Java setter method
Throws:
java.lang.NoSuchMethodException - if there is no such setter
java.lang.ClassNotFoundException

getAssociationAdder

java.lang.reflect.Method getAssociationAdder(java.lang.Class rimClass,
                                             java.lang.String associationName,
                                             java.lang.String distalRimClass)
                                             throws java.lang.ClassNotFoundException,
                                                    java.lang.NoSuchMethodException
Returns the adder method for the given association.

Parameters:
rimClass - RIM class implementation
associationName - RIM association name
distalRimClass - Distal RIM class name
Returns:
corresponding Java adder method
Throws:
java.lang.NoSuchMethodException - if there is no such setter
java.lang.ClassNotFoundException

getRIMDataType

java.lang.Class getRIMDataType(RimObject rimObject,
                               java.lang.String methodNameStem)
                               throws java.lang.NoSuchMethodException
Parameters:
rimObject -
methodNameStem -
Returns:
Throws:
java.lang.NoSuchMethodException