public class BasicTagPath extends AbstractTagPath implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<java.lang.String> |
EMPTY_LIST |
protected TagPath |
parent |
protected java.util.List<java.lang.String> |
pathParts |
protected TagProp |
prop |
protected java.lang.String |
source |
protected java.lang.String |
system |
Constructor and Description |
---|
BasicTagPath(java.lang.String source) |
BasicTagPath(java.lang.String source,
java.util.List<java.lang.String> pathParts)
Creates a tag path to a folder.
|
BasicTagPath(java.lang.String source,
java.util.List<java.lang.String> pathParts,
TagProp prop) |
BasicTagPath(java.lang.String source,
java.lang.String system)
Creates a tag path to a source folder
|
BasicTagPath(java.lang.String source,
java.lang.String system,
java.util.List<java.lang.String> pathParts)
Creates a tag path to a folder
|
BasicTagPath(java.lang.String source,
java.lang.String system,
java.util.List<java.lang.String> pathParts,
TagProp prop)
Creates a tag path to a tag's property
|
Modifier and Type | Method and Description |
---|---|
static TagPath |
append(TagPath root,
java.lang.String name)
Extends the tag path by the given name.
|
static TagPath |
append(TagPath root,
TagPath other)
Takes a folder path, and appends the second tag path on to it.
|
static BasicTagPath |
copy(TagPath path) |
protected TagPath |
createDerivedTagPath(TagPath parent,
java.lang.String source,
java.lang.String system,
java.util.List<java.lang.String> parts,
TagProp prop) |
TagPath |
getChildPath(java.lang.String nextId)
Returns a path below the current path.
|
TagPath |
getChildPath(java.lang.String nextId,
boolean folder)
Deprecated.
|
java.lang.String |
getItemName()
Returns the name of the item at the end of the path that this path points to.
|
java.lang.String |
getLastPathComponent()
Convenience function to return the last path element.
|
TagPath |
getParentPath()
Returns the path to the parent folder.
|
java.lang.String |
getPathComponent(int i)
Returns the path element at the specified location.
|
int |
getPathLength()
Returns the number of elements in the path, which can be retrieved through getPathComponent().
|
TagProp |
getProperty()
Returns the type of property in the tag that this path is referencing.
|
java.lang.String |
getSource()
Returns the source for this tag path.
|
java.lang.String |
getSystem()
Returns which system this tag is being driven by.
|
boolean |
isFolder()
Deprecated.
|
static BasicTagPath |
renameParentFolder(TagPath path,
TagPath newParent)
Creates a path equal to the original, but with the new name specified by newParent.
|
protected void |
setParent(TagPath value) |
protected void |
setPathParts(java.util.List<java.lang.String> parts) |
static BasicTagPath |
subPath(TagPath path,
int start,
int len)
Returns a sub portion of the path.
|
_createPath, calculateCRC, compareTo, equals, hashCode, isAncestorOf, toString, toStringFull, toStringPartial
protected static final java.util.List<java.lang.String> EMPTY_LIST
protected java.util.List<java.lang.String> pathParts
protected java.lang.String source
protected java.lang.String system
protected TagProp prop
protected transient TagPath parent
public BasicTagPath(java.lang.String source, java.util.List<java.lang.String> pathParts, TagProp prop)
public BasicTagPath(java.lang.String source, java.lang.String system, java.util.List<java.lang.String> pathParts, TagProp prop)
public BasicTagPath(java.lang.String source, java.lang.String system, java.util.List<java.lang.String> pathParts)
public BasicTagPath(java.lang.String source, java.util.List<java.lang.String> pathParts)
public BasicTagPath(java.lang.String source, java.lang.String system)
public BasicTagPath(java.lang.String source)
public static BasicTagPath renameParentFolder(TagPath path, TagPath newParent)
public static TagPath append(TagPath root, TagPath other)
public static TagPath append(TagPath root, java.lang.String name)
public static BasicTagPath copy(TagPath path)
public static BasicTagPath subPath(TagPath path, int start, int len)
protected void setPathParts(java.util.List<java.lang.String> parts)
public java.lang.String getItemName()
TagPath
getItemName
in interface TagPath
public java.lang.String getLastPathComponent()
Path
getLastPathComponent
in interface Path
public TagPath getParentPath()
getParentPath
in interface Path
getParentPath
in interface TagPath
protected void setParent(TagPath value)
public TagProp getProperty()
TagPath
getProperty
in interface TagPath
@Deprecated public boolean isFolder()
TagPath
public java.lang.String getSource()
TagPath
public java.lang.String getSystem()
TagPath
public java.lang.String getPathComponent(int i)
Path
getPathComponent
in interface Path
public int getPathLength()
Path
getPathLength
in interface Path
@Deprecated public TagPath getChildPath(java.lang.String nextId, boolean folder)
getChildPath
in interface TagPath
public TagPath getChildPath(java.lang.String nextId)
TagPath
getChildPath
in interface TagPath