public abstract class AbstractNamingScheme extends Object implements NamingScheme
Constructor and Description |
---|
AbstractNamingScheme(String delimiter)
Create a new Prefixer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String id)
Determine if this identifier has been prefixed
|
Collection<org.jboss.weld.serialization.spi.BeanIdentifier> |
deprefix(Collection<String> ids) |
org.jboss.weld.serialization.spi.BeanIdentifier |
deprefix(String id)
Remove the prefix from the id
|
Collection<String> |
filterIds(Collection<String> ids)
Filter a collection of ids, retaining only those correctly prefixed.
|
protected String |
getDelimiter() |
protected abstract String |
getPrefix() |
String |
prefix(org.jboss.weld.serialization.spi.BeanIdentifier id)
Add the prefix to the id
|
Collection<String> |
prefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids) |
public AbstractNamingScheme(String delimiter)
prefix
- The prefixdelimiter
- The delimiter to use between the prefix and the
identifier.public boolean accept(String id)
NamingScheme
accept
in interface NamingScheme
id
- the id to checkpublic org.jboss.weld.serialization.spi.BeanIdentifier deprefix(String id)
NamingScheme
deprefix
in interface NamingScheme
id
- the prefixed idpublic String prefix(org.jboss.weld.serialization.spi.BeanIdentifier id)
NamingScheme
prefix
in interface NamingScheme
id
- the id to prefixpublic Collection<String> filterIds(Collection<String> ids)
NamingScheme
filterIds
in interface NamingScheme
ids
- the collection of ides to filterpublic Collection<org.jboss.weld.serialization.spi.BeanIdentifier> deprefix(Collection<String> ids)
deprefix
in interface NamingScheme
public Collection<String> prefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids)
prefix
in interface NamingScheme
protected abstract String getPrefix()
protected String getDelimiter()
Copyright © 2016. All rights reserved.