001/* 002 * Transient.java June 2007 003 * 004 * Copyright (C) 2007, Niall Gallagher <niallg@users.sf.net> 005 * 006 * Licensed under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 015 * implied. See the License for the specific language governing 016 * permissions and limitations under the License. 017 */ 018 019package org.simpleframework.xml; 020 021import java.lang.annotation.RetentionPolicy; 022import java.lang.annotation.Retention; 023 024/** 025 * The <code>Transient</code> annotation is an optional annotation 026 * that can be used within an XML class schema to mark a method or 027 * field as being transient, which indicates that it does not take 028 * part in serialization or deserialization. This is particularly 029 * useful when the <code>Default</code> annotation is applied to 030 * a class, as it indicates no default serialization is to be used. 031 * 032 * @author Niall Gallagher 033 * 034 * @see org.simpleframework.xml.Default 035 */ 036@Retention(RetentionPolicy.RUNTIME) 037public @interface Transient { 038}