| Package | com.yworks.support |
| Class | public class StringTypeConverter |
| Inheritance | StringTypeConverter Object |
| Implements | ITypeConverter |
Strings into Strings.
This class is used by the reflection based serializer and deserializer classes to handle String
properties of an object as attributes of it's corresponding xml tag.
See also
| Method | Defined By | ||
|---|---|---|---|
canConvertFrom(object:Object):Boolean
Returns, if the given object can be converted back to an instance of the default
Class type of this implementation. | StringTypeConverter | ||
canConvertTo(object:Object, type:Class):Boolean
Returns, if the given object can be converted in an instance of the given class type. | StringTypeConverter | ||
convertFrom(object:Object):Object
Converts the given object back to an instance of the default Class type
of this implementation. | StringTypeConverter | ||
convertTo(object:Object, type:Class):Object
Converts the given object in an instance of the given class type and return this instance. | StringTypeConverter | ||
| canConvertFrom | () | method |
public function canConvertFrom(object:Object):Boolean
Returns, if the given object can be converted back to an instance of the default
Class type of this implementation.
Parameters
object:Object — Object which shall be converted back.
|
Boolean |
| canConvertTo | () | method |
public function canConvertTo(object:Object, type:Class):BooleanReturns, if the given object can be converted in an instance of the given class type.
Parameters
object:Object — Object which shall be converted.
| |
type:Class — Class type to which the given object shall be converted.
|
Boolean |
| convertFrom | () | method |
public function convertFrom(object:Object):Object
Converts the given object back to an instance of the default Class type
of this implementation.
Parameters
object:Object — The Object to convert back.
|
Object — The back converted object.
|
| convertTo | () | method |
public function convertTo(object:Object, type:Class):ObjectConverts the given object in an instance of the given class type and return this instance.
Parameters
object:Object — Object to convert.
| |
type:Class — Class type to convert to.
|
Object — The converted object.
|