|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectIDFactory
The ObjectIDDescriptor defines the interface that is used to describe a particular type of
ObjectID
.
Method Summary | |
---|---|
ObjectID |
create()
Create a new GlobalUID instance using this protocol. |
java.lang.String |
getDescription()
Return the description for the type of ObjectID described by this object. |
java.lang.String |
getProtocol()
Return the protocol for the type of ObjectID described by this object. |
ObjectID |
stringToObject(java.lang.String value)
Attempt to convert the specified string to the appropriate ObjectID instance. |
ObjectID |
stringWithoutProtocolToObject(java.lang.String value)
Attempt to convert the specified string to the appropriate ObjectID instance. |
Method Detail |
---|
java.lang.String getProtocol()
java.lang.String getDescription()
ObjectID create()
ObjectID stringToObject(java.lang.String value) throws InvalidIDException
value
- the stringified id (the result of ObjectID.toString()
),
and should never null or zero length
InvalidIDException
- if the parser is aware of this protocol, but it is of the wrong
format for this type of ObjectID.ObjectID stringWithoutProtocolToObject(java.lang.String value) throws InvalidIDException
IDGenerator.stringToObject(String)
method, which
must process the protocol to determine the correct parser to use. As such, it guarantees
that the parser that receives this call can assume that the protocol was equal to the
protocol returned by the parser's ObjectIDDescriptor#getProtocol()
.
value
- the stringified id with the protocol and ObjectID.DELIMITER already
removed, and should never null or zero length
InvalidIDException
- if the parser is aware of this protocol, but it is of the wrong
format for this type of ObjectID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |