Summary
tocThis section describes the Primordium implementations of org.osid.id.Id.
GlobalURLId
net.okapia.osid.primordium.id.global.GlobalURLId is an immutable class implementing osid.id.Id.
Constructors
Code Block |
---|
title | Constructing BasicId |
---|
|
/**
* Creates a new <code>BasicId</code> using the "url" namespace.
*
* @param authority the authority for this Id
* @param identifier the identifier for this Id
* @throws org.osid.NullArgumentException null argument provided
*/
public GlobalURLId(String authority, String identifier); |
Static Factories
Code Block |
---|
|
/**
* Returns an Id from a string representation of a URL.
*
* @param url the string to be parsed
* @return an Id with the string components
* @throws org.osid.InvalidArgumentException string could not be parsed
* @throws org.osid.NullArgumentException str is null
*/
public static org.osid.id.Id valueOf(String surl) |
Code Block |
---|
|
/**
* Returns an Id from a Java URL.
*
* @param url the url
* @throws org.osid.InvalidArgumentException url could not be parsed
* @throws org.osid.NullArgumentException str is null
*/
public static org.osid.id.Id valueOf(java.net.URL url) |
Valid Characters