ch.hearc.I04_05s08.Ontology.RDFS
Class RdfsClass

java.lang.Object
  extended bych.hearc.I04_05s08.Ontology.RDFS.RdfsResource
      extended bych.hearc.I04_05s08.Ontology.RDFS.RdfsClass

public class RdfsClass
extends RdfsResource

A representation of a rdfs:Class

Author:
Blanc, Yoan
See Also:
w3c
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Field Summary
private  LinkedList subClassOf
          Classes from this is extended
 
Fields inherited from class ch.hearc.I04_05s08.Ontology.RDFS.RdfsResource
 
Constructor Summary
RdfsClass(RdfsClass c)
          A new class from another one
RdfsClass(String name)
          Minimal constructor
RdfsClass(String name, String label)
          Minimal recommended constructor
RdfsClass(String name, String label, String comment)
          Full constructor
 
Method Summary
 boolean addSupClass(RdfsClass c)
          Add a superClass
 Object clone()
          Duplicate the current Class
 boolean delSupClass(RdfsClass c)
          Dereference a superClass
 RdfsClass[] getSupClasses()
          Return the subClass of the Class is
private  void init()
          Build the objects of Class
 boolean isA(RdfsClass[] tuple)
          Verify is the class is another classes (multiple heritance)
 String toString()
          String representation of the class
 
Methods inherited from class ch.hearc.I04_05s08.Ontology.RDFS.RdfsResource
copyList, equals, getComment, getLabel, getName, getShortName, setComment, setLabel, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subClassOf

private LinkedList subClassOf
Classes from this is extended

See Also:
w3c
Constructor Detail

RdfsClass

public RdfsClass(String name)
Minimal constructor


RdfsClass

public RdfsClass(String name,
                 String label)
Minimal recommended constructor


RdfsClass

public RdfsClass(String name,
                 String label,
                 String comment)
Full constructor


RdfsClass

public RdfsClass(RdfsClass c)
A new class from another one

Parameters:
c - Classe source
Method Detail

init

private void init()
Build the objects of Class


toString

public String toString()
String representation of the class

Overrides:
toString in class RdfsResource
Returns:
class and subclasses

clone

public Object clone()
Duplicate the current Class

Specified by:
clone in class RdfsResource
Returns:
copy of the Class

getSupClasses

public RdfsClass[] getSupClasses()
Return the subClass of the Class is

Returns:
the subClass

addSupClass

public boolean addSupClass(RdfsClass c)
Add a superClass

Parameters:
c - new subClass

delSupClass

public boolean delSupClass(RdfsClass c)
Dereference a superClass

Parameters:
c - subClass that will be dereferenced

isA

public boolean isA(RdfsClass[] tuple)
Verify is the class is another classes (multiple heritance)

Parameters:
tuple - parent classes
Returns:
if this class is the tuple


A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC