Package net.sf.okapi.filters.yaml.parser
Class QuotedScalar
- java.lang.Object
-
- net.sf.okapi.filters.yaml.parser.QuotedScalar
-
public class QuotedScalar extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanfirstLineHasContinuationYamlScalarTypestype
-
Constructor Summary
Constructors Constructor Description QuotedScalar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLine(Line line)StringgetOriginalString()get original string with full indentation for skeletonList<Line>getTranslatableStrings()Create a list of lines that represent TextUnits and skeleton (e.g., newlines) between them decode the strings based on the typebooleanisEmpty()voidsetFirstLine(String line)Set the first quoted line and configure SnakeYaml dump options WARNING: type variable must already be set.StringtoString()
-
-
-
Field Detail
-
type
public YamlScalarTypes type
-
firstLineHasContinuation
public boolean firstLineHasContinuation
-
-
Method Detail
-
setFirstLine
public void setFirstLine(String line)
Set the first quoted line and configure SnakeYaml dump options WARNING: type variable must already be set.- Parameters:
line-
-
addLine
public void addLine(Line line)
-
isEmpty
public boolean isEmpty()
-
getTranslatableStrings
public List<Line> getTranslatableStrings()
Create a list of lines that represent TextUnits and skeleton (e.g., newlines) between them decode the strings based on the type- Returns:
- list of translatable lines and skeleton.
-
getOriginalString
public String getOriginalString()
get original string with full indentation for skeleton- Returns:
- originl string
-
-