| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(final Class<T>
the Class representing the object type to be converted type)Overrides com. Implements com. |
| public Object | fromString(final String
the String with the single value of the Object str)Overrides com. Implements com. |
| public void | marshal(final Object
The object to be marshalled. source, final HierarchicalStreamWriter A stream to write to. writer, final MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements com. |
| public String | toString(final Object
the Object to be converted obj)Overrides com. Implements com. |
| public Object | unmarshal(final HierarchicalStreamReader
The stream to read the text from. reader, final UnmarshallingContext context)Implements com. |
| OptionalIntConverter | back to summary |
|---|---|
| public OptionalIntConverter() | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(final Class<T> type) Overrides com. Implements com. Doc from com. Determines whether the converter can marshall a particular type. | |
| fromString | back to summary |
|---|---|
| public Object fromString(final String str) Overrides com. Implements com. Doc from com. Unmarshals an Object from its single value representation. | |
| marshal | back to summary |
|---|---|
| public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) Implements com. Doc from com. Convert an object to textual data.
| |
| toString | back to summary |
|---|---|
| public String toString(final Object obj) Overrides com. Implements com. Doc from com. Marshals an Object into a single value representation. | |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) Implements com. Doc from com. Convert textual data back into an object.
| |