Package com.cosylab.vdct.db
Class DBSheetSplitCol
- java.lang.Object
-
- com.cosylab.vdct.db.DBSheetSplitCol
-
public class DBSheetSplitCol extends Object
- Author:
- ssah
-
-
Constructor Summary
Constructors Constructor Description DBSheetSplitCol(boolean delimiterType, String pattern)
DBSheetSplitCol(boolean delimiterType, String pattern, int parts)
DBSheetSplitCol(String name, boolean delimiterType, String pattern, int parts)
DBSheetSplitCol(String delimiterType, String pattern)
DBSheetSplitCol(String name, String delimiterType, String pattern)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
extractValueAtEnd(String string)
Returns the number at the end of the given string.String
getDelimiterTypeString()
String
getName()
int
getParts()
String
getPattern()
SplitPropertyGroup[]
getSplitGroups()
static DBSheetSplitCol
getWhitespaceSplitData()
boolean
isDelimiterType()
static String
removeValueAtEnd(String string)
Returns the string without the trailing number, or the string itself if there is no number at the end.void
setName(String name)
void
setParts(int parts)
void
setSplitGroups(SplitPropertyGroup[] splitGroups)
String
toString()
-
-
-
Constructor Detail
-
DBSheetSplitCol
public DBSheetSplitCol(boolean delimiterType, String pattern)
- Parameters:
delimiterType
- delimiterTypepattern
- pattern
-
DBSheetSplitCol
public DBSheetSplitCol(String delimiterType, String pattern)
- Parameters:
delimiterType
- delimiterTypepattern
- pattern
-
DBSheetSplitCol
public DBSheetSplitCol(boolean delimiterType, String pattern, int parts)
- Parameters:
delimiterType
- delimiterTypepattern
- patternparts
- parts
-
DBSheetSplitCol
public DBSheetSplitCol(String name, String delimiterType, String pattern)
- Parameters:
name
- namedelimiterType
- delimiterTypepattern
- pattern
-
-
Method Detail
-
getWhitespaceSplitData
public static DBSheetSplitCol getWhitespaceSplitData()
- Returns:
- something
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
isDelimiterType
public boolean isDelimiterType()
- Returns:
- the delimiterType
-
getPattern
public String getPattern()
- Returns:
- the pattern
-
getParts
public int getParts()
- Returns:
- the parts
-
setParts
public void setParts(int parts)
- Parameters:
parts
- the parts to set
-
getDelimiterTypeString
public String getDelimiterTypeString()
- Returns:
- something
-
getSplitGroups
public SplitPropertyGroup[] getSplitGroups()
- Returns:
- the splitGroups
-
setSplitGroups
public void setSplitGroups(SplitPropertyGroup[] splitGroups)
- Parameters:
splitGroups
- the splitGroups to set
-
extractValueAtEnd
public static int extractValueAtEnd(String string)
Returns the number at the end of the given string. If there is no such number, it returns -1.- Parameters:
string
- string- Returns:
- something
-
-