org.gautelis.vopn.db.utils.Characteristics Maven / Gradle / Ivy
Show all versions of vopn Show documentation
/*
* Copyright (C) 2011-2016 Frode Randers
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* The research leading to the implementation of this software package
* has received funding from the European Community´s Seventh Framework
* Programme (FP7/2007-2013) under grant agreement n° 270000.
*
* Frode Randers was at the time of creation of this software module
* employed as a doctoral student by Luleå University of Technology
* and remains the copyright holder of this material due to the
* Teachers Exemption expressed in Swedish law (LAU 1949:345)
*/
package org.gautelis.vopn.db.utils;
/**
* Description of Characteristics:
*
*
* Created by Frode Randers at 2011-11-04 14:14
*/
public class Characteristics {
public String batchSeparator = "";
public boolean ignoreCase = false;
public boolean separatorAloneOnLine = false;
public Characteristics(String batchSeparator) {
this.batchSeparator = batchSeparator;
}
public Characteristics(String batchSeparator, boolean ignoreCase) {
this.batchSeparator = batchSeparator;
this.ignoreCase = ignoreCase;
}
public Characteristics(String batchSeparator, boolean ignoreCase, boolean separatorAloneOnLine) {
this.batchSeparator = batchSeparator;
this.ignoreCase = ignoreCase;
this.separatorAloneOnLine = separatorAloneOnLine;
}
public String getSeparator() {
return batchSeparator;
}
public boolean doIgnoreCase() {
return ignoreCase;
}
public boolean aloneOnLine() {
return separatorAloneOnLine;
}
}