Package net.sf.okapi.common.annotation
Interface IPersistentAnnotation
-
- All Superinterfaces:
Cloneable,IAnnotation
- All Known Implementing Classes:
GenericAnnotation,GenericAnnotations,InlineAnnotation,Issue,IssueAnnotation,ITSLQIAnnotations,ITSProvenanceAnnotations
public interface IPersistentAnnotation extends IAnnotation
AnIAnnotationthat can be serialized. Must have aIAnnotation.toString()andfromString(String)methods to write and read themselves to and from a string.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IPersistentAnnotationclone()Clones this annotation.voidfromString(String storage)Initializes this annotation from a storage string originally obtained fromIAnnotation.toString().-
Methods inherited from interface net.sf.okapi.common.annotation.IAnnotation
toString
-
-
-
-
Method Detail
-
fromString
void fromString(String storage)
Initializes this annotation from a storage string originally obtained fromIAnnotation.toString().- Parameters:
storage- The storage string to use for the initialization.
-
clone
IPersistentAnnotation clone()
Clones this annotation.- Returns:
- A new
IPersistentAnnotationobject that is a copy of this one.
-
-