Id.Adapter| Constructor and Description |
|---|
IdImpl()
Needed for JAXB serialization
|
IdImpl(String id)
Creates a new identifier.
|
| Modifier and Type | Method and Description |
|---|---|
String |
compact()
Returns the local identifier of this
Id. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString()
Return a string representation of the identifier from which an object of type Id should
be reconstructable.
|
protected String id
public IdImpl()
public IdImpl(String id)
id - the identifierpublic String compact()
Id. The local identifier is defined to be free of separator characters
that could potentially get into the way when creating file or directory names from the identifier.
For example, given that the interface is implemented by a class representing CNRI handles, the identifier would
then look something like 10.3930/ETHZ/abcd, whith 10.3930 being the handle prefix,
ETH the authority and abcd the local part. toURI() would then return
10.3930-ETH-abcd or any other suitable form.compact in interface IdId.compact()public String toString()
Idpublic boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2009–2020 Opencast Project. All rights reserved.