ca.infoway.messagebuilder.datatype
Class Hl7TypeName

Package class diagram package Hl7TypeName
java.lang.Object
  extended by ca.infoway.messagebuilder.datatype.Hl7TypeName

public class Hl7TypeName
extends Object

A class to hold an HL7 type name and its generic HL7 type parameters. Includes some utility methods.

Author:
Intelliware Development

Method Summary
 boolean equals(Object obj)
          Returns whether the supplied object is equal to this object.
 List<Hl7TypeName> getParameters()
          Returns the generic parameters of this hl7 type.
 String getRootName()
          Returns the root name of this hl7 type name.
 String getUnparameterizedName()
          Returns the name of this hl7 type.
 String getUnspecializedName()
          Returns the unspecialized name for this hl7 type name.
 int hashCode()
          Returns the hashcode for this object.
static Hl7TypeName parse(String typeName)
          Constructs an Hl7TypeName object from the given string.
 String toString()
          Builds a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()

Builds a string representation of this object.

Overrides:
toString in class Object
Returns:
the string representation of this object.

getUnspecializedName

public String getUnspecializedName()

Returns the unspecialized name for this hl7 type name.

Returns:
the unspecialized name

getUnparameterizedName

public String getUnparameterizedName()

Returns the name of this hl7 type.

Returns:
the name of this hl7 type.

getParameters

public List<Hl7TypeName> getParameters()

Returns the generic parameters of this hl7 type.

Returns:
the generic parameters of this hl7 type.

parse

public static Hl7TypeName parse(String typeName)

Constructs an Hl7TypeName object from the given string.

Parameters:
typeName - the type name
Returns:
the constructed Hl7TypeName

getRootName

public String getRootName()

Returns the root name of this hl7 type name.

Returns:
the root name of this hl7 type name

equals

public boolean equals(Object obj)

Returns whether the supplied object is equal to this object.

Overrides:
equals in class Object
Parameters:
obj - the object to compare
Returns:
whether the supplied object is equal to this object.

hashCode

public int hashCode()

Returns the hashcode for this object.

Overrides:
hashCode in class Object
Returns:
the hashcode for this object


Copyright © 2013. All Rights Reserved.