/[cashew-s-editor]/cashews/src/nongnu/cashews/rdf/RDFURI.java
ViewVC logotype

Diff of /cashews/src/nongnu/cashews/rdf/RDFURI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gnu_andrew, Sun Apr 3 17:15:39 2005 UTC revision 1.4 by gnu_andrew, Mon Apr 4 00:59:33 2005 UTC
# Line 51  public class RDFURI Line 51  public class RDFURI
51     */     */
52    public RDFURI(URI uri)    public RDFURI(URI uri)
53    {    {
54      this.uri = uri;      setURI(uri);
55    }    }
56    
57    /**    /**
# Line 84  public class RDFURI Line 84  public class RDFURI
84        }        }
85    }    }
86    
87      /**
88       * Returns a deep copy of this RDF URI.
89       *
90       * @return a clone of the RDF URI.
91       */
92      public RDFURI clone()
93      {
94        try
95          {
96            Object clonedObject = super.clone();
97            RDFURI clone = (RDFURI) clonedObject;
98            clone.setURI(getURI());
99            return clone;
100          }
101        catch (CloneNotSupportedException e)
102          {
103            throw new IllegalStateException("Unexpected exception: " + e, e);
104          }
105      }
106    
107      /**
108       * Sets the URI used by this RDF URI to that specified.
109       *
110       * @param uri the new URI to use.
111       */
112      public void setURI(URI uri)
113      {
114        this.uri = uri;
115      }
116    
117  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26