Main Page   File List   Globals  

element.h File Reference

Element functions. More...

#include <libgnurdf/types.h>

Go to the source code of this file.

Functions

int rdfGetElementType (RdfElement *element)
 Returns the type of the specified element. More...

char * rdfGetElementValue (RdfElement *element)
 Returns the value of the specified element. More...

const char * rdfGetElementPropertyName (RdfElement *element)
 Returns the name of the specified element. More...

RdfNamespacerdfGetElementNamespace (RdfElement *element)
 Returns the namespace of the specified element. More...

void rdfSetElementValue (RdfElement *element, const char *value)
 Sets the value of the specified element. More...

void rdfSetElementResource (RdfElement *element, const char *uri)
 Sets an element's resource. More...

char * rdfGetElementResource (RdfElement *element)
 Returns an element's resource. More...

RdfSchemardfGetElementSchema (RdfElement *element)
 Returns an element's parent schema. More...


Detailed Description

Element functions.

Id:
element.h,v 1.3 2001/08/23 08:51:22 chipx86 Exp
Copyright:
(C) 1999-2001 The GNUpdate Project.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Function Documentation

RdfNamespace* rdfGetElementNamespace RdfElement   element
 

Returns the namespace of the specified element.

Parameters:
element   The element.
Returns:
The element's namespace.

const char* rdfGetElementPropertyName RdfElement   element
 

Returns the name of the specified element.

Parameters:
element   The element.
Returns:
The element's name.

char* rdfGetElementResource RdfElement   element
 

Returns an element's resource.

Note: The returned resource must be freed!

Parameters:
element   The element.
Returns:
The element's resource.

RdfSchema* rdfGetElementSchema RdfElement   element
 

Returns an element's parent schema.

Parameters:
element   The element.
Returns:
The element's parent schema.

int rdfGetElementType RdfElement   element
 

Returns the type of the specified element.

Parameters:
element   The element.
Returns:
The element type, or 0 if it's an unknown type, or -1 if element is NULL.
See also:
RDF_LEAF, RDF_BAG, RDF_SEQ, RDF_ALT, RDF_DESC

char* rdfGetElementValue RdfElement   element
 

Returns the value of the specified element.

Note: The returned value must be freed.

Parameters:
element   The element.
Returns:
The element's value.

void rdfSetElementResource RdfElement   element,
const char *    uri
 

Sets an element's resource.

Parameters:
element   The element.
uri   The URI of the resource.

void rdfSetElementValue RdfElement   element,
const char *    value
 

Sets the value of the specified element.

Parameters:
element   The element.
value   The new value for the element.


Generated on Thu Sep 20 16:12:08 2001 for libgnurdf by doxygen1.2.9-20010819 written by Dimitri van Heesch, © 1997-2001