Package net.sf.okapi.common.resource
Class Custom
- java.lang.Object
-
- net.sf.okapi.common.resource.Custom
-
- All Implemented Interfaces:
Cloneable,IResource,IWithAnnotations,IWithProperties,IWithSkeleton
public class Custom extends Object implements IResource
-
-
Field Summary
-
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 Custom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationsgetAnnotations()StringgetId()Gets the identifier of the resource.Map<String,Property>getProperties()voidsetId(String id)Sets the identifier of this resource.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.resource.IWithAnnotations
annotationIterator, clear, getAnnotation, getAnnotationsTypesAsSet, hasAnnotation, hasAnnotations, remove, setAnnotation
-
Methods inherited from interface net.sf.okapi.common.resource.IWithProperties
getProperty, getPropertyNames, hasProperty, propertyIterator, removeProperty, setProperty
-
Methods inherited from interface net.sf.okapi.common.resource.IWithSkeleton
getSkeleton, setSkeleton
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:IResourceGets the identifier of the resource. This identifier is unique per extracted document and by type of resource. This value is filter-specific. It and may be different from one extraction of the same document to the next. It can a sequential number or not, incremental or not, and it can be not a number. It has no correspondence in the source document ("IDs" coming from the source document are "names" and not available for all resources).
-
setId
public void setId(String id)
Description copied from interface:IResourceSets the identifier of this resource.- Specified by:
setIdin interfaceIResource- Parameters:
id- the new identifier value.- See Also:
IResource.getId()
-
getProperties
public Map<String,Property> getProperties()
- Specified by:
getPropertiesin interfaceIWithProperties- Returns:
Mapof properties for the implementer of interface
-
getAnnotations
public Annotations getAnnotations()
- Specified by:
getAnnotationsin interfaceIWithAnnotations- Returns:
Annotationsfor the implementer of interface
-
-