33 |
* @see java.net.URI |
* @see java.net.URI |
34 |
*/ |
*/ |
35 |
public class RDFURI |
public class RDFURI |
36 |
implements Subject, Predicate, RDFObject |
extends Node |
37 |
|
implements Predicate |
38 |
{ |
{ |
39 |
|
|
40 |
/** |
/** |
62 |
*/ |
*/ |
63 |
public String toString() |
public String toString() |
64 |
{ |
{ |
65 |
return getClass().getName() + |
String superToString = super.toString(); |
66 |
"[uri = " + |
return superToString.substring(0, superToString.length() - 1) + |
67 |
|
", uri = " + |
68 |
uri + |
uri + |
69 |
"]"; |
"]"; |
70 |
} |
} |
93 |
*/ |
*/ |
94 |
public RDFURI clone() |
public RDFURI clone() |
95 |
{ |
{ |
96 |
try |
Object clonedObject = super.clone(); |
97 |
{ |
RDFURI clone = (RDFURI) clonedObject; |
98 |
Object clonedObject = super.clone(); |
clone.setURI(getURI()); |
99 |
RDFURI clone = (RDFURI) clonedObject; |
return clone; |
|
clone.setURI(getURI()); |
|
|
return clone; |
|
|
} |
|
|
catch (CloneNotSupportedException e) |
|
|
{ |
|
|
throw new IllegalStateException("Unexpected exception: " + e, e); |
|
|
} |
|
100 |
} |
} |
101 |
|
|
102 |
/** |
/** |