@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class TagCollection extends java.util.ArrayList<TagLink> implements IDiffableObject
Constructor and Description |
---|
TagCollection() |
Modifier and Type | Method and Description |
---|---|
void |
AddTag(java.lang.String vocabulary,
java.lang.String vocabularyTerm) |
void |
addTag(TagLink newTag) |
void |
addTags(TagCollection newTags) |
static boolean |
areEquivalent(TagCollection t1,
TagCollection t2) |
TagCollection |
clone() |
int |
compareTo(TagCollection tags) |
boolean |
contains(TagLink tagLink) |
java.lang.Boolean |
ContainsTerm(java.lang.String vocabularyName,
java.lang.String vocabularyTerm) |
static TagCollection |
fromJSON(org.json.JSONArray jsonArray) |
static TagCollection |
fromString(java.lang.String serializedTags) |
int |
getLength() |
java.lang.String |
GetTerm(java.lang.String vocabularyName) |
ScriptFriendlyArrayList<java.lang.String> |
GetTerms(java.lang.String vocabularyName) |
int |
indexOf(TagLink tagLink) |
boolean |
matches(TagCollection tagsToCompare) |
boolean |
matchesOR(TagCollection tagsToCompare) |
void |
RemoveTag(java.lang.String vocabulary,
java.lang.String vocabularyTerm) |
void |
removeTag(TagLink tag) |
org.json.JSONArray |
toJSON() |
java.lang.String |
toString() |
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
@ThingworxExtensionApiMethod(since={6,6}) public TagCollection()
@ThingworxExtensionApiMethod(since={6,6}) public static TagCollection fromString(java.lang.String serializedTags) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public boolean contains(TagLink tagLink)
@ThingworxExtensionApiMethod(since={6,6}) public int indexOf(TagLink tagLink)
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean ContainsTerm(java.lang.String vocabularyName, java.lang.String vocabularyTerm)
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetTerm(java.lang.String vocabularyName)
@ThingworxExtensionApiMethod(since={6,6}) public ScriptFriendlyArrayList<java.lang.String> GetTerms(java.lang.String vocabularyName)
@ThingworxExtensionApiMethod(since={6,6}) public void AddTag(java.lang.String vocabulary, java.lang.String vocabularyTerm)
@ThingworxExtensionApiMethod(since={6,6}) public void removeTag(TagLink tag)
@ThingworxExtensionApiMethod(since={6,6}) public void RemoveTag(java.lang.String vocabulary, java.lang.String vocabularyTerm)
@ThingworxExtensionApiMethod(since={6,6}) public void addTag(TagLink newTag)
@ThingworxExtensionApiMethod(since={6,6}) public void addTags(TagCollection newTags)
@ThingworxExtensionApiMethod(since={6,6}) public int getLength()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String toString()
toString
in class java.util.AbstractCollection<TagLink>
@ThingworxExtensionApiMethod(since={6,6}) public boolean matches(TagCollection tagsToCompare)
@ThingworxExtensionApiMethod(since={6,6}) public boolean matchesOR(TagCollection tagsToCompare)
@ThingworxExtensionApiMethod(since={6,6}) public int compareTo(TagCollection tags)
@ThingworxExtensionApiMethod(since={6,6}) public TagCollection clone()
clone
in class java.util.ArrayList<TagLink>
@ThingworxExtensionApiMethod(since={6,6}) public static boolean areEquivalent(TagCollection t1, TagCollection t2)
@ThingworxExtensionApiMethod(since={6,6}) public static TagCollection fromJSON(org.json.JSONArray jsonArray) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONArray toJSON() throws java.lang.Exception
java.lang.Exception
- If an error occurs