org.cubeengine.converter.converter
Class StringConverter

java.lang.Object
  extended by org.cubeengine.converter.converter.SimpleConverter<String>
      extended by org.cubeengine.converter.converter.StringConverter
All Implemented Interfaces:
ClassedConverter<String>, Converter<String,Class<? extends String>>

public class StringConverter
extends SimpleConverter<String>

A Converter for String


Constructor Summary
StringConverter()
           
 
Method Summary
 String fromNode(Node node)
          Converts the node back into the original object
 Node toNode(String object)
          Converts the object into a serializable Node
 
Methods inherited from class org.cubeengine.converter.converter.SimpleConverter
fromNode, toNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringConverter

public StringConverter()
Method Detail

toNode

public Node toNode(String object)
            throws ConversionException
Description copied from class: SimpleConverter
Converts the object into a serializable Node

Specified by:
toNode in class SimpleConverter<String>
Parameters:
object - the object to convert
Returns:
the converted object
Throws:
ConversionException

fromNode

public String fromNode(Node node)
                throws ConversionException
Description copied from class: SimpleConverter
Converts the node back into the original object

Specified by:
fromNode in class SimpleConverter<String>
Parameters:
node - the node to convert
Returns:
the converted node
Throws:
ConversionException


Copyright © 2013–2017. All rights reserved.