java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<CE>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Code
All Implemented Interfaces:
Serializable

public class Code extends Hl7v2Based<CE>
Represents a code.

All members of this class are allowed to be null.

Author:
Jens Riemschneider, Dmytro Rud
See Also:
  • Constructor Details

    • Code

      public Code()
      Constructs a code.
    • Code

      public Code(CE ce)
      Constructs a code.
    • Code

      public Code(String code, LocalizedString displayName, String schemeName)
      Constructs a code.
      Parameters:
      code - the value of the code.
      displayName - the display name of the code.
      schemeName - the schema of the code.
  • Method Details

    • getCode

      public String getCode()
      Returns:
      the value of this code.
    • setCode

      public void setCode(String code)
      Parameters:
      code - the value of this code.
    • getDisplayName

      public LocalizedString getDisplayName()
      Returns:
      the display name of this code.
    • setDisplayName

      public void setDisplayName(LocalizedString displayName)
      Parameters:
      displayName - the display name of this code.
    • getSchemeName

      public String getSchemeName()
      Returns:
      the schema of this code.
    • setSchemeName

      public void setSchemeName(String schemeName)
      Parameters:
      schemeName - the schema of this code.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object