public class TextFlowTarget extends Object implements Serializable, Extensible<TextFlowTargetExtension>
MAX_PLURALS
Constructor and Description |
---|
TextFlowTarget() |
TextFlowTarget(String resId) |
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.
|
String |
getDescription()
Optional descriptive text to identify the TextFlowTarget, eg an
abbreviated version of the source text being translated.
|
ExtensionSet<TextFlowTargetExtension> |
getExtensions() |
ExtensionSet<TextFlowTargetExtension> |
getExtensions(boolean createIfNull) |
String |
getResId() |
Integer |
getRevision() |
String |
getSourceHash()
Optional MD5 hash of the source text.
|
ContentState |
getState() |
Integer |
getTextFlowRevision() |
Person |
getTranslator() |
int |
hashCode() |
void |
setContent(String content)
Deprecated.
As of release 1.6, replaced by
#setContents() |
void |
setContents(List<String> contents) |
void |
setContents(String... contents) |
void |
setDescription(String description) |
void |
setExtensions(ExtensionSet<TextFlowTargetExtension> extensions) |
void |
setResId(String resId) |
void |
setRevision(Integer i) |
void |
setSourceHash(String hash)
Optional MD5 hash of the source text, which the server may use to check
for outdated translations upon push.
|
void |
setState(ContentState state) |
void |
setTextFlowRevision(Integer textFlowRevision) |
void |
setTranslator(Person translator)
Deprecated.
|
String |
toString() |
public TextFlowTarget()
public TextFlowTarget(String resId)
public Person getTranslator()
@Deprecated public void setTranslator(Person translator)
public ContentState getState()
public void setState(ContentState state)
public String getDescription()
public void setDescription(String description)
public ExtensionSet<TextFlowTargetExtension> getExtensions()
getExtensions
in interface Extensible<TextFlowTargetExtension>
public ExtensionSet<TextFlowTargetExtension> getExtensions(boolean createIfNull)
public void setExtensions(ExtensionSet<TextFlowTargetExtension> extensions)
@NotEmpty public String getResId()
public void setResId(String resId)
public String getSourceHash()
public void setSourceHash(String hash)
hash
- public int hashCode()
public boolean equals(Object obj)
public Integer getRevision()
public void setRevision(Integer i)
public Integer getTextFlowRevision()
public void setTextFlowRevision(Integer textFlowRevision)
@Deprecated public String getContent()
getContents()
@Deprecated public void setContent(String content)
#setContents()
@Nonnull public List<String> getContents()
getContents
in interface HasContents
public void setContents(String... contents)
setContents
in interface HasContents
public void setContents(List<String> contents)
setContents
in interface HasContents
Copyright © 2018 Zanata Project. All rights reserved.