@Persistent public class WiktionaryRelation extends Object implements IWiktionaryRelation
IWiktionaryRelation
interface.
See there for details.IWiktionaryRelation.LinkType
Modifier and Type | Field and Description |
---|---|
protected IWiktionaryRelation.LinkType |
linkType |
protected String |
target |
protected String |
targetSense |
protected RelationType |
type |
Constructor and Description |
---|
WiktionaryRelation()
Creates a new, empty relation.
|
WiktionaryRelation(String target,
RelationType type)
Creates a new relation for the given target and relation type.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected String target
protected RelationType type
protected String targetSense
protected IWiktionaryRelation.LinkType linkType
public WiktionaryRelation()
public WiktionaryRelation(String target, RelationType type)
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)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.