public class RelationLocal extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<String,Relation> |
name2rel |
protected static Map<Relation,String> |
rel2name |
protected static Map<Relation,String> |
rel2name_short |
Modifier | Constructor and Description |
---|---|
protected |
RelationLocal(String _name,
String _short_name,
Relation _rel) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean hasName(String name)
public static boolean has(Relation r)
public static String getShortName(Relation r)
public static int size()
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.