org.safehaus.uuid
Class TagURI
java.lang.Object
org.safehaus.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 |
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:
- 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 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.