Class DataSetsFieldsWrapperBase<T extends DataSetField>
- java.lang.Object
- 
- com._1c.g5.v8.dt.dcs.dataset.fields.DataSetsFieldsWrapperBase<T>
 
- 
- All Implemented Interfaces:
- IDataSetFieldsWrapper,- Comparable<IDataSetFieldsWrapper>
 - Direct Known Subclasses:
- DataSetsFieldsWrapperField,- DataSetsFieldsWrapperWithChildrenBase
 
 public abstract class DataSetsFieldsWrapperBase<T extends DataSetField> extends Object implements IDataSetFieldsWrapper Base class for field wrapper
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.dcs.dataset.fields.IDataSetFieldsWrapperIDataSetFieldsWrapper.FieldCommand, IDataSetFieldsWrapper.FieldRenameException
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected IDataSetWrapperdataSetWrapperprotected Tfield
 - 
Constructor SummaryConstructors Constructor Description DataSetsFieldsWrapperBase(IDataSetWrapper dataSetWrapper, T field)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IDataSetFieldsWrapper other)protected StringgetCurrentLanguageCode()Get current language codeprotected StringgetDuplicatedErrorMessage(List<String> fieldsDuplicated)Create message for duplicated fieldsDataSetFieldgetField()Get fieldprotected DataSetFieldgetFieldByPath(String path)Get field by pathprotected Collection<IDataSetFieldsWrapper>getFieldsWrappers()Get fields wrappers for this data setprotected StringgetParentPath()Get path of field parentprotected DcsPathgetPathFromString(String path)Create DcsPath from textprotected IDataSetWrapper.FieldSynonymgetSynonym(String path)Get field synonym by pathStringgetTitle(String languageCode)Get title for current languagebooleanisFolder()Check whether field is folderprotected booleanisNameUnique(String name)Check whether name is uniqueprotected booleanisPathUnique(String path)Check whether path is uniqueprotected booleanisStringEquals(String value1, String value2)Check whether strings equalIDataSetFieldsWrapper.FieldCommandsetTitle(LocalString local)Set titleprotected IDataSetFieldsWrapper.FieldCommandsetTitle(String langTitle, String languageCode)Set titleprotected booleanstartsWith(String value1, String value2)Check whether begining of string equals another stringprotected voidthrowError(String error)Throw renaming exception- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com._1c.g5.v8.dt.dcs.dataset.fields.IDataSetFieldsWrappercopy, getName, getPath, getTitle, isTitleAuto, remove, setName, setPath, setTitle
 
- 
 
- 
- 
- 
Field Detail- 
fieldprotected T extends DataSetField field 
 - 
dataSetWrapperprotected IDataSetWrapper dataSetWrapper 
 
- 
 - 
Constructor Detail- 
DataSetsFieldsWrapperBasepublic DataSetsFieldsWrapperBase(IDataSetWrapper dataSetWrapper, T field) Constructor- Parameters:
- dataSetWrapper- data set wrapper, can't be null
- field- field, can't be null
 
 
- 
 - 
Method Detail- 
compareTopublic int compareTo(IDataSetFieldsWrapper other) - Specified by:
- compareToin interface- Comparable<T extends DataSetField>
 
 - 
getFieldpublic DataSetField getField() Description copied from interface:IDataSetFieldsWrapperGet field- Specified by:
- getFieldin interface- IDataSetFieldsWrapper
- Returns:
- field, never null
 
 - 
getTitlepublic String getTitle(String languageCode) Description copied from interface:IDataSetFieldsWrapperGet title for current language- Specified by:
- getTitlein interface- IDataSetFieldsWrapper
- Returns:
- title, never null
 
 - 
setTitlepublic IDataSetFieldsWrapper.FieldCommand setTitle(LocalString local) Description copied from interface:IDataSetFieldsWrapperSet title- Specified by:
- setTitlein interface- IDataSetFieldsWrapper
- Parameters:
- local- title, can't be null
- Returns:
- command, never null
 
 - 
isFolderpublic boolean isFolder() Description copied from interface:IDataSetFieldsWrapperCheck whether field is folder- Specified by:
- isFolderin interface- IDataSetFieldsWrapper
- Returns:
- whether field is folder
 
 - 
setTitleprotected IDataSetFieldsWrapper.FieldCommand setTitle(String langTitle, String languageCode) Set title- Parameters:
- langTitle- title for current language, can't be null
- languageCode- current language code, can't be null
- Returns:
- command, never null
 
 - 
isNameUniqueprotected boolean isNameUnique(String name) Check whether name is unique- Parameters:
- name- name, can't be null
- Returns:
- whether name is unique
 
 - 
isPathUniqueprotected boolean isPathUnique(String path) Check whether path is unique- Parameters:
- path- path, can't be null
- Returns:
- whether path is unique
 
 - 
isStringEqualsprotected boolean isStringEquals(String value1, String value2) Check whether strings equal- Parameters:
- value1- string, can be null
- value2- other string, can be null
- Returns:
- whether strings is equals
 
 - 
startsWithprotected boolean startsWith(String value1, String value2) Check whether begining of string equals another string- Parameters:
- value1- string, can be null
- value2- other string, can be null
- Returns:
- whether begining of string equals another string
 
 - 
getDuplicatedErrorMessageprotected String getDuplicatedErrorMessage(List<String> fieldsDuplicated) Create message for duplicated fields- Parameters:
- fieldsDuplicated- fields names, can't be null
- Returns:
- message, never null
 
 - 
getCurrentLanguageCodeprotected String getCurrentLanguageCode() Get current language code- Returns:
- language code, never null
 
 - 
throwErrorprotected void throwError(String error) throws IDataSetFieldsWrapper.FieldRenameException Throw renaming exception- Parameters:
- error- error text
- Throws:
- IDataSetFieldsWrapper.FieldRenameException
 
 - 
getPathFromStringprotected DcsPath getPathFromString(String path) throws IDataSetFieldsWrapper.FieldRenameException Create DcsPath from text- Parameters:
- path- path text, can't be null
- Returns:
- DcsPath
- Throws:
- IDataSetFieldsWrapper.FieldRenameException- if path is not valid
 
 - 
getSynonymprotected IDataSetWrapper.FieldSynonym getSynonym(String path) Get field synonym by path- Parameters:
- path- path, can't be null
- Returns:
- synonym, never null
 
 - 
getFieldsWrappersprotected Collection<IDataSetFieldsWrapper> getFieldsWrappers() Get fields wrappers for this data set- Returns:
- collection of fields wrappers, never null
 
 - 
getParentPathprotected String getParentPath() Get path of field parent- Returns:
- path of field parent
 
 - 
getFieldByPathprotected DataSetField getFieldByPath(String path) Get field by path- Parameters:
- path- field path, can't be null
- Returns:
- field or null if field not found
 
 
- 
 
-