|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.hearc.I04_05s08.Ontology.RDFS.RdfsResource
Class that represent a Resource. Every Classes of any RDFS is a sub classe of it.
Field Summary | |
private String |
comment
Description of resource's name |
private String |
label
A human-readable version of resource's name |
private String |
name
Name of the resource (rdf:about) |
Constructor Summary | |
RdfsResource(RdfsResource r)
Build a new resource from a another |
|
RdfsResource(String name)
Minimal constructor with the name only |
|
RdfsResource(String name,
String label)
Minimal constructor recommanded |
|
RdfsResource(String name,
String label,
String comment)
Full constructor recommanded |
Method Summary | |
abstract Object |
clone()
Clone the Resource |
static LinkedList |
copyList(LinkedList source)
Copy a LinkedList into a new List |
boolean |
equals(RdfsResource resource)
If the resource is the same as this one |
String |
getComment()
Get the comment of the resource |
String |
getLabel()
Get the label of the resource |
String |
getName()
Get the name of the resource |
String |
getShortName()
Get the short name |
private void |
init(String name,
String label,
String comment)
Init the Resource |
void |
setComment(String comment)
Set the comment of the resource |
void |
setLabel(String label)
Set the label of the resource |
void |
setName(String name)
Set the name of the resource |
String |
toString()
String representation of the Resource |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String name
private String label
private String comment
Constructor Detail |
public RdfsResource(String name)
name
- the resource's namepublic RdfsResource(String name, String label)
name
- the resource's namelabel
- human readable namepublic RdfsResource(String name, String label, String comment)
name
- the resource's namelabel
- human readable namecomment
- descriptionpublic RdfsResource(RdfsResource r)
r
- resource sourceMethod Detail |
public String toString()
public abstract Object clone()
public String getName()
public void setName(String name)
name
- name of the resourcepublic String getShortName()
public void setLabel(String label)
label
- human readable namepublic String getLabel()
public void setComment(String comment)
comment
- descriptionpublic String getComment()
private void init(String name, String label, String comment)
label
- comment
- public static LinkedList copyList(LinkedList source)
source
- LinkedList of source
public boolean equals(RdfsResource resource)
resource
- a resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC