All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feilong.lib.xstream.annotations.XStreamAlias Maven / Gradle / Ivy

Go to download

feilong is a suite of core and expanded libraries that include utility classes, http, excel,cvs, io classes, and much much more.

There is a newer version: 4.0.8
Show newest version
/*
 * Copyright (C) 2005 Joe Walnes.
 * Copyright (C) 2006, 2007, 2013 XStream Committers.
 * All rights reserved.
 *
 * The software in this package is published under the terms of the BSD
 * style license a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 * 
 * Created on 11. August 2005 by Mauro Talevi
 */
package com.feilong.lib.xstream.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation used to define an XStream class or field alias.
 *
 * @author Emil Kirschner
 * @author Chung-Onn Cheong
 * @see com.feilong.lib.xstream.XStream#alias(String, Class)
 * @see com.feilong.lib.xstream.XStream#alias(String, Class, Class)
 * @see com.feilong.lib.xstream.XStream#addDefaultImplementation(Class, Class)
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.FIELD })
public @interface XStreamAlias{

    /**
     * The name of the class or field alias.
     */
    public String value();

    /**
     * A possible default implementation if the annotated type is an interface.
     */
    public Class impl() default Void.class; //Use Void to denote as Null
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy