Class BasicTagPath
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.model.AbstractTagPath
-
- com.inductiveautomation.ignition.common.sqltags.parser.BasicTagPath
-
@Deprecated public class BasicTagPath extends AbstractTagPath implements java.io.Serializable
Deprecated.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.List<java.lang.String>
EMPTY_LIST
Deprecated.protected TagPath
parent
Deprecated.protected java.util.List<java.lang.String>
pathParts
Deprecated.protected TagProp
prop
Deprecated.protected java.lang.String
source
Deprecated.protected java.lang.String
system
Deprecated.
-
Constructor Summary
Constructors Constructor Description BasicTagPath(java.lang.String source)
Deprecated.BasicTagPath(java.lang.String source, java.lang.String system)
Deprecated.Creates a tag path to a source folderBasicTagPath(java.lang.String source, java.lang.String system, java.util.List<java.lang.String> pathParts)
Deprecated.Creates a tag path to a folderBasicTagPath(java.lang.String source, java.lang.String system, java.util.List<java.lang.String> pathParts, TagProp prop)
Deprecated.Creates a tag path to a tag's propertyBasicTagPath(java.lang.String source, java.util.List<java.lang.String> pathParts)
Deprecated.Creates a tag path to a folder.BasicTagPath(java.lang.String source, java.util.List<java.lang.String> pathParts, TagProp prop)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TagPath
append(TagPath root, TagPath other)
Deprecated.Takes a folder path, and appends the second tag path on to it.static TagPath
append(TagPath root, java.lang.String name)
Deprecated.Extends the tag path by the given name.static BasicTagPath
copy(TagPath path)
Deprecated.protected TagPath
createDerivedTagPath(TagPath parent, java.lang.String source, java.lang.String system, java.util.List<java.lang.String> parts, TagProp prop)
Deprecated.TagPath
getChildPath(java.lang.String nextId)
Deprecated.Returns a path below the current path.TagPath
getChildPath(java.lang.String nextId, boolean folder)
Deprecated.java.lang.String
getItemName()
Deprecated.Returns the name of the item at the end of the path that this path points to.java.lang.String
getLastPathComponent()
Deprecated.Convenience function to return the last path element.TagPath
getParentPath()
Deprecated.Returns the path to the parent folder.java.lang.String
getPathComponent(int i)
Deprecated.Returns the path element at the specified location.int
getPathLength()
Deprecated.Returns the number of elements in the path, which can be retrieved through getPathComponent().TagProp
getProperty()
Deprecated.Returns the type of property in the tag that this path is referencing.java.lang.String
getSource()
Deprecated.Returns the source for this tag path.java.lang.String
getSystem()
Deprecated.Returns which system this tag is being driven by.boolean
isFolder()
Deprecated.static BasicTagPath
renameParentFolder(TagPath path, TagPath newParent)
Deprecated.Creates a path equal to the original, but with the new name specified by newParent.protected void
setParent(TagPath value)
Deprecated.protected void
setPathParts(java.util.List<java.lang.String> parts)
Deprecated.static BasicTagPath
subPath(TagPath path, int start, int len)
Deprecated.Returns a sub portion of the path.-
Methods inherited from class com.inductiveautomation.ignition.common.sqltags.model.AbstractTagPath
_createPath, compareTo, equals, hashCode, isAncestorOf, toString, toStringFull, toStringPartial
-
-
-
-
Field Detail
-
EMPTY_LIST
protected static final java.util.List<java.lang.String> EMPTY_LIST
Deprecated.
-
pathParts
protected java.util.List<java.lang.String> pathParts
Deprecated.
-
source
protected java.lang.String source
Deprecated.
-
system
protected java.lang.String system
Deprecated.
-
prop
protected TagProp prop
Deprecated.
-
parent
protected transient TagPath parent
Deprecated.
-
-
Constructor Detail
-
BasicTagPath
public BasicTagPath(java.lang.String source, java.util.List<java.lang.String> pathParts, TagProp prop)
Deprecated.
-
BasicTagPath
public BasicTagPath(java.lang.String source, java.lang.String system, java.util.List<java.lang.String> pathParts, TagProp prop)
Deprecated.Creates a tag path to a tag's property
-
BasicTagPath
public BasicTagPath(java.lang.String source, java.lang.String system, java.util.List<java.lang.String> pathParts)
Deprecated.Creates a tag path to a folder
-
BasicTagPath
public BasicTagPath(java.lang.String source, java.util.List<java.lang.String> pathParts)
Deprecated.Creates a tag path to a folder. System will be null.
-
BasicTagPath
public BasicTagPath(java.lang.String source, java.lang.String system)
Deprecated.Creates a tag path to a source folder
-
BasicTagPath
public BasicTagPath(java.lang.String source)
Deprecated.
-
-
Method Detail
-
renameParentFolder
public static BasicTagPath renameParentFolder(TagPath path, TagPath newParent)
Deprecated.Creates a path equal to the original, but with the new name specified by newParent. The parent cannot change length, it can only be renamed.
-
append
public static TagPath append(TagPath root, TagPath other)
Deprecated.Takes a folder path, and appends the second tag path on to it. The returned tag will have the source and system of the root path, unless the root path source/system are null (not just empty string).
-
append
public static TagPath append(TagPath root, java.lang.String name)
Deprecated.Extends the tag path by the given name. Similar to getChildPath, however this static version will accept a null value for parent, and will generate a new path with just the name if necessary.
-
copy
public static BasicTagPath copy(TagPath path)
Deprecated.
-
subPath
public static BasicTagPath subPath(TagPath path, int start, int len)
Deprecated.Returns a sub portion of the path. If the specified length covers the last component, the source path's property will be included in the resulting path as well.
-
setPathParts
protected void setPathParts(java.util.List<java.lang.String> parts)
Deprecated.
-
getItemName
public java.lang.String getItemName()
Deprecated.Description copied from interface:TagPath
Returns the name of the item at the end of the path that this path points to. This will be a tag name or a folder name.- Specified by:
getItemName
in interfaceTagPath
-
getLastPathComponent
public java.lang.String getLastPathComponent()
Deprecated.Description copied from interface:Path
Convenience function to return the last path element.- Specified by:
getLastPathComponent
in interfacePath
-
getParentPath
public TagPath getParentPath()
Deprecated.Returns the path to the parent folder.- Specified by:
getParentPath
in interfacePath
- Specified by:
getParentPath
in interfaceTagPath
-
setParent
protected void setParent(TagPath value)
Deprecated.
-
getProperty
public TagProp getProperty()
Deprecated.Description copied from interface:TagPath
Returns the type of property in the tag that this path is referencing.- Specified by:
getProperty
in interfaceTagPath
-
isFolder
@Deprecated public boolean isFolder()
Deprecated.
-
getSource
public java.lang.String getSource()
Deprecated.Description copied from interface:TagPath
Returns the source for this tag path. Some tag paths don't have a source, indicating that they may be a relative, or they may wish to use a default source.
-
getSystem
public java.lang.String getSystem()
Deprecated.Description copied from interface:TagPath
Returns which system this tag is being driven by. If null, the system name won't be used to distinguish tags.
-
getPathComponent
public java.lang.String getPathComponent(int i)
Deprecated.Description copied from interface:Path
Returns the path element at the specified location.- Specified by:
getPathComponent
in interfacePath
-
getPathLength
public int getPathLength()
Deprecated.Description copied from interface:Path
Returns the number of elements in the path, which can be retrieved through getPathComponent().- Specified by:
getPathLength
in interfacePath
-
getChildPath
@Deprecated public TagPath getChildPath(java.lang.String nextId, boolean folder)
Deprecated.
-
getChildPath
public TagPath getChildPath(java.lang.String nextId)
Deprecated.Description copied from interface:TagPath
Returns a path below the current path.- Specified by:
getChildPath
in interfaceTagPath
-
-