Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Summary

This section describes the Primordium implementations of org.osid.id.Id.

GlobalURNId

net.okapia.osid.primordium.id.global.GlobalURNId is an immutable class implementing osid.id.Id.

Serialization

A URN.

Valid Characters

Any valid URL character per RFC 2396. 

  • a-z
  • A-Z
  • 0-9
  • ( ) + , - . = @ ; $ _ ! * '

Constructors

Constructing BasicId
   /**
     *  Creates a new GlobalURNId using the "urn" 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

From a String
    /**
     *  Returns an Id from a string representation of a URN.
     *
     *  @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 url)


GlobalURLId

net.okapia.osid.primordium.id.global.GlobalURLId is an immutable class implementing osid.id.Id.

Serialization

A URL.

Valid Characters

Any valid URL character per RFC 2396. 

  • a-z
  • A-Z
  • 0-9
  • . - _ ~ ! * ( ) ' / # ? & = :

Constructors

Constructing BasicId
   /**
     *  Creates a new GlobalURLId 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

From a String
    /**
     *  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 url)
From a URL
    /**
     *  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)

 

 

  • No labels