1 |
/* URISyntax.java -- |
/* URISyntax.java -- |
2 |
Copyright (C) 2003 Free Software Foundation, Inc. |
Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
41 |
import java.net.URI; |
import java.net.URI; |
42 |
|
|
43 |
/** |
/** |
44 |
* @author Michael Koch |
* <code>URISyntax</code> is the abstract base class of all attribute |
45 |
|
* classes having an Uniform Resource Identifier URI as value. |
46 |
|
* |
47 |
|
* @author Michael Koch (konqueror@gmx.de) |
48 |
*/ |
*/ |
49 |
public abstract class URISyntax |
public abstract class URISyntax |
50 |
implements Cloneable, Serializable |
implements Cloneable, Serializable |
69 |
} |
} |
70 |
|
|
71 |
/** |
/** |
72 |
* Tests of obj is equal to this object. |
* Tests if the given object is equal to this object. |
73 |
* |
* |
74 |
* @param obj the object to test |
* @param obj the object to test |
75 |
* |
* |
76 |
* @returns true if both objects are equal, false otherwise. |
* @return <code>true</code> if both objects are equal, |
77 |
|
* <code>false</code> otherwise. |
78 |
*/ |
*/ |
79 |
public boolean equals(Object obj) |
public boolean equals(Object obj) |
80 |
{ |
{ |
87 |
/** |
/** |
88 |
* Returns the URI value of this syntax object. |
* Returns the URI value of this syntax object. |
89 |
* |
* |
90 |
* @return the URI |
* @return The URI. |
91 |
*/ |
*/ |
92 |
public URI getURI() |
public URI getURI() |
93 |
{ |
{ |
97 |
/** |
/** |
98 |
* Returns the hashcode for this object. |
* Returns the hashcode for this object. |
99 |
* |
* |
100 |
* @return the hashcode |
* @return The hashcode. |
101 |
*/ |
*/ |
102 |
public int hashCode() |
public int hashCode() |
103 |
{ |
{ |
107 |
/** |
/** |
108 |
* Returns the string representation for this object. |
* Returns the string representation for this object. |
109 |
* |
* |
110 |
* @return the string representation |
* @return The string representation. |
111 |
*/ |
*/ |
112 |
public String toString() |
public String toString() |
113 |
{ |
{ |