1 10 package com.hp.hpl.jena.datatypes.xsd.impl; 11 12 import com.hp.hpl.jena.datatypes.xsd.*; 13 14 21 public class XSDDateTimeType extends XSDAbstractDateTimeType { 22 23 26 public XSDDateTimeType(String typename) { 27 super(typename); 28 javaClass = XSDDateTime.class; 29 } 30 31 36 public Object parseValidated(String str) { 37 int len = str.length(); 38 int[] date = new int[TOTAL_SIZE]; 39 int[] timeZone = new int[2]; 40 41 int end = indexOf (str, 0, len, 'T'); 42 43 getDate(str, 0, end, date); 45 getTime(str, end+1, len, date, timeZone); 46 47 if ( date[utc]!=0 && date[utc]!='Z') { 48 AbstractDateTime.normalize(date, timeZone); 49 } 50 return new XSDDateTime(date, XSDDateTime.FULL_MASK); 51 } 52 53 } 54 55 84 | Popular Tags |