Class TagSearchResult
- java.lang.Object
-
- com.inductiveautomation.ignition.common.tags.search.TagSearchResult
-
- All Implemented Interfaces:
SearchResult
,java.io.Serializable
public class TagSearchResult extends java.lang.Object implements SearchResult
- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROVIDER_NAME
-
Constructor Summary
Constructors Constructor Description TagSearchResult(TagPath tagPath, java.lang.String subPropId, Property<?> property, java.lang.Object propVal, boolean isMutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocation()
The name of the entity where this result is found.java.lang.String
getName()
The name of the object that matches the search pattern.Property<?>
getProperty()
java.lang.String
getSearchProviderName()
The name of the search provider that created this result.java.lang.String
getSubPropId()
Uniquely identifies a property in a list of complex properties, such as alarms.TagPath
getTagPath()
The tag path without any propertiesjava.lang.String
getText()
Gets the text representation of the search result.java.lang.Object
getValue()
boolean
isMutable()
java.lang.String
toString()
-
-
-
Field Detail
-
PROVIDER_NAME
public static final java.lang.String PROVIDER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSearchProviderName
public java.lang.String getSearchProviderName()
Description copied from interface:SearchResult
The name of the search provider that created this result.- Specified by:
getSearchProviderName
in interfaceSearchResult
-
getLocation
public java.lang.String getLocation()
Description copied from interface:SearchResult
The name of the entity where this result is found. Used in the results display to help distinguish similar items. For something like a tag property, the owner name is the path to the tag property- Specified by:
getLocation
in interfaceSearchResult
-
getName
public java.lang.String getName()
Description copied from interface:SearchResult
The name of the object that matches the search pattern. In other words, a description of the element inside the owner, such as "Name", or "Expression". For something like a tag, the name is the tag property where the search pattern was found.- Specified by:
getName
in interfaceSearchResult
-
getText
public java.lang.String getText()
Description copied from interface:SearchResult
Gets the text representation of the search result. This is what will be used for the "search".- Specified by:
getText
in interfaceSearchResult
-
isMutable
public boolean isMutable()
- Specified by:
isMutable
in interfaceSearchResult
- Returns:
- true if the returned item can be modified via a replace operation
-
getTagPath
public TagPath getTagPath()
The tag path without any properties
-
getProperty
public Property<?> getProperty()
-
getValue
public java.lang.Object getValue()
-
getSubPropId
public java.lang.String getSubPropId()
Uniquely identifies a property in a list of complex properties, such as alarms. Use "" for standard properties.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-