public abstract static class Logistics.IdHandlerSpi<I extends Logistics.IdHandler,U extends Logistics.UTLFHandler> extends Object implements Logistics.IdHandler<U>, Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
encode |
protected int |
fields |
(package private) Pattern |
LID_pattern |
(package private) String |
LID_regex |
(package private) String |
LID_template |
(package private) String |
name |
(package private) String |
SysId |
(package private) Logistics.UTLFHandlerCreator<U> |
utlfHandlerCreator |
Constructor and Description |
---|
IdHandlerSpi(String n,
String id,
int f,
String t,
boolean e,
Logistics.UTLFHandlerCreator<U> uhCreator) |
IdHandlerSpi(String n,
String id,
int f,
String t,
String r,
boolean e,
Logistics.UTLFHandlerCreator<U> uhCreator) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIDText(String id)
Check ID text.
|
boolean |
checkIDText(String[] id)
Check ID text.
|
Logistics.Id<I> |
createId(String id)
Create UTLFId.
|
Logistics.Id<I> |
createId(String[] id)
Create UTLFId.
|
Logistics.Id<I> |
createId(UReference ur) |
Logistics.Id<I> |
createId(UTLFId id) |
URL |
createURL(UTLFId id)
Idに関連するWebページのURLを作成する.
|
U |
createUTLFHandler(UTLF u,
PrintWriter err) |
String[] |
getLocalId(UTLFId id) |
String |
getLocalId(UTLFId id,
int n) |
String |
getName()
Get name of service provider.
|
String |
getSystemId()
Get system ID.
|
boolean |
isHandlerOf(UTLFId id) |
String |
modifyIDText(String id)
Modify ID text.
|
String[] |
modifyIDText(String[] id)
Modify ID text.
|
U |
resolveAndCreateUTLFHandler(Logistics.Id<I> id,
PrintWriter err) |
Logistics.Id<I> |
standardize(Logistics.Id id)
標準化したIdを生成する.
DOI等大小文字の区別が無い場合などに,小文字に揃えるなど.
|
protected final int fields
final String name
final String LID_template
final String LID_regex
final String SysId
final Pattern LID_pattern
protected final boolean encode
final Logistics.UTLFHandlerCreator<U extends Logistics.UTLFHandler> utlfHandlerCreator
public IdHandlerSpi(String n, String id, int f, String t, String r, boolean e, Logistics.UTLFHandlerCreator<U> uhCreator)
public IdHandlerSpi(String n, String id, int f, String t, boolean e, Logistics.UTLFHandlerCreator<U> uhCreator)
public final String getName()
public final String getSystemId()
getSystemId
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
getSystemId
in interface UTLFIdSpi
public String modifyIDText(String id)
modifyIDText
in interface UTLFIdSpi
id
- ID.public String[] modifyIDText(String[] id)
modifyIDText
in interface UTLFIdSpi
id
- ID.public boolean checkIDText(String id)
checkIDText
in interface UTLFIdSpi
id
- ID.public boolean checkIDText(String[] id)
checkIDText
in interface UTLFIdSpi
id
- ID.public String[] getLocalId(UTLFId id)
getLocalId
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
public String getLocalId(UTLFId id, int n)
getLocalId
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
public boolean isHandlerOf(UTLFId id)
isHandlerOf
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
public Logistics.Id<I> createId(String id)
Logistics.IdHandler
createId
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
createId
in interface UTLFIdSpi
id
- ID.public Logistics.Id<I> createId(String[] id)
Logistics.IdHandler
createId
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
createId
in interface UTLFIdSpi
id
- ID.public Logistics.Id<I> createId(UTLFId id)
createId
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
public Logistics.Id<I> createId(UReference ur) throws UTLFException
UTLFException
public URL createURL(UTLFId id)
createURL
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
id
- UTLFId.public final U createUTLFHandler(UTLF u, PrintWriter err)
createUTLFHandler
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
public U resolveAndCreateUTLFHandler(Logistics.Id<I> id, PrintWriter err)
public Logistics.Id<I> standardize(Logistics.Id id)
Logistics.IdHandler
standardize
in interface Logistics.IdHandler<U extends Logistics.UTLFHandler>
id
- IDEDB Working Group at Tue Jun 10 17:08:59 JST 2025