@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class TagLink extends java.lang.Object
Constructor and Description |
---|
TagLink() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
boolean |
equals(java.lang.String vocabularyName,
java.lang.String vocabularyTermName) |
static TagLink |
fromString(java.lang.String tag)
|
java.lang.String |
getVocabulary() |
java.lang.String |
getVocabularyTerm() |
void |
setVocabulary(java.lang.String vocabulary) |
void |
setVocabularyTerm(java.lang.String vocabularyTerm) |
java.lang.String |
toString() |
ValueCollection |
toValueCollection() |
static TagLink |
valueOf(java.lang.String vocabulary,
java.lang.String term)
Creates a new TagLink based on the provided vocabulary name and term. |
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getVocabulary()
@ThingworxExtensionApiMethod(since={6,6}) public void setVocabulary(java.lang.String vocabulary)
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getVocabularyTerm()
@ThingworxExtensionApiMethod(since={6,6}) public void setVocabularyTerm(java.lang.String vocabularyTerm)
@ThingworxExtensionApiMethod(since={6,6}) public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
@ThingworxExtensionApiMethod(since={6,6}) public boolean equals(java.lang.String vocabularyName, java.lang.String vocabularyTermName)
@ThingworxExtensionApiMethod(since={6,6}) public ValueCollection toValueCollection()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String toString()
toString
in class java.lang.Object
@ThingworxExtensionApiMethod(since={6,6}) public static TagLink fromString(java.lang.String tag)
Constructs a new TagLink from its standard string representation format. This is typically of the form "vocabularyName:termName". If the term name is omitted but the name/value delimiter included, then the term will be represented using the unknown value string (???). If the name/value delimiter is not included, the method will throw an IllegalArgumentException.
This method is guaranteed at minimum to return a unique TagLink for each unique vocabulary/term pair.
tag
- the string representation of the TagLink to constructjava.lang.IllegalArgumentException
- if the argument does not conform to the expected tag name format@ThingworxExtensionApiMethod(since={6,6}) public static TagLink valueOf(java.lang.String vocabulary, java.lang.String term)
vocabulary
- the name of the vocabulary containing the termterm
- the term this TagLink representsjava.lang.IllegalArgumentException
- if the vocabulary name is empty