Class BasicResult
- java.lang.Object
-
- com.inductiveautomation.ignition.common.browsing.BasicResult
-
- All Implemented Interfaces:
Result,java.io.Serializable
- Direct Known Subclasses:
TagResult
public class BasicResult extends java.lang.Object implements Result
A basic implementation of Result that can be used for browsing operations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicResult()BasicResult(Result copy)BasicResult(QualifiedPath path, boolean hasChildren)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetDisplayPath()Returns the friendlier "display path" for this result.QualifiedPathgetPath()Returns the qualified path of this result.java.lang.StringgetType()If the type is specifically defined, it is returned.booleanhasChildren()Indicates that this result object is itself browsable.voidsetDisplayPath(Path displayPath)voidsetHasChildren(boolean hasChildren)voidsetPath(QualifiedPath path)voidsetType(java.lang.String type)java.lang.StringtoString()
-
-
-
Constructor Detail
-
BasicResult
public BasicResult()
-
BasicResult
public BasicResult(Result copy)
-
BasicResult
public BasicResult(QualifiedPath path, boolean hasChildren)
-
-
Method Detail
-
getDisplayPath
public Path getDisplayPath()
Description copied from interface:ResultReturns the friendlier "display path" for this result. May be null, and not necessarily unique.- Specified by:
getDisplayPathin interfaceResult
-
setDisplayPath
public void setDisplayPath(Path displayPath)
-
getPath
public QualifiedPath getPath()
Description copied from interface:ResultReturns the qualified path of this result.
-
setPath
public void setPath(QualifiedPath path)
-
getType
public java.lang.String getType()
If the type is specifically defined, it is returned. Otherwise, the last path component id is returned.
-
setType
public void setType(java.lang.String type)
-
hasChildren
public boolean hasChildren()
Description copied from interface:ResultIndicates that this result object is itself browsable.- Specified by:
hasChildrenin interfaceResult
-
setHasChildren
public void setHasChildren(boolean hasChildren)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-