/**
 * Copyright © World Wide Web Consortium, (Massachusetts Institute of
 * Technology, Institut National de Recherche en Informatique et en
 * Automatique, Keio University).
 *
 * All Rights Reserved.
 *
 * Please see the full Copyright clause at
 * <http://www.w3.org/Consortium/Legal/copyright-software.html>
 *
 * $Log: Property.java,v $
 * Revision 1.3  1999/05/21 13:02:32  jsaarela
 * Distribution release V1.14 on 21-May-99.
 *
 * Revision 1.1  1999/04/01 09:32:38  jsaarela
 * SiRPAC distribution release V1.11 on 1-Apr-99
 *
 *
 * @author	Janne Saarela <jsaarela@w3.org>
 */
package org.w3c.rdf;

public class Property extends Resource
{
    private String	m_sPredicate;

    public Property() {
	m_sPredicate = "undefined";
    }

    public Property (String sPredicate) {
	m_sPredicate = sPredicate;
    }

    public void setPredicate (String sPredicate) {
	m_sPredicate = sPredicate;
    }

    public String getPredicate () {
	return m_sPredicate;
    }

    public String	toString () {
	return m_sPredicate;
    }

    public boolean	equals (Object that) {
	if (this == that)
	    return true;
	if (that == null || !(that instanceof Property))
	    return false;
	return m_sPredicate.equals (((Property)that).toString());
    }
}
