org.doomdark.uuid
Class TagURI

java.lang.Object
  extended by org.doomdark.uuid.TagURI

public class TagURI
extends java.lang.Object

A class that allows creation of tagURI instances. TagURIs are specified in IETF draft ; available for example at: http://sunsite.cnlab-switch.ch/ftp/mirror/internet-drafts/draft-kindberg-tag-uri-01.txt


Constructor Summary
TagURI(java.lang.String authority, java.lang.String identifier, java.util.Calendar date)
          Constructor for creating tagURI instances.
 
Method Summary
 boolean equals(java.lang.Object o)
           
static void main(java.lang.String[] args)
          A simple test harness is added to make (automated) testing of the class easier.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagURI

public TagURI(java.lang.String authority,
              java.lang.String identifier,
              java.util.Calendar date)
Constructor for creating tagURI instances. Typical string representations of tagURIs may look like: (see tagURI draft for more examples and full explanation of the basic concepts)

Parameters:
authority - Authority that created tag URI; usually either a fully-qualified domain name ("www.w3c.org") or an email address ("tatu.saloranta@iki.fi").
identifier - A locally unique identifier; often file path or URL path component (like, "tst.1234567890", "/home/tatu/index.html")
date - Date to add as part of the tag URI, if any; null is used used to indicate that no datestamp should be added.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

main

public static void main(java.lang.String[] args)
A simple test harness is added to make (automated) testing of the class easier.



Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.