Package net.sf.okapi.common.resource
Class StartSubfilter
- java.lang.Object
-
- net.sf.okapi.common.resource.BaseNameable
-
- net.sf.okapi.common.resource.BaseReferenceable
-
- net.sf.okapi.common.resource.StartGroup
-
- net.sf.okapi.common.resource.StartSubfilter
-
- All Implemented Interfaces:
Cloneable,IResource,IMultilingual,INameable,IReferenceable,IWithAnnotations,IWithProperties,IWithSkeleton,IWithSourceProperties,IWithTargetProperties
public class StartSubfilter extends StartGroup
-
-
Field Summary
-
Fields inherited from class net.sf.okapi.common.resource.BaseReferenceable
parentId, refCount
-
Fields inherited from class net.sf.okapi.common.resource.BaseNameable
id, isTranslatable, mimeType, name, preserveWS, 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
Constructors Constructor Description StartSubfilter()StartSubfilter(String id, StartDocument startDoc, IEncoder parentEncoder)Creates a newStartSubfilterobject with the identifier of the group's parent and the group's identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubFilterSkeletonWritercreateSkeletonWriter(StartSubfilter resource, LocaleId outputLocale, String outputEncoding, ILayerProvider layer)StringgetEncoding()StringgetFilterId()IParametersgetFilterParameters()IFilterWritergetFilterWriter()StringgetLineBreak()LocaleIdgetLocale()StringgetMimeType()Gets the type of content of this resource.IEncodergetParentEncoder()SubFilterSkeletonWritergetSkeletonWriter()StartDocumentgetStartDoc()StringgetType()Gets the type information associated with this resource.booleanhasUTF8BOM()booleanisMultilingual()protected voidsetParentEncoder(IEncoder parentEncoder)protected voidsetSkelWriter(SubFilterSkeletonWriter skelWriter)protected voidsetStartDoc(StartDocument startDoc)-
Methods inherited from class net.sf.okapi.common.resource.StartGroup
getSourceProperties
-
Methods inherited from class net.sf.okapi.common.resource.BaseReferenceable
getParentId, getReferenceCount, isReferent, setIsReferent, setParentId, setReferenceCount
-
Methods inherited from class net.sf.okapi.common.resource.BaseNameable
getAnnotation, getAnnotations, getId, getName, getProperties, getProperty, getPropertyNames, getSkeleton, hasProperty, isTranslatable, preserveWhitespaces, removeProperty, setAnnotation, setId, setIsTranslatable, setMimeType, setName, setPreserveWhitespaces, setProperty, setSkeleton, setType, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.resource.INameable
getName, isTranslatable, preserveWhitespaces, setIsTranslatable, setMimeType, setName, setPreserveWhitespaces, setType
-
Methods inherited from interface net.sf.okapi.common.resource.IWithAnnotations
annotationIterator, clear, getAnnotation, getAnnotations, getAnnotationsTypesAsSet, hasAnnotation, hasAnnotations, remove, setAnnotation
-
Methods inherited from interface net.sf.okapi.common.resource.IWithProperties
getProperties, getProperty, getPropertyNames, hasProperty, propertyIterator, removeProperty, setProperty
-
Methods inherited from interface net.sf.okapi.common.resource.IWithSkeleton
getSkeleton, setSkeleton
-
Methods inherited from interface net.sf.okapi.common.resource.IWithSourceProperties
getSourceProperty, getSourcePropertyNames, hasSourceProperty, removeSourceProperty, setSourceProperty
-
Methods inherited from interface net.sf.okapi.common.resource.IWithTargetProperties
createTargetProperty, createTargetProperty, getAnnotations, getTargetLocales, getTargetProperties, getTargetProperty, getTargetPropertyNames, hasTargetProperty, removeTargetProperty, setTargetProperty
-
-
-
-
Constructor Detail
-
StartSubfilter
public StartSubfilter()
-
StartSubfilter
public StartSubfilter(String id, StartDocument startDoc, IEncoder parentEncoder)
Creates a newStartSubfilterobject with the identifier of the group's parent and the group's identifier.- Parameters:
id- the identifier of this sub filter.startDoc- The StartDocument resource of the subfilter.parentEncoder- the parent encoder.
-
-
Method Detail
-
getLocale
public LocaleId getLocale()
-
getEncoding
public String getEncoding()
-
isMultilingual
public boolean isMultilingual()
-
getMimeType
public String getMimeType()
Description copied from interface:INameableGets the type of content of this resource. For example "text/xml".- Specified by:
getMimeTypein interfaceINameable- Overrides:
getMimeTypein classBaseNameable- Returns:
- The type of content of this resource.
-
getType
public String getType()
Description copied from interface:INameableGets the type information associated with this resource. For example "button".- Specified by:
getTypein interfaceINameable- Overrides:
getTypein classBaseNameable- Returns:
- The type information associated with this resource.
-
getFilterId
public String getFilterId()
-
getFilterParameters
public IParameters getFilterParameters()
-
getFilterWriter
public IFilterWriter getFilterWriter()
-
hasUTF8BOM
public boolean hasUTF8BOM()
-
getLineBreak
public String getLineBreak()
-
getStartDoc
public StartDocument getStartDoc()
-
getSkeletonWriter
public SubFilterSkeletonWriter getSkeletonWriter()
-
createSkeletonWriter
public SubFilterSkeletonWriter createSkeletonWriter(StartSubfilter resource, LocaleId outputLocale, String outputEncoding, ILayerProvider layer)
-
getParentEncoder
public IEncoder getParentEncoder()
-
setSkelWriter
protected void setSkelWriter(SubFilterSkeletonWriter skelWriter)
-
setStartDoc
protected void setStartDoc(StartDocument startDoc)
-
setParentEncoder
protected void setParentEncoder(IEncoder parentEncoder)
-
-