de.tudarmstadt.ukp.jwktl.api.entry
Class WiktionaryRelation

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.api.entry.WiktionaryRelation
All Implemented Interfaces:
IWiktionaryRelation

@Persistent
public class WiktionaryRelation
extends Object
implements IWiktionaryRelation

Default implementation of the IWiktionaryRelation interface. See there for details.

Author:
Christian M. Meyer

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

target

protected String target

type

protected RelationType type

targetSense

protected String targetSense

linkType

protected IWiktionaryRelation.LinkType linkType
Constructor Detail

WiktionaryRelation

public WiktionaryRelation()
Creates a new, empty relation.


WiktionaryRelation

public WiktionaryRelation(String target,
                          RelationType type)
Creates a new relation for the given target and relation type.

Method Detail

getRelationType

public RelationType getRelationType()
Description copied from interface: IWiktionaryRelation
Returns the type of this relation (never null).

Specified by:
getRelationType in interface IWiktionaryRelation

getTarget

public String getTarget()
Description copied from interface: IWiktionaryRelation
Returns the target word form of this relation.

Specified by:
getTarget in interface IWiktionaryRelation

getTargetSense

public String getTargetSense()
Description copied from interface: IWiktionaryRelation
Returns additional information on the word sense of the relation's target. This is not yet structured information, but the bare piece of text encoded in Wiktionary.

Specified by:
getTargetSense in interface IWiktionaryRelation

setTargetSense

public void setTargetSense(String targetSense)
Specifies additional information on the target word sense.


getLinkType

public IWiktionaryRelation.LinkType getLinkType()
Description copied from interface: IWiktionaryRelation
Returns the IWiktionaryRelation.LinkType that is used to encode the relation's target.

Specified by:
getLinkType in interface IWiktionaryRelation

setLinkType

public void setLinkType(IWiktionaryRelation.LinkType linkType)
Assigns a new link type for this relation.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.