org.cubeengine.converter.converter
Class LocaleConverter
java.lang.Object
org.cubeengine.converter.converter.SimpleConverter<Locale>
org.cubeengine.converter.converter.LocaleConverter
- All Implemented Interfaces:
- ClassedConverter<Locale>, Converter<Locale,Class<? extends Locale>>
public class LocaleConverter
- extends SimpleConverter<Locale>
A Converter for Locale
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleConverter
public LocaleConverter()
toNode
public Node toNode(Locale locale)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the object into a serializable Node
- Specified by:
toNode in class SimpleConverter<Locale>
- Parameters:
locale - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException
fromNode
public Locale fromNode(Node node)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the node back into the original object
- Specified by:
fromNode in class SimpleConverter<Locale>
- Parameters:
node - the node to convert
- Returns:
- the converted node
- Throws:
ConversionException
Copyright © 2013–2017. All rights reserved.