![JAR search and dependency download from the Maven repository](/logo.png)
com.glookast.commons.timecode.xml.XmlAdapterTimecodeDuration Maven / Gradle / Ivy
package com.glookast.commons.timecode.xml;
import com.glookast.commons.timecode.AbstractTimecode;
import com.glookast.commons.timecode.TimecodeDuration;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class XmlAdapterTimecodeDuration extends XmlAdapter
{
@Override
public TimecodeDuration unmarshal(String value) throws Exception
{
try {
return (TimecodeDuration.valueOf(value));
} catch (Exception ex) {
}
return null;
}
@Override
public String marshal(TimecodeDuration value) throws Exception
{
return (AbstractTimecode.toString(value, AbstractTimecode.StringType.STORAGE));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy