
org.jboss.metadata.spi.MutableMetaData Maven / Gradle / Ivy
The newest version!
/*
* JBoss, Home of Professional Open Source
* Copyright 2006, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.metadata.spi;
import java.lang.annotation.Annotation;
/**
* MutableMetaData.
*
* @author Adrian Brock
* @version $Revision: 60565 $
*/
public interface MutableMetaData
{
/**
* Add an annotation
*
* @param the annotation type
* @param annotation the annotation
* @return any previous annotation
*/
T addAnnotation(T annotation);
/**
* Remove an annotation
*
* @param the annotation type
* @param annotationType the annotation type
* @return any previous annotation
*/
T removeAnnotation(Class annotationType);
/**
* Add metaData
*
* @param the metadata type
* @param metaData the meta data
* @param type the expected type
* @return any previous meta data
*/
T addMetaData(T metaData, Class type);
/**
* Remove metaData
*
* @param the metadata type
* @param type the meta data type
* @return any previous meta data
*/
T removeMetaData(Class type);
/**
* Add metaData
*
* @param the metadata type
* @param name the name
* @param metaData the meta data
* @param type the expected type
* @return any previous meta data
*/
T addMetaData(String name, T metaData, Class type);
/**
* Remove metadata
*
* @param the metadata type
* @param name the name of the meta data
* @param type the expected type of the metadata
* @return the metadata or null if not present
*/
T removeMetaData(String name, Class type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy