public class InlineAnnotation extends Object implements IAnnotation
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME_SEPARATOR |
protected String |
data |
| Constructor and Description |
|---|
InlineAnnotation()
Creates an empty annotation object.
|
InlineAnnotation(String data)
Creates a new annotation object with some initial data.
|
| Modifier and Type | Method and Description |
|---|---|
InlineAnnotation |
clone()
Clones this annotation.
|
static InlineAnnotation |
createFromString(String storage)
Creates a new InlineAnnotation object from a storage string.
|
void |
fromString(String storage)
Initializes this annotation from a storage string originally obtained
from
toString(). |
String |
getData()
Gets the data for this annotation.
|
void |
setData(String data)
Sets the data for this annotation.
|
String |
toString()
Gets a storage string representation of the whole annotation that can
be used for serialization.
|
public static final String CLASSNAME_SEPARATOR
protected String data
public InlineAnnotation()
public InlineAnnotation(String data)
data - The data to set.public static InlineAnnotation createFromString(String storage)
storage - the serialized representation of the object.public InlineAnnotation clone()
public String toString()
toString in interface IAnnotationtoString in class Objectpublic void fromString(String storage)
toString().storage - The storage string to use for the initialization.public String getData()
public void setData(String data)
data - The data to set.Copyright © 2021. All rights reserved.