Package net.sf.okapi.filters.yaml.parser
Class IndentedBlock
- java.lang.Object
-
- net.sf.okapi.filters.yaml.parser.IndentedBlock
-
public class IndentedBlock extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intfirstIndentList<Line>linesYamlScalarTypestype
-
Constructor Summary
Constructors Constructor Description IndentedBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLine(Line line)StringgetOriginalString()get original string with full indentation and whitspaceList<Line>getTranslatableStrings()Create a list of lines that represent TextUnits and skeleton (e.g., newlines) between them decode the strings before savingbooleanisEmpty()StringtoString()
-
-
-
Field Detail
-
firstIndent
public int firstIndent
-
type
public YamlScalarTypes type
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
addLine
public void addLine(Line line)
-
getTranslatableStrings
public List<Line> getTranslatableStrings()
Create a list of lines that represent TextUnits and skeleton (e.g., newlines) between them decode the strings before saving- Returns:
- list of translatable lines and skeleton.
-
getOriginalString
public String getOriginalString()
get original string with full indentation and whitspace- Returns:
- original string
-
-