public final class ValueSet extends Object
| Constructor and Description |
|---|
ValueSet(String id,
String displayName,
OrderedValue lowerBound,
OrderedValue upperBound,
SourceId sourceId) |
ValueSet(String id,
String displayName,
ValueSetElement[] valueSetElements,
boolean ordered,
SourceId sourceId)
Instantiates a new value set with the specified values (value set
elements).
|
ValueSet(String id,
String displayName,
ValueSetElement[] valueSetElements,
SourceId sourceId) |
| Modifier and Type | Method and Description |
|---|---|
String |
abbrevDisplayName(Value value)
Returns an abbreviated display name for the specified value, if one is
defined.
|
ValueSetBuilder |
asBuilder() |
String |
displayName(Value value)
Returns a display name for the specified value, if one is defined.
|
String |
getDisplayName() |
String |
getId()
Returns the value set's unique identifier.
|
OrderedValue |
getLowerBound()
Gets the lower bound of this value set, if specified.
|
SourceId |
getSourceId()
Returns the source of this value set.
|
OrderedValue |
getUpperBound()
Gets the upper bound of this value set, if specified.
|
ValueSetElement[] |
getValueSetElements()
Gets the elements of this value set, if specified.
|
boolean |
isInValueSet(Value value)
Returns whether the specified value is in the value set.
|
boolean |
isOrdered() |
String |
toString() |
public ValueSet(String id, String displayName, OrderedValue lowerBound, OrderedValue upperBound, SourceId sourceId)
public ValueSet(String id, String displayName, ValueSetElement[] valueSetElements, SourceId sourceId)
public ValueSet(String id, String displayName, ValueSetElement[] valueSetElements, boolean ordered, SourceId sourceId)
valueSetElements - a ValueSetElement[]. No duplicate
ValueSetElements are allowed.public String getId()
String.public String getDisplayName()
public SourceId getSourceId()
SourceId, guaranteed not null.public ValueSetElement[] getValueSetElements()
ordered property has value true, then the
order in which the value set elements are returned is significant. If
false, it is not.ValueSetElement[]. Guaranteed not null.public boolean isOrdered()
public OrderedValue getLowerBound()
OrderedValue.public OrderedValue getUpperBound()
OrderedValue.public boolean isInValueSet(Value value)
value - a Value. Cannot be null.true or false.public String displayName(Value value)
public String abbrevDisplayName(Value value)
public ValueSetBuilder asBuilder()
Copyright © 2012–2017 Emory University. All rights reserved.