public class TextFlow extends Object implements Extensible<TextFlowExtension>, Serializable
MAX_PLURALS| Constructor and Description |
|---|
TextFlow()
This constructor sets the lang value to en-US
|
TextFlow(String id)
This constructor sets the lang value to en-US
|
TextFlow(String id,
LocaleId lang) |
TextFlow(String id,
LocaleId lang,
List<String> contentList) |
TextFlow(String id,
LocaleId lang,
String... content) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent()
Deprecated.
As of release 1.6, replaced by
getContents() |
List<String> |
getContents()
Returns the string contents associated with this TextFlow/TextFlowTarget.
|
ExtensionSet<TextFlowExtension> |
getExtensions() |
ExtensionSet<TextFlowExtension> |
getExtensions(boolean createIfNull) |
String |
getId() |
LocaleId |
getLang()
Locale code for this text flow.
|
Integer |
getRevision() |
int |
hashCode() |
boolean |
isPlural()
Whether this message supports plurals
|
void |
setContent(String content)
Deprecated.
As of release 1.6, replaced by
#setContents() |
void |
setContents(List<String> contents) |
void |
setContents(String... contents) |
void |
setExtensions(ExtensionSet<TextFlowExtension> extensions) |
void |
setId(String id) |
void |
setLang(LocaleId lang) |
void |
setPlural(boolean pluralSupported) |
void |
setRevision(Integer i) |
String |
toString() |
public TextFlow()
public TextFlow(String id)
public TextFlow(String id, LocaleId lang)
id - Resource Id valuelang - Locale valuepublic String getId()
public void setId(String id)
public boolean isPlural()
public void setPlural(boolean pluralSupported)
pluralSupported - the pluralSupported to setpublic LocaleId getLang()
public void setLang(LocaleId lang)
public ExtensionSet<TextFlowExtension> getExtensions()
getExtensions in interface Extensible<TextFlowExtension>public void setExtensions(ExtensionSet<TextFlowExtension> extensions)
public ExtensionSet<TextFlowExtension> getExtensions(boolean createIfNull)
public int hashCode()
public boolean equals(Object obj)
public Integer getRevision()
public void setRevision(Integer i)
@Deprecated public String getContent()
getContents()@Deprecated public void setContent(String content)
#setContents()public List<String> getContents()
getContents in interface HasContentspublic void setContents(String... contents)
setContents in interface HasContentspublic void setContents(List<String> contents)
setContents in interface HasContentsCopyright © 2018 Zanata Project. All rights reserved.