Package net.sf.okapi.lib.xliff2.core
Class PCont
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.PCont
-
public class PCont extends Object
Represents the standalone tag of a protected content.A protected content is a span of content (that may include code or marker tags) that is temporarily folded into a tag reference to prevent the content to be modified.
See
Unit.hideProtectedContent()andUnit.showProtectedContent().
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCodedText()Gets the coded text for this protected content.voidsetCodedText(String codedText)Sets the coded text for this protected content.
-
-
-
Field Detail
-
codedText
protected String codedText
-
-
Constructor Detail
-
PCont
public PCont()
Creates an emptyPContobject.
-
PCont
public PCont(PCont original)
Copy constructor.- Parameters:
original- the original object to duplicate.
-
PCont
public PCont(String codedText)
Creates a new protected content marker with a given coded text.- Parameters:
codedText- the span of coded text to protect.
-
-
Method Detail
-
getCodedText
public String getCodedText()
Gets the coded text for this protected content. The corresponding markers are in the store.- Returns:
- the coded text for this protected content.
-
setCodedText
public void setCodedText(String codedText)
Sets the coded text for this protected content.- Parameters:
codedText- the new coded text.
-
-