public class Tag extends BaseElement implements IElement
Note on equality- When computing hashCode or equals values for this class, only the
scheme and
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_LABEL |
static String |
ATTR_SCHEME |
static String |
ATTR_TERM |
static String |
HL7_ORG_FHIR_TAG
Convenience constant containing the "http://hl7.org/fhir/tag" scheme value
|
static String |
HL7_ORG_PROFILE_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/profile" scheme value
|
static String |
HL7_ORG_SECURITY_TAG
Convenience constant containing the "http://hl7.org/fhir/tag/security" scheme value
|
| Constructor and Description |
|---|
Tag()
Deprecated.
Tags will become immutable in a future release, so this constructor should not be used.
|
Tag(String theTerm)
Deprecated.
There is no reason to create a tag with a term and not a scheme, so this constructor will be removed
|
Tag(String theScheme,
String theTerm) |
Tag(String theScheme,
String theTerm,
String theLabel) |
Tag(URI theScheme,
URI theTerm,
String theLabel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getLabel() |
String |
getScheme() |
String |
getTerm() |
int |
hashCode() |
boolean |
isEmpty()
Returns
true if either scheme or term is populated. |
Tag |
setLabel(String theLabel)
Deprecated.
Tags will become immutable in a future release of HAPI in order to facilitate
ensuring that the TagList acts as an unordered set. Use the constructor to set this field when creating a new
tag object
|
Tag |
setScheme(String theScheme)
Deprecated.
Tags will become immutable in a future release of HAPI in order to facilitate
ensuring that the TagList acts as an unordered set. Use the constructor to set this field when creating a new
tag object
|
Tag |
setTerm(String theTerm)
Deprecated.
Tags will become immutable in a future release of HAPI in order to facilitate
ensuring that the TagList acts as an unordered set. Use the constructor to set this field when creating a new
tag object
|
String |
toHeaderValue() |
String |
toString() |
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic static final String ATTR_LABEL
public static final String ATTR_SCHEME
public static final String ATTR_TERM
public static final String HL7_ORG_FHIR_TAG
public static final String HL7_ORG_PROFILE_TAG
public static final String HL7_ORG_SECURITY_TAG
@Deprecated public Tag()
@Deprecated public Tag(String theTerm)
public boolean isEmpty()
true if either scheme or term is populated.@Deprecated public Tag setLabel(String theLabel)
@Deprecated public Tag setScheme(String theScheme)
@Deprecated public Tag setTerm(String theTerm)
public String toHeaderValue()
Copyright © 2014–2016 University Health Network. All rights reserved.