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

Diff of /cashews/src/nongnu/cashews/rdf/Literal.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 85  public class Literal Line 85  public class Literal
85        "]";        "]";
86    }    }
87    
88      /**
89       * Returns a deep copy of this literal.
90       *
91       * @return a clone of the literal.
92       */
93      public Literal clone()
94      {
95        try
96          {
97            Object clonedObject = super.clone();
98            Literal clone = (Literal) clonedObject;
99            clone.setType(type.clone());
100            return clone;
101          }
102        catch (CloneNotSupportedException e)
103          {
104            throw new IllegalStateException("Unexpected exception: " + e, e);
105          }
106      }
107    
108      /**
109       * Sets the type used by the literal to the one specified.
110       *
111       * @param type the new type to use.
112       */
113      public void setType(Type type)
114      {
115        this.type = type;
116      }
117    
118  }  }

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