Coverage Report - org.simpleframework.xml.core.Replace
 
Classes in this File Line Coverage Branch Coverage Complexity
Replace
N/A
N/A
0
 
 1  
 /*
 2  
  * Replace.java June 2007
 3  
  *
 4  
  * Copyright (C) 2007, 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.core;
 20  
 
 21  
 import java.lang.annotation.RetentionPolicy;
 22  
 import java.lang.annotation.Retention;
 23  
 
 24  
 /**
 25  
  * The <code>Replace</code> method is used to replace an object that
 26  
  * is about to be serialized to an XML document. This is used to so
 27  
  * that an object can provide a substitute to itself. Scenarios such
 28  
  * as serializing an object to an external file or location can be
 29  
  * accommodated using a write replacement method.
 30  
  * <p>
 31  
  * This is similar to the <code>writeReplace</code> method used within
 32  
  * Java Object Serialization in that it is used to plug a replacement
 33  
  * in to the resulting stream during the serialization process. Care
 34  
  * should be taken to provide a suitable type from the replacement so
 35  
  * that the object can be deserialized at a later time.
 36  
  * 
 37  
  * @author Niall Gallagher
 38  
  */
 39  
 @Retention(RetentionPolicy.RUNTIME)
 40  
 public @interface Replace {  
 41  
 }