|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yworks.yfiles.server.graphml.flexio.IMarkupExtensionFactoryTypeConverter
A simple type converter that converts an object of type IMarkupExtensionFactory
into a
MarkupExtension
by calling the objects IMarkupExtensionFactory.createMarkupExtension
method with an EmptyLookup
.
Converting the MarkupExtension
back to its base class is done calling its provideValue
method with an EmptyLookup
.
Field Summary | |
static IMarkupExtensionFactoryTypeConverter |
instance
Shared instance of IMarkupExtensionFactoryTypeConverter . |
Constructor Summary | |
IMarkupExtensionFactoryTypeConverter()
|
Method Summary | |
boolean |
canConvertFrom(java.lang.Object object)
Returns, if the given object can be converted back to an instance of the default Class type of this implementation. |
boolean |
canConvertTo(java.lang.Object object,
java.lang.Class type)
Returns, if the given object can be converted in an instance of the given class type. |
java.lang.Object |
convertFrom(java.lang.Object object)
Converts the given object back to an instance of the default Class type
of this implementation. |
java.lang.Object |
convertTo(java.lang.Object object,
java.lang.Class type)
Converts the given object in an instance of the given class type and return this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final IMarkupExtensionFactoryTypeConverter instance
IMarkupExtensionFactoryTypeConverter
.
Constructor Detail |
public IMarkupExtensionFactoryTypeConverter()
Method Detail |
public boolean canConvertFrom(java.lang.Object object)
Class
type of this implementation.
canConvertFrom
in interface ITypeConverter
object
- Object
which shall be converted back.public boolean canConvertTo(java.lang.Object object, java.lang.Class type)
canConvertTo
in interface ITypeConverter
object
- Object
which shall be converted.type
- Class
type to which the given object shall be converted.public java.lang.Object convertTo(java.lang.Object object, java.lang.Class type)
convertTo
in interface ITypeConverter
object
- Object
to convert.type
- Class
type to convert to.
public java.lang.Object convertFrom(java.lang.Object object)
Class
type
of this implementation.
convertFrom
in interface ITypeConverter
object
- The Object
to convert back.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |