|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.context.beanstore.AbstractNamingScheme
public abstract class AbstractNamingScheme
Constructor Summary | |
---|---|
AbstractNamingScheme(String delimiter)
Create a new Prefixer. |
Method Summary | |
---|---|
boolean |
accept(String id)
Determine if this identifier has been prefixed |
Collection<String> |
deprefix(Collection<String> ids)
|
String |
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()
|
Collection<String> |
prefix(Collection<String> ids)
|
String |
prefix(String id)
Add the prefix to the id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractNamingScheme(String delimiter)
prefix
- The prefixdelimiter
- The delimiter to use between the prefix and the
identifier.Method Detail |
---|
public boolean accept(String id)
NamingScheme
accept
in interface NamingScheme
id
- the id to check
public String deprefix(String id)
NamingScheme
deprefix
in interface NamingScheme
id
- the prefixed id
public String prefix(String id)
NamingScheme
prefix
in interface NamingScheme
id
- the id to prefix
public Collection<String> filterIds(Collection<String> ids)
NamingScheme
filterIds
in interface NamingScheme
ids
- the collection of ides to filterpublic Collection<String> deprefix(Collection<String> ids)
deprefix
in interface NamingScheme
public Collection<String> prefix(Collection<String> ids)
prefix
in interface NamingScheme
protected abstract String getPrefix()
protected String getDelimiter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |