org.safehaus.uuid
Class TagURI

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

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

Constructor Detail

TagURI

public TagURI(String authority,
              String identifier,
              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 String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

main

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