Class TranslationProfile
- java.lang.Object
-
- pl.edu.icm.unity.types.DescribedObjectROImpl
-
- pl.edu.icm.unity.types.DescribedObjectImpl
-
- pl.edu.icm.unity.types.translation.TranslationProfile
-
- All Implemented Interfaces:
DescribedObject
,NamedObject
public class TranslationProfile extends DescribedObjectImpl
Definition of a translation profile.- Author:
- Krzysztof Benedyczak
-
-
Field Summary
-
Fields inherited from class pl.edu.icm.unity.types.DescribedObjectROImpl
description, name
-
-
Constructor Summary
Constructors Constructor Description TranslationProfile(com.fasterxml.jackson.databind.node.ObjectNode json)
TranslationProfile(String name, String description, ProfileType profileType, List<? extends TranslationRule> rules)
TranslationProfile(String name, String description, ProfileType profileType, ProfileMode profileMode, List<? extends TranslationRule> rules)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationProfile
clone()
boolean
equals(Object obj)
ProfileMode
getProfileMode()
ProfileType
getProfileType()
List<? extends TranslationRule>
getRules()
int
hashCode()
void
setProfileMode(ProfileMode profileMode)
static void
storeRule(com.fasterxml.jackson.databind.node.ArrayNode jsonRules, TranslationRule rule)
com.fasterxml.jackson.databind.node.ObjectNode
toJsonObject()
String
toString()
-
Methods inherited from class pl.edu.icm.unity.types.DescribedObjectImpl
setDescription, setName
-
Methods inherited from class pl.edu.icm.unity.types.DescribedObjectROImpl
fromJsonDescObj, getDescription, getName, toJson
-
-
-
-
Constructor Detail
-
TranslationProfile
public TranslationProfile(String name, String description, ProfileType profileType, ProfileMode profileMode, List<? extends TranslationRule> rules)
-
TranslationProfile
public TranslationProfile(String name, String description, ProfileType profileType, List<? extends TranslationRule> rules)
-
TranslationProfile
public TranslationProfile(com.fasterxml.jackson.databind.node.ObjectNode json)
-
-
Method Detail
-
getProfileType
public ProfileType getProfileType()
-
getProfileMode
public ProfileMode getProfileMode()
-
setProfileMode
public void setProfileMode(ProfileMode profileMode)
-
getRules
public List<? extends TranslationRule> getRules()
-
toJsonObject
public com.fasterxml.jackson.databind.node.ObjectNode toJsonObject()
-
storeRule
public static void storeRule(com.fasterxml.jackson.databind.node.ArrayNode jsonRules, TranslationRule rule)
-
toString
public String toString()
- Overrides:
toString
in classDescribedObjectROImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDescribedObjectROImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDescribedObjectROImpl
-
clone
public TranslationProfile clone()
-
-