public interface IWithBilingualProperties
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(IWithBilingualProperties from,
IWithBilingualProperties to)
Copy all
IWithBilingualProperties Unless destination already has the property.
Target LocaleId not found in the destination are added then properties are copied. |
Property |
getSourceProperty(String name)
Gets the source property for a given name.
|
Set<String> |
getSourcePropertyNames()
Gets the names of all the source properties for this resource.
|
Set<LocaleId> |
getTargetLocales()
Gets all the target locales for this resource.
|
Property |
getTargetProperty(LocaleId locId,
String name)
Gets the target property for a given name and target locale.
|
Set<String> |
getTargetPropertyNames(LocaleId locId)
Gets the names of all the properties for a given target locale in this resource.
|
boolean |
hasSourceProperty(String name)
Indicates if a source property exists for a given name.
|
boolean |
hasTargetProperty(LocaleId locId,
String name)
Indicates if a property exists for a given name and target locale.
|
void |
removeSourceProperty(String name)
Removes a source property of a given name.
|
void |
removeTargetProperty(LocaleId locId,
String name)
Removes a target property of a given name.
|
Property |
setSourceProperty(Property property)
Sets a source property.
|
Property |
setTargetProperty(LocaleId locId,
Property property)
Sets a target property.
|
static void copy(IWithBilingualProperties from, IWithBilingualProperties to)
IWithBilingualProperties Unless destination already has the property.
Target LocaleId not found in the destination are added then properties are copied.
Properties are cloned before copying.from - source of IWithBilingualPropertiesto - destination of IWithBilingualPropertiesProperty getSourceProperty(String name)
name - The name of the source property to retrieve.Set<String> getSourcePropertyNames()
Set<LocaleId> getTargetLocales()
Property getTargetProperty(LocaleId locId, String name)
locId - the locale of the property to retrieve.name - The name of the property to retrieve. This name is case-sensitive.Set<String> getTargetPropertyNames(LocaleId locId)
locId - the target locale to query.boolean hasSourceProperty(String name)
name - The name of the source property to query.boolean hasTargetProperty(LocaleId locId, String name)
locId - the target locale to query.name - the name of the property to query.void removeSourceProperty(String name)
name - The name of the property to remove.void removeTargetProperty(LocaleId locId, String name)
locId - The target locale for which this property should be set.name - The name of the property to remove.Property setSourceProperty(Property property)
property - The new property to set.Property setTargetProperty(LocaleId locId, Property property)
locId - The target locale for which this property should be set.property - The new property to set. This name is case-sensitive.Copyright © 2021. All rights reserved.