Package net.sf.okapi.lib.xliff2.core
Class ProcessingInstruction
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.ProcessingInstruction
-
-
Constructor Summary
Constructors Constructor Description ProcessingInstruction(String text)Creates a newProcessingInstructionobject.ProcessingInstruction(ProcessingInstruction original)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPI()Gets the processing instruction text.ExtChildTypegetType()Gets the type of child this object is (one of theExtChildTypevalues).voidsetPI(String text)Sets the processing instruction text.
-
-
-
Constructor Detail
-
ProcessingInstruction
public ProcessingInstruction(ProcessingInstruction original)
Copy constructor.- Parameters:
original- the original object to duplicate.
-
ProcessingInstruction
public ProcessingInstruction(String text)
Creates a newProcessingInstructionobject.- Parameters:
text- the text of the content (can be null).
-
-
Method Detail
-
getType
public ExtChildType getType()
Description copied from interface:IExtChildGets the type of child this object is (one of theExtChildTypevalues).
-
getPI
public String getPI()
Gets the processing instruction text.- Returns:
- the processing instruction text (can be null).
-
setPI
public void setPI(String text)
Sets the processing instruction text.- Parameters:
text- the new processing instruction text (can be null).
-
-