public abstract class ForwardingNamingScheme extends Object implements NamingScheme
Constructor and Description |
---|
ForwardingNamingScheme() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String id)
Determine if this identifier has been prefixed
|
protected abstract NamingScheme |
delegate() |
Collection<BeanIdentifier> |
deprefix(Collection<String> ids) |
BeanIdentifier |
deprefix(String id)
Remove the prefix from the id
|
boolean |
equals(Object obj) |
Collection<String> |
filterIds(Collection<String> ids)
Filter a collection of ids, retaining only those correctly prefixed.
|
int |
hashCode() |
String |
prefix(BeanIdentifier id)
Add the prefix to the id
|
Collection<String> |
prefix(Collection<BeanIdentifier> ids) |
String |
toString() |
protected abstract NamingScheme delegate()
public boolean accept(String id)
NamingScheme
accept
in interface NamingScheme
id
- the id to checkpublic BeanIdentifier deprefix(String id)
NamingScheme
deprefix
in interface NamingScheme
id
- the prefixed idpublic String prefix(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<BeanIdentifier> deprefix(Collection<String> ids)
deprefix
in interface NamingScheme
public Collection<String> prefix(Collection<BeanIdentifier> ids)
prefix
in interface NamingScheme
Copyright © 2014. All Rights Reserved.