@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()
IWiktionaryRelationnull).getRelationType in interface IWiktionaryRelationpublic String getTarget()
IWiktionaryRelationgetTarget in interface IWiktionaryRelationpublic String getTargetSense()
IWiktionaryRelationgetTargetSense in interface IWiktionaryRelationpublic void setTargetSense(String targetSense)
public IWiktionaryRelation.LinkType getLinkType()
IWiktionaryRelationIWiktionaryRelation.LinkType that is used to encode the relation's
target.getLinkType in interface IWiktionaryRelationpublic void setLinkType(IWiktionaryRelation.LinkType linkType)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.