de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant
Class RelationLocal

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.constant.RelationLocal
Direct Known Subclasses:
RelationRu

public class RelationLocal
extends Object

Names of semantic relations in some language (e.g. Russian) and the links to the Relation.java codes.


Field Summary
protected static Map<String,Relation> name2rel
           
protected static Map<Relation,String> rel2name
           
protected static Map<Relation,String> rel2name_short
           
 
Constructor Summary
protected RelationLocal(String _name, String _short_name, Relation _rel)
           
 
Method Summary
static Relation get(String name)
          Gets Relation by its name in some language
static String getName(Relation r)
          Gets name of Relation in some language.
static String getShortName(Relation r)
          Gets short name of Relation in some language.
static boolean has(Relation r)
          Checks weather exists the translation for this Relation.
static boolean hasName(String name)
          Checks weather exists Relation by its name in some language.
static int size()
          Counts number of translations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name2rel

protected static final Map<String,Relation> name2rel

rel2name

protected static final Map<Relation,String> rel2name

rel2name_short

protected static final Map<Relation,String> rel2name_short
Constructor Detail

RelationLocal

protected RelationLocal(String _name,
                        String _short_name,
                        Relation _rel)
Method Detail

hasName

public static boolean hasName(String name)
Checks weather exists Relation by its name in some language.


has

public static boolean has(Relation r)
Checks weather exists the translation for this Relation.


get

public static Relation get(String name)
Gets Relation by its name in some language


getName

public static String getName(Relation r)
Gets name of Relation in some language.


getShortName

public static String getShortName(Relation r)
Gets short name of Relation in some language.


size

public static int size()
Counts number of translations.



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