ch.hearc.I04_05s08.Ontology.RDF
Class InstanceOfClass

java.lang.Object
  extended bych.hearc.I04_05s08.Ontology.RDF.Instance
      extended bych.hearc.I04_05s08.Ontology.RDF.InstanceOfClass

public class InstanceOfClass
extends Instance

A RDF Resource that represent a property of a Class

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

Field Summary
static String literal
          URI of the XMLS#String
private  String value
          The literal value
 
Fields inherited from class ch.hearc.I04_05s08.Ontology.RDF.Instance
 
Constructor Summary
InstanceOfClass()
          Construct a literal class
InstanceOfClass(InstanceOfClass ioc)
          Construct a copy
InstanceOfClass(RdfsClass c, String name)
          Construct the instance of the class
InstanceOfClass(String classname)
          Construct the instance of an unexisting class
 
Method Summary
 Object clone()
          Build a clone
 String getValue()
          Get the value of the class
 boolean isA(RdfsClass[] tuple)
          Verify is the class is another classes (multiple heritance)
 boolean isLiteral()
          Verify if the property is literal
 boolean setClass(RdfsClass c)
          Apply the known class to instance
 void setValue(String value)
          Set the value of the class
 String toString()
          String representation
 
Methods inherited from class ch.hearc.I04_05s08.Ontology.RDF.Instance
getName, getResource, getShortName, getShortValue, isInstance, setName, setResource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

literal

public static final String literal
URI of the XMLS#String

See Also:
Constant Field Values

value

private String value
The literal value

Constructor Detail

InstanceOfClass

public InstanceOfClass(RdfsClass c,
                       String name)
Construct the instance of the class

Parameters:
c - that class that is be instanciated

InstanceOfClass

public InstanceOfClass(String classname)
Construct the instance of an unexisting class

Parameters:
classname - the name of the class

InstanceOfClass

public InstanceOfClass()
Construct a literal class


InstanceOfClass

public InstanceOfClass(InstanceOfClass ioc)
Construct a copy

Method Detail

clone

public Object clone()
Build a clone

Returns:
a clone

toString

public String toString()
String representation

Returns:
string representation

setClass

public boolean setClass(RdfsClass c)
Apply the known class to instance

Parameters:
c - the class
Returns:
if it pass

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

isLiteral

public boolean isLiteral()
Verify if the property is literal

Returns:
literal or not ?

setValue

public void setValue(String value)
Set the value of the class

Overrides:
setValue in class Instance
Parameters:
value - the value that would be applied to Property
Returns:
if the value could be applied

getValue

public String getValue()
Get the value of the class

Overrides:
getValue in class Instance
Returns:
the property's value


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