com.yworks.yfiles.server.graphml.flexio
Class IMarkupExtensionFactoryTypeConverter

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.IMarkupExtensionFactoryTypeConverter
All Implemented Interfaces:
ITypeConverter

public class IMarkupExtensionFactoryTypeConverter
extends java.lang.Object
implements ITypeConverter

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

instance

public static final IMarkupExtensionFactoryTypeConverter instance
Shared instance of IMarkupExtensionFactoryTypeConverter.

Constructor Detail

IMarkupExtensionFactoryTypeConverter

public IMarkupExtensionFactoryTypeConverter()
Method Detail

canConvertFrom

public 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.

Specified by:
canConvertFrom in interface ITypeConverter
Parameters:
object - Object which shall be converted back.

canConvertTo

public 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.

Specified by:
canConvertTo in interface ITypeConverter
Parameters:
object - Object which shall be converted.
type - Class type to which the given object shall be converted.

convertTo

public 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.

Specified by:
convertTo in interface ITypeConverter
Parameters:
object - Object to convert.
type - Class type to convert to.
Returns:
The converted object.

convertFrom

public java.lang.Object convertFrom(java.lang.Object object)
Converts the given object back to an instance of the default Class type of this implementation.

Specified by:
convertFrom in interface ITypeConverter
Parameters:
object - The Object to convert back.
Returns:
The back converted object.


Copyright © 2000-2013 yWorks GmbH. All rights reserved