Package net.sf.okapi.common.resource
Class DocumentPart
- java.lang.Object
-
- net.sf.okapi.common.resource.BaseNameable
-
- net.sf.okapi.common.resource.BaseReferenceable
-
- net.sf.okapi.common.resource.DocumentPart
-
- All Implemented Interfaces:
Cloneable
,IResource
,IMultilingual
,INameable
,IReferenceable
,IWithAnnotations
,IWithProperties
,IWithSkeleton
,IWithSourceProperties
,IWithTargetProperties
public class DocumentPart extends BaseReferenceable implements IMultilingual
Resource associated with the filter events DOCUMENT_PART,
-
-
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 DocumentPart()
DocumentPart(String id, boolean isReferent)
Creates a new DocumentPart object.DocumentPart(String id, boolean isReferent, ISkeleton skeleton)
Creates a new DocumentPart object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Property>
getSourceProperties()
String
toString()
-
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, getMimeType, getName, getProperties, getProperty, getPropertyNames, getSkeleton, getType, hasProperty, isTranslatable, preserveWhitespaces, removeProperty, setAnnotation, setId, setIsTranslatable, setMimeType, setName, setPreserveWhitespaces, setProperty, setSkeleton, setType
-
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
getMimeType, getName, getType, 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
-
DocumentPart
public DocumentPart()
-
DocumentPart
public DocumentPart(String id, boolean isReferent)
Creates a new DocumentPart object.- Parameters:
id
- The ID of this resource.isReferent
- Indicates if this resource is a referent (i.e. is referred to by another resource) or not.
-
DocumentPart
public DocumentPart(String id, boolean isReferent, ISkeleton skeleton)
Creates a new DocumentPart object.- Parameters:
id
- The ID of this resource.isReferent
- Indicates if this resource is a referent (i.e. is referred to by another resource) or not.skeleton
- The skeleton associated with this resource.
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classBaseNameable
-
getSourceProperties
public Map<String,Property> getSourceProperties()
- Specified by:
getSourceProperties
in interfaceIWithSourceProperties
- Returns:
Map
of source properties for the implementer of interface
-
-