Java 类org.eclipse.emf.ecore.xml.type.internal.XMLDuration 实例源码

项目:OpenSPIFe    文件:JScienceFactoryImpl.java   
private Amount<Duration> parseXMLDuration(String initialValue) {
    XMLDuration duration = new XMLDuration(initialValue);
    long ms = duration.getTimeInMillis(new Date(0));
    return AmountUtils.toAmount(ms, DateUtils.MILLISECONDS);
}
项目:eclipse-avro    文件:XMLTypeFactoryImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public Duration createDuration(String literal)
{
  return literal == null ? null : new XMLDuration(collapseWhiteSpace(literal));
}
项目:clickwatch    文件:XMLTypeFactoryImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public Duration createDuration(String literal)
{
  return literal == null ? null : new XMLDuration(collapseWhiteSpace(literal));
}