Class Code
- 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCode()
LocalizedString
getDisplayName()
String
getSchemeName()
int
hashCode()
void
setCode(String code)
void
setDisplayName(LocalizedString displayName)
void
setSchemeName(String schemeName)
String
toString()
-
Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-