Package com._1c.g5.v8.dt.dcs.path
Class DcsPath
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.path.DcsPathBase
-
- com._1c.g5.v8.dt.dcs.path.DcsPath
-
public class DcsPath extends DcsPathBase
Путь системы компоновки данных
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.dcs.path.DcsPathBase
content
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DcsPathappend(DcsPath path)Добавить путьDcsPathappend(DcsPathPart pathPart)Добавить часть путиDcsPathcombine(List<DcsPathPart> parts)Сформировать путь из частейDcsPathgetChildPath()Получить путь потомкаbooleanisChildPath(DcsPath path)Check whether given path is child for thisbooleanisEmpty()Проверка на пустотуbooleanisEndWith(DcsPath testPath)Проверить, заканчивается ли путь на указанный путьDcsPathnearParentPath()Получить родительский путьvoidsplit(List<DcsPathPart> parts)Разбить на частиvoidsplit2(List<DcsName> parts2)Разбить на частиbooleansplitNotSingle(List<DcsPathPart> parts)Разбить строку на несколько, только в случае если строка не была одиночной-
Methods inherited from class com._1c.g5.v8.dt.dcs.path.DcsPathBase
equals, getContent, hashCode, setContent, toString
-
-
-
-
Constructor Detail
-
DcsPath
public DcsPath()
-
DcsPath
public DcsPath(DcsPathPart pathPart) throws DcsPathException
- Throws:
DcsPathException
-
DcsPath
public DcsPath(DcsName name) throws DcsPathException
- Throws:
DcsPathException
-
DcsPath
public DcsPath(String string, int size) throws DcsPathException
- Throws:
DcsPathException
-
DcsPath
public DcsPath(String path) throws DcsPathException
- Throws:
DcsPathException
-
-
Method Detail
-
append
public DcsPath append(DcsPathPart pathPart) throws DcsPathException
Добавить часть пути- Parameters:
pathPart- часть пути- Returns:
- путь
- Throws:
DcsPathException
-
append
public DcsPath append(DcsPath path) throws DcsPathException
Добавить путь- Parameters:
path- добавляемый путь- Returns:
- результирующий путь
- Throws:
DcsPathException
-
split
public void split(List<DcsPathPart> parts) throws DcsPathException
Разбить на части- Parameters:
parts- части- Throws:
DcsPathException
-
split2
public void split2(List<DcsName> parts2) throws DcsPathException
Разбить на части- Parameters:
parts2- части- Throws:
DcsPathException
-
splitNotSingle
public boolean splitNotSingle(List<DcsPathPart> parts) throws DcsPathException
Разбить строку на несколько, только в случае если строка не была одиночной- Parameters:
parts- части- Returns:
- истина, если строка не была одиночной и была разбита, ложь если строка была одиночной
- Throws:
DcsPathException
-
combine
public DcsPath combine(List<DcsPathPart> parts)
Сформировать путь из частей- Parameters:
parts- части- Returns:
- путь
-
nearParentPath
public DcsPath nearParentPath() throws DcsPathException
Получить родительский путь- Returns:
- родительский путь
- Throws:
DcsPathException
-
isEmpty
public boolean isEmpty()
Проверка на пустоту- Returns:
- пустой
-
isEndWith
public boolean isEndWith(DcsPath testPath)
Проверить, заканчивается ли путь на указанный путь- Parameters:
testPath- путь- Returns:
- истина, если заканчивается
-
getChildPath
public DcsPath getChildPath() throws DcsPathException
Получить путь потомка- Returns:
- путь
- Throws:
DcsPathException
-
isChildPath
public boolean isChildPath(DcsPath path)
Check whether given path is child for this- Parameters:
path- path, can't be null- Returns:
- whether given path is child for this
-
-