001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.commons.csv;
018
019/**
020 * Defines quoting behavior.
021 */
022public enum QuoteMode {
023
024    /**
025     * Quotes all fields.
026     */
027    ALL,
028
029    /**
030     * Quotes all non-null fields.
031     */
032    ALL_NON_NULL,
033
034    /**
035     * Quotes fields that contain special characters such as a field delimiter, quote character, or any of the
036     * characters in the line separator string.
037     */
038    MINIMAL,
039
040    /**
041     * Quotes all non-numeric fields.
042     */
043    NON_NUMERIC,
044
045    /**
046     * Never quotes fields. When the delimiter occurs in data, the printer prefixes it with the escape character. If the
047     * escape character is not set, format validation throws an exception.
048     */
049    NONE
050}