Package net.sf.okapi.filters.openxml
Class WorksheetConfigurations.Default
- java.lang.Object
-
- net.sf.okapi.filters.openxml.WorksheetConfigurations.Default
-
- All Implemented Interfaces:
WorksheetConfigurations
- Enclosing interface:
- WorksheetConfigurations
public static final class WorksheetConfigurations.Default extends Object implements WorksheetConfigurations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sf.okapi.filters.openxml.WorksheetConfigurations
WorksheetConfigurations.Default, WorksheetConfigurations.Input, WorksheetConfigurations.Output<T>
-
-
Constructor Summary
Constructors Constructor Description Default(List<WorksheetConfiguration> configurations)Default(WorksheetConfiguration... configurations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFrom(WorksheetConfigurations.Input input)Adds worksheet configurations from input.Set<String>excludedColumnsFor(String worksheetName)Obtains excluded columns for a specified worksheet name.Set<Integer>excludedRowsFor(String worksheetName)Obtains excluded rows for a specified worksheet name.Set<String>metadataColumnsFor(String worksheetName)Obtains metadata columns for a specified worksheet name.Set<Integer>metadataRowsFor(String worksheetName)Obtains metadata rows for a specified worksheet name.<T> TwrittenTo(WorksheetConfigurations.Output<T> output)Obtains the worksheet configurations output with the written worksheet configurations to it.
-
-
-
Constructor Detail
-
Default
public Default(WorksheetConfiguration... configurations)
-
Default
public Default(List<WorksheetConfiguration> configurations)
-
-
Method Detail
-
excludedRowsFor
public Set<Integer> excludedRowsFor(String worksheetName)
Description copied from interface:WorksheetConfigurationsObtains excluded rows for a specified worksheet name.- Specified by:
excludedRowsForin interfaceWorksheetConfigurations- Parameters:
worksheetName- The worksheet name- Returns:
- The excluded rows
-
excludedColumnsFor
public Set<String> excludedColumnsFor(String worksheetName)
Description copied from interface:WorksheetConfigurationsObtains excluded columns for a specified worksheet name.- Specified by:
excludedColumnsForin interfaceWorksheetConfigurations- Parameters:
worksheetName- The worksheet name- Returns:
- The excluded rows
-
metadataRowsFor
public Set<Integer> metadataRowsFor(String worksheetName)
Description copied from interface:WorksheetConfigurationsObtains metadata rows for a specified worksheet name.- Specified by:
metadataRowsForin interfaceWorksheetConfigurations- Parameters:
worksheetName- The worksheet name- Returns:
- The excluded rows
-
metadataColumnsFor
public Set<String> metadataColumnsFor(String worksheetName)
Description copied from interface:WorksheetConfigurationsObtains metadata columns for a specified worksheet name.- Specified by:
metadataColumnsForin interfaceWorksheetConfigurations- Parameters:
worksheetName- The worksheet name- Returns:
- The metadata rows
-
addFrom
public void addFrom(WorksheetConfigurations.Input input)
Description copied from interface:WorksheetConfigurationsAdds worksheet configurations from input.- Specified by:
addFromin interfaceWorksheetConfigurations- Parameters:
input- The worksheet configurations input to add from
-
writtenTo
public <T> T writtenTo(WorksheetConfigurations.Output<T> output)
Description copied from interface:WorksheetConfigurationsObtains the worksheet configurations output with the written worksheet configurations to it.- Specified by:
writtenToin interfaceWorksheetConfigurations- Parameters:
output- The output- Returns:
- The output with the written worksheet configurations
-
-