B
- the type to and from which we are translatingpublic abstract class IdentifierConverter<A,B> extends com.google.common.base.Converter<A,B>
IdentifierConverter
accepts and returns identifiers, translating
them in some type-specific manner. The typical use of this
contract is for translating between internal and external identifiers.Constructor and Description |
---|
IdentifierConverter() |
Modifier and Type | Method and Description |
---|---|
abstract String |
asString(A resource)
Convert the given resource into a plain string representation of the conversion to the resource
|
boolean |
inDomain(A resource)
Check if the given resource is in the domain of this converter
|
abstract A |
toDomain(String resource)
Convert a plain string to a resource appropriate to this converter
|
public IdentifierConverter()
public boolean inDomain(A resource)
resource
- public abstract A toDomain(String resource)
resource
- Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.