|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.resource.InlineAnnotation
public class InlineAnnotation
Base implementation of the annotation used on inline codes. Inline annotations
must have a toString() and fromString(String) methods to
write and read themselves to and from a string.
This basic annotation has only a string data. Its usage depends of the type
of the annotation.
| Field Summary | |
|---|---|
protected java.lang.String |
data
|
| Constructor Summary | |
|---|---|
InlineAnnotation()
Creates an empty annotation object. |
|
InlineAnnotation(java.lang.String data)
Creates a new annotation object with some initial data. |
|
| Method Summary | |
|---|---|
InlineAnnotation |
clone()
Clones this annotation. |
void |
fromString(java.lang.String storage)
Initializes this annotation from a storage string originally obtained from toString(). |
java.lang.String |
getData()
Gets the data for this annotation. |
void |
setData(java.lang.String data)
Sets the data for this annotation. |
java.lang.String |
toString()
Gets a storage string representation of the whole annotation that can be used for serialization. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String data
| Constructor Detail |
|---|
public InlineAnnotation()
public InlineAnnotation(java.lang.String data)
data - The data to set.| Method Detail |
|---|
public InlineAnnotation clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in interface IAnnotationtoString in class java.lang.Objectpublic void fromString(java.lang.String storage)
toString().
storage - The storage string to use for the initialization.public java.lang.String getData()
public void setData(java.lang.String data)
data - The data to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||