Annotation of java/classes/org/w3c/rdf/Literal.java, revision 1.1

1.1     ! jsaarela    1: /**
        !             2:  * Copyright © World Wide Web Consortium, (Massachusetts Institute of
        !             3:  * Technology, Institut National de Recherche en Informatique et en
        !             4:  * Automatique, Keio University).
        !             5:  *
        !             6:  * All Rights Reserved.
        !             7:  *
        !             8:  * Please see the full Copyright clause at
        !             9:  * <http://www.w3.org/Consortium/Legal/copyright-software.html>
        !            10:  *
        !            11:  * $Log$
        !            12:  *
        !            13:  * @author     Janne Saarela <jsaarela@w3.org>
        !            14:  */
        !            15: package org.w3c.rdf;
        !            16: 
        !            17: public class Literal extends RDFnode
        !            18: {
        !            19:     private String     m_sLiteral;
        !            20: 
        !            21:     public Literal() {
        !            22:        m_sLiteral = "undefined";
        !            23:     }
        !            24: 
        !            25:     public Literal(String sLiteral) {
        !            26:        m_sLiteral = sLiteral;
        !            27:     }
        !            28: 
        !            29:     public void setLiteral (String sLiteral) {
        !            30:        m_sLiteral = sLiteral;
        !            31:     }
        !            32: 
        !            33:     public String getLiteral (String sLiteral) {
        !            34:        return m_sLiteral;
        !            35:     }
        !            36: 
        !            37:     public String      toString () {
        !            38:        return m_sLiteral;
        !            39:     }
        !            40: 
        !            41:     public boolean     equals (Literal l) {
        !            42:        return l.toString().equals (m_sLiteral);
        !            43:     }
        !            44: }

Webmaster