|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.api.entry.WiktionaryRelation
@Persistent public class WiktionaryRelation
Default implementation of the IWiktionaryRelation
interface.
See there for details.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.tudarmstadt.ukp.jwktl.api.IWiktionaryRelation |
---|
IWiktionaryRelation.LinkType |
Field Summary | |
---|---|
protected IWiktionaryRelation.LinkType |
linkType
|
protected String |
target
|
protected String |
targetSense
|
protected RelationType |
type
|
Constructor Summary | |
---|---|
WiktionaryRelation()
Creates a new, empty relation. |
|
WiktionaryRelation(String target,
RelationType type)
Creates a new relation for the given target and relation type. |
Method Summary | |
---|---|
IWiktionaryRelation.LinkType |
getLinkType()
Returns the IWiktionaryRelation.LinkType that is used to encode the relation's
target. |
RelationType |
getRelationType()
Returns the type of this relation (never null ). |
String |
getTarget()
Returns the target word form of this relation. |
String |
getTargetSense()
Returns additional information on the word sense of the relation's target. |
void |
setLinkType(IWiktionaryRelation.LinkType linkType)
Assigns a new link type for this relation. |
void |
setTargetSense(String targetSense)
Specifies additional information on the target word sense. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String target
protected RelationType type
protected String targetSense
protected IWiktionaryRelation.LinkType linkType
Constructor Detail |
---|
public WiktionaryRelation()
public WiktionaryRelation(String target, RelationType type)
Method Detail |
---|
public RelationType getRelationType()
IWiktionaryRelation
null
).
getRelationType
in interface IWiktionaryRelation
public String getTarget()
IWiktionaryRelation
getTarget
in interface IWiktionaryRelation
public String getTargetSense()
IWiktionaryRelation
getTargetSense
in interface IWiktionaryRelation
public void setTargetSense(String targetSense)
public IWiktionaryRelation.LinkType getLinkType()
IWiktionaryRelation
IWiktionaryRelation.LinkType
that is used to encode the relation's
target.
getLinkType
in interface IWiktionaryRelation
public void setLinkType(IWiktionaryRelation.LinkType linkType)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |