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
Definition of a translation profile.
- Author:
- Krzysztof Benedyczak
-
Field Summary
Fields inherited from class pl.edu.icm.unity.types.DescribedObjectROImpl
description, name
-
Constructor Summary
ConstructorDescriptionTranslationProfile
(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
Modifier and TypeMethodDescriptionclone()
boolean
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
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 Details
-
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 Details
-
getProfileType
-
getProfileMode
-
setProfileMode
-
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
- Overrides:
toString
in classDescribedObjectROImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDescribedObjectROImpl
-
equals
- Overrides:
equals
in classDescribedObjectROImpl
-
clone
-