|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.resource.Ending
public class Ending
Resource associated with the filter events END_DOCUMENT, END_SUBDOCUMENT, and END_GROUP.
| Field Summary | |
|---|---|
protected Annotations |
annotations
|
protected java.lang.String |
id
|
protected ISkeleton |
skeleton
|
| Fields inherited from interface net.sf.okapi.common.IResource |
|---|
COPY_ALL, COPY_CONTENT, COPY_PROPERTIES, COPY_SEGMENTATION, COPY_SEGMENTED_CONTENT, CREATE_EMPTY |
| Constructor Summary | |
|---|---|
Ending(java.lang.String id)
Creates a new Ending object. |
|
| Method Summary | ||
|---|---|---|
|
getAnnotation(java.lang.Class<A> annotationType)
Gets the annotation object for a given class for this resource. |
|
Annotations |
getAnnotations()
Gets the iterable list of the annotations for this resource. |
|
java.lang.String |
getId()
Gets the identifier of the resource. |
|
ISkeleton |
getSkeleton()
Gets the skeleton object for this resource. |
|
void |
setAnnotation(IAnnotation annotation)
Sets an annotation object for this resource. |
|
void |
setId(java.lang.String id)
Sets the identifier of this resource. |
|
void |
setSkeleton(ISkeleton skeleton)
Sets the skeleton object for this resource. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String id
protected ISkeleton skeleton
protected Annotations annotations
| Constructor Detail |
|---|
public Ending(java.lang.String id)
id - The ID of this resource (It should NOT be the same ID as the one set of
the corresponding starting resource: each resource has a ID are unique).| Method Detail |
|---|
public java.lang.String getId()
IResource
getId in interface IResourcepublic void setId(java.lang.String id)
IResource
setId in interface IResourceid - the new identifier value.IResource.getId()public ISkeleton getSkeleton()
IResource
getSkeleton in interface IResourcepublic void setSkeleton(ISkeleton skeleton)
IResource
setSkeleton in interface IResourceskeleton - the skeleton object to set.public <A extends IAnnotation> A getAnnotation(java.lang.Class<A> annotationType)
IResource
getAnnotation in interface IResourceannotationType - the class of the annotation object to retrieve.
public void setAnnotation(IAnnotation annotation)
IResource
setAnnotation in interface IResourceannotation - the annotation object to set.public Annotations getAnnotations()
IResource
getAnnotations in interface IResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||