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

org.jboss.weld.context.beanstore.NamingScheme Maven / Gradle / Ivy

There is a newer version: 6.0.0.Beta4
Show newest version
package org.jboss.weld.context.beanstore;

import java.util.Collection;

public interface NamingScheme {

    /**
     * Determine if this identifier has been prefixed
     *
     * @param id the id to check
     * @return true if it has been prefixed, false otherwise
     */
    boolean accept(String id);

    /**
     * Remove the prefix from the id
     *
     * @param id the prefixed id
     * @return the id without the prefix
     */
    String deprefix(String id);

    /**
     * Add the prefix to the id
     *
     * @param id the id to prefix
     * @return the prefixed id
     */
    String prefix(String id);

    /**
     * Filter a collection of ids, retaining only those correctly prefixed.
     *
     * @param ids the collection of ides to filter
     */
    Collection filterIds(Collection ids);

    Collection deprefix(Collection ids);

    Collection prefix(Collection ids);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy