
com.glookast.commons.timecode.XmlAdapterTimecodeDuration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-timecode Show documentation
Show all versions of commons-timecode Show documentation
XML base schemas used for interfacing with Glookast Products
package com.glookast.commons.timecode;
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