Coverage Report - org.simpleframework.xml.DefaultType
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultType
100%
3/3
N/A
0
 
 1  
 /*
 2  
  * DefaultType.java January 2010
 3  
  *
 4  
  * Copyright (C) 2010, Niall Gallagher <niallg@users.sf.net>
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 15  
  * implied. See the License for the specific language governing 
 16  
  * permissions and limitations under the License.
 17  
  */
 18  
 
 19  
 package org.simpleframework.xml;
 20  
 
 21  
 /**
 22  
  * The <code>DefaultType</code> enumeration is used to specify the
 23  
  * type of defaults to apply to a class. The <code>Default</code> 
 24  
  * annotation is used to specify which type of default to apply. If
 25  
  * applied the serializer will synthesize an XML annotation for the 
 26  
  * fields or properties of the object. The synthesized annotations
 27  
  * will have default values for its attributes.
 28  
  * 
 29  
  * @author Niall Gallagher
 30  
  * 
 31  
  * @see org.simpleframework.xml.Default
 32  
  */
 33  4
 public enum DefaultType {
 34  
    
 35  
    /**
 36  
     * This tells the serializer to default all member fields.
 37  
     */
 38  1
    FIELD,
 39  
    
 40  
    /**
 41  
     * This tells the serializer to default all property methods.
 42  
     */
 43  1
    PROPERTY
 44  
 }