1999-02-18 02:42:09 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsRDFResource_h__
|
|
|
|
#define nsRDFResource_h__
|
|
|
|
|
|
|
|
#include "nsIRDFNode.h"
|
1999-05-05 07:14:31 +04:00
|
|
|
#include "nsIRDFResource.h"
|
1999-02-18 02:42:09 +03:00
|
|
|
#include "nscore.h"
|
1999-03-29 23:52:54 +04:00
|
|
|
#include "rdf.h"
|
1999-03-02 04:44:01 +03:00
|
|
|
class nsIRDFService;
|
1999-02-18 02:42:09 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This simple base class implements nsIRDFResource, and can be used as a
|
|
|
|
* superclass for more sophisticated resource implementations.
|
|
|
|
*/
|
1999-05-19 01:28:43 +04:00
|
|
|
class nsRDFResource : public nsIRDFResource {
|
1999-02-18 02:42:09 +03:00
|
|
|
public:
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
// nsIRDFNode methods:
|
1999-03-29 23:52:54 +04:00
|
|
|
NS_IMETHOD EqualsNode(nsIRDFNode* node, PRBool* result);
|
1999-02-18 02:42:09 +03:00
|
|
|
|
|
|
|
// nsIRDFResource methods:
|
1999-03-09 07:01:56 +03:00
|
|
|
NS_IMETHOD Init(const char* uri);
|
1999-03-29 23:52:54 +04:00
|
|
|
NS_IMETHOD GetValue(char* *uri);
|
|
|
|
NS_IMETHOD EqualsResource(nsIRDFResource* resource, PRBool* result);
|
|
|
|
NS_IMETHOD EqualsString(const char* uri, PRBool* result);
|
1999-02-18 02:42:09 +03:00
|
|
|
|
|
|
|
// nsRDFResource methods:
|
1999-02-26 13:17:14 +03:00
|
|
|
nsRDFResource(void);
|
1999-02-18 02:42:09 +03:00
|
|
|
virtual ~nsRDFResource(void);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
char* mURI;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsRDFResource_h__
|