org.safehaus.uuid
Class TagURI
java.lang.Object
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
TagURI
public TagURI(String authority,
String identifier,
Calendar date)
- Constructor for creating tagURI instances.
Typical string representations of tagURIs may look like:
- tag:hp1.hp.com,2001:tst.1234567890
- tag:fred@flintstone.biz,2001-07-02:rock.123
(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.
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.