|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dishevelled.vocabulary.simple.SimpleRelation
public class SimpleRelation
Simple implementation of the Relation interface.
Field Summary | |
---|---|
private Domain |
domain
Domain. |
private java.lang.String |
name
Relation name. |
private SimpleConcept |
source
Source concept. |
private SimpleConcept |
target
Target concept. |
Constructor Summary | |
---|---|
SimpleRelation(Domain domain,
java.lang.String name,
SimpleConcept source,
SimpleConcept target)
Create a new relation in the specified domain between concepts source and
target with the specified name. |
Method Summary | |
---|---|
Domain |
getDomain()
Return the domain of this relation. |
java.lang.String |
getName()
Return the name of this relation. |
Concept |
getSource()
Return the source concept of this relation. |
Concept |
getTarget()
Return the target concept of this relation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String name
private final SimpleConcept source
private final SimpleConcept target
private final Domain domain
Constructor Detail |
---|
SimpleRelation(Domain domain, java.lang.String name, SimpleConcept source, SimpleConcept target)
source
and
target
with the specified name. All of
domain
, source
, and target
must not be null.
domain
- domainname
- relation namesource
- source concepttarget
- target conceptMethod Detail |
---|
public java.lang.String getName()
Relation
getName
in interface Relation
Relation
public Concept getSource()
Relation
getSource
in interface Relation
Relation
public Concept getTarget()
Relation
getTarget
in interface Relation
Relation
public Domain getDomain()
Relation
getDomain
in interface Relation
Relation
public java.lang.String toString()
toString
in class java.lang.Object
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |