Interface IDataSetFieldsWrapper
- All Superinterfaces:
Comparable<IDataSetFieldsWrapper>
- All Known Implementing Classes:
DataSetsFieldsWrapperBase
,DataSetsFieldsWrapperField
,DataSetsFieldsWrapperFolder
,DataSetsFieldsWrapperNested
,DataSetsFieldsWrapperWithChildrenBase
Wrapper for field model object, provides uninform interface for field, folder and table.
For folder and table wrapper operations like rename and remove affect "child" fields.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Command for field (wrapper for CompoundCommand)static class
Exception of field renaming -
Method Summary
Modifier and TypeMethodDescriptionCopy fieldgetField()
Get fieldgetName()
Get name (field in viewer)getPath()
Get data pathgetTitle()
Get titleGet title for current languageboolean
isFolder()
Check whether field is folderboolean
Check whether title is autogeneratedremove()
Remove fieldSet name (field in viewer)Set data pathsetTitle
(LocalString title) Set titlesetTitle
(Presentation title) Set titleMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getField
DataSetField getField()Get field- Returns:
- field, never null
-
getName
String getName()Get name (field in viewer)- Returns:
- name, never null, empty for folder
-
setName
IDataSetFieldsWrapper.FieldCommand setName(String name, boolean checkUnique) throws IDataSetFieldsWrapper.FieldRenameException Set name (field in viewer)- Parameters:
name
- name, can't be nullcheckUnique
- check whether name is unique- Returns:
- command, never null
- Throws:
IDataSetFieldsWrapper.FieldRenameException
- if checkUnique true and name is not unique
-
getPath
String getPath()Get data path- Returns:
- path, never null
-
setPath
IDataSetFieldsWrapper.FieldCommand setPath(String path, boolean checkUnique) throws IDataSetFieldsWrapper.FieldRenameException Set data path- Parameters:
path
- path, can't be nullcheckUnique
- check whether path is unique- Returns:
- command, never null
- Throws:
IDataSetFieldsWrapper.FieldRenameException
- if checkUnique true and path is not unique
-
isTitleAuto
boolean isTitleAuto()Check whether title is autogenerated- Returns:
- whether title is autogenerated
-
getTitle
Presentation getTitle()Get title- Returns:
- title, never null
-
getTitle
Get title for current language- Returns:
- title, never null
-
setTitle
Set title- Parameters:
title
- title, can't be null- Returns:
- command, never null
-
setTitle
Set title- Parameters:
title
- title, can't be null- Returns:
- command, never null
-
isFolder
boolean isFolder()Check whether field is folder- Returns:
- whether field is folder
-
copy
Copy field- Parameters:
parentPath
- parent path for copy, can't be nullname
- name for copy, can't be null- Returns:
- command, never null
-
remove
Remove field- Returns:
- command, never null
- Throws:
IDataSetFieldsWrapper.FieldRenameException
- if after removing name of some child field won't be unique
-