|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.resource.BaseNameable
net.sf.okapi.common.resource.StartDocument
public class StartDocument
Resource associated with the filter event START_DOCUMENT.
| Field Summary | |
|---|---|
protected java.lang.String |
encoding
|
protected IFilterWriter |
filterWriter
|
protected boolean |
hasUTF8BOM
|
protected boolean |
isMultilingual
|
protected java.lang.String |
lineBreak
|
protected LocaleId |
locale
|
protected IParameters |
params
|
| Fields inherited from class net.sf.okapi.common.resource.BaseNameable |
|---|
annotations, id, isTranslatable, mimeType, name, preserveWS, properties, skeleton, sourceProperties, type |
| Fields inherited from interface net.sf.okapi.common.IResource |
|---|
COPY_ALL, COPY_CONTENT, COPY_PROPERTIES, COPY_SEGMENTATION, COPY_SEGMENTED_CONTENT, CREATE_EMPTY |
| Constructor Summary | |
|---|---|
StartDocument(java.lang.String id)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getEncoding()
Gets the character set encoding of this document. |
IParameters |
getFilterParameters()
Gets the current parameters for this document. |
IFilterWriter |
getFilterWriter()
Gets the filter writer for this document. |
java.lang.String |
getLineBreak()
Gets the type of line-break used in the original document. |
LocaleId |
getLocale()
Gets the locale of this document. |
boolean |
hasUTF8BOM()
Indicates if this document is encoded as UTF8 and has a Byte-Order-Mark. |
boolean |
isMultilingual()
Indicates if this document is multilingual. |
void |
setEncoding(java.lang.String encoding,
boolean hasUTF8BOM)
Sets the character set encoding of this document. |
void |
setFilterParameters(IParameters params)
Sets the parameters for this document. |
void |
setFilterWriter(IFilterWriter filterWriter)
Sets the filter writer for this document. |
void |
setLineBreak(java.lang.String value)
Sets the type of line-break used in the original document. |
void |
setLocale(LocaleId locale)
Sets the locale of the document. |
void |
setMultilingual(boolean value)
Sets the flag that indicates if this document is multilingual. |
| Methods inherited from class net.sf.okapi.common.resource.BaseNameable |
|---|
createTargetProperty, getAnnotation, getAnnotations, getId, getMimeType, getName, getProperty, getPropertyNames, getSkeleton, getSourceProperty, getSourcePropertyNames, getTargetLocales, getTargetProperty, getTargetPropertyNames, getType, hasProperty, hasSourceProperty, hasTargetProperty, isTranslatable, preserveWhitespaces, removeProperty, removeSourceProperty, removeTargetProperty, setAnnotation, setId, setIsTranslatable, setMimeType, setName, setPreserveWhitespaces, setProperty, setSkeleton, setSourceProperty, setTargetProperty, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LocaleId locale
protected java.lang.String encoding
protected boolean isMultilingual
protected IParameters params
protected IFilterWriter filterWriter
protected boolean hasUTF8BOM
protected java.lang.String lineBreak
| Constructor Detail |
|---|
public StartDocument(java.lang.String id)
| Method Detail |
|---|
public LocaleId getLocale()
public void setLocale(LocaleId locale)
locale - (source) locale of the document.public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding,
boolean hasUTF8BOM)
encoding - The string identifying the character set encoding of this document.
For example "UTF-8".hasUTF8BOM - true if this document is UTf-8 and has a Byte-Order-Mark.
False in all other cases.public boolean isMultilingual()
public void setMultilingual(boolean value)
value - true to set this document as multilingual, false to set it
as monolingual.public boolean hasUTF8BOM()
public java.lang.String getLineBreak()
public void setLineBreak(java.lang.String value)
value - the type of line-break of the original document, for
example: "\r\n" (for Windows/DOS line-break).public IFilterWriter getFilterWriter()
public void setFilterWriter(IFilterWriter filterWriter)
filterWriter - the filter writer for this document.public IParameters getFilterParameters()
public void setFilterParameters(IParameters params)
params - the object containing the parameters for this document.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||