001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.jena;
014
015import org.apache.juneau.jena.annotation.*;
016
017/**
018 * Used in conjunction with the {@link Rdf#collectionFormat() @Rdf(collectionFormat)} annotation to fine-tune how
019 * classes, beans, and bean properties are serialized, particularly collections.
020 */
021public enum RdfCollectionFormat {
022
023   /**
024    * Default formatting (default).
025    *
026    * <p>
027    * Inherit formatting from parent class or parent package.
028    * If no formatting specified at any level, default is {@link #SEQ}.
029    */
030   DEFAULT,
031
032   /**
033    * Causes collections and arrays to be rendered as RDF sequences.
034    */
035   SEQ,
036
037   /**
038    * Causes collections and arrays to be rendered as RDF bags.
039    */
040   BAG,
041
042   /**
043    * Causes collections and arrays to be rendered as RDF lists.
044    */
045   LIST,
046
047   /**
048    * Causes collections and arrays to be rendered as multi-valued RDF properties instead of sequences.
049    *
050    * <p>
051    * Note that enabling this setting will cause order of elements in the collection to be lost.
052    */
053   MULTI_VALUED;
054
055}