public class ShortFormResolver
extends java.lang.Object
| Constructor and Description |
|---|
ShortFormResolver(java.util.Collection<? extends Factory> obj)
Creates a new ShortFormResolver for the supplied collection of factory objects.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getShortForm(java.lang.String id)
Get the short form for the specified identifier.
|
java.util.List<java.lang.String> |
getShortForms()
Gets all short forms.
|
java.lang.String |
resolve(java.lang.String shortForm)
Resolves a short form.
|
public ShortFormResolver(java.util.Collection<? extends Factory> obj)
obj - the factory objects to create short forms forpublic java.util.List<java.lang.String> getShortForms()
public java.lang.String getShortForm(java.lang.String id)
id - the identifier to get the short form forpublic java.lang.String resolve(java.lang.String shortForm)
shortForm - the short form to resolve