net.ripe.rpki.commons.xml.converters
Class VersionedIdConverter
java.lang.Object
net.ripe.rpki.commons.xml.converters.VersionedIdConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter
public class VersionedIdConverter
- extends Object
- implements com.thoughtworks.xstream.converters.SingleValueConverter
Handles old id consisting of just a "long" (without version) for backwards
compatibility.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionedIdConverter
public VersionedIdConverter()
canConvert
public boolean canConvert(Class type)
- Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
fromString
public Object fromString(String str)
- Specified by:
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
toString
public String toString(Object obj)
- Specified by:
toString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Copyright © 2008-2014 RIPE NCC, the Netherlands. All Rights Reserved.