public class TagList extends Object implements Set<Tag>, Serializable, IBase
LinkedHashSet, so the order of
added tags will be consistent, but duplicates will not be preserved.
Thread safety: This class is not thread safe
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_CATEGORY |
static String |
ELEMENT_NAME |
static String |
ELEMENT_NAME_LC |
| Constructor and Description |
|---|
TagList()
Constructor
|
TagList(TagList theTags)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Tag theE) |
boolean |
addAll(Collection<? extends Tag> theC) |
Tag |
addTag()
Deprecated.
Tags wil become immutable in a future release of HAPI, so
addTag(String, String, String)
should be used instead |
Tag |
addTag(String theScheme,
String theTerm)
Add a new tag instance
|
Tag |
addTag(String theScheme,
String theTerm,
String theLabel)
Add a new tag instance
|
void |
clear() |
boolean |
contains(Object theO) |
boolean |
containsAll(Collection<?> theC) |
boolean |
equals(Object obj) |
Tag |
get(int theIndex)
Returns the tag at a given index - Note that the TagList is backed by a
LinkedHashSet, so the order of
added tags will be consistent, but duplicates will not be preserved. |
List<String> |
getFormatCommentsPost()
NOT SUPPORTED - Throws
UnsupportedOperationException |
List<String> |
getFormatCommentsPre()
NOT SUPPORTED - Throws
UnsupportedOperationException |
Tag |
getTag(String theScheme,
String theTerm) |
List<Tag> |
getTagsWithScheme(String theScheme) |
boolean |
hasFormatComment()
Returns false
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Tag> |
iterator() |
boolean |
remove(Object theO) |
boolean |
removeAll(Collection<?> theC) |
boolean |
retainAll(Collection<?> theC) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] theA) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streampublic static final String ATTR_CATEGORY
public static final String ELEMENT_NAME
public static final String ELEMENT_NAME_LC
public TagList()
public boolean addAll(Collection<? extends Tag> theC)
@Deprecated public Tag addTag()
addTag(String, String, String)
should be used insteadpublic Tag addTag(String theScheme, String theTerm)
theScheme - The tag scheme (the system)theTerm - The tag term (the code)public Tag addTag(String theScheme, String theTerm, String theLabel)
theScheme - The tag schemetheTerm - The tag termtheLabel - The tag labelpublic void clear()
public boolean containsAll(Collection<?> theC)
containsAll in interface Collection<Tag>containsAll in interface Set<Tag>public Tag get(int theIndex)
LinkedHashSet, so the order of
added tags will be consistent, but duplicates will not be preserved.public List<Tag> getTagsWithScheme(String theScheme)
public int hashCode()
public boolean isEmpty()
public boolean removeAll(Collection<?> theC)
public boolean retainAll(Collection<?> theC)
public int size()
public <T> T[] toArray(T[] theA)
public boolean hasFormatComment()
hasFormatComment in interface IBasepublic List<String> getFormatCommentsPre()
UnsupportedOperationExceptiongetFormatCommentsPre in interface IBasepublic List<String> getFormatCommentsPost()
UnsupportedOperationExceptiongetFormatCommentsPost in interface IBaseCopyright © 2014–2017 University Health Network. All rights reserved.