protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
public Object getValue( String value ) { // xsdlib wrongly expects the gMonth value to be in the format --MM-- // whereas the correct format is --MM. This small hack appends the // string "--" at the end of valid gMonth values to turn them into // the format required by xsdlib value = value + "--"; return dt.createValue( value, null ); }
public Object getValue(String value, String datatypeURI) { return dt.createValue( value, null ); }
public Object getValue( String literal ) { return dt.createValue( literal, null ); }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
protected Object convertToValue(String txt) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bindable = (DatabindableDatatype) datatype; return bindable.createJavaObject(txt, this); } else { return datatype.createValue(txt, this); } } }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
public Object getData() { if (data == null) { String text = getTextTrim(); if ((text != null) && (text.length() > 0)) { if (datatype instanceof DatabindableDatatype) { DatabindableDatatype bind = (DatabindableDatatype) datatype; data = bind.createJavaObject(text, this); } else { data = datatype.createValue(text, this); } } } return data; }
/** test convertToObject method */ public void testConvertToObject() throws DatatypeException { XSDatatype t = createList("myTest", "string" ); ListValueType v = (ListValueType) t.createValue(" a b c",DummyContextProvider.theInstance); assertTrue(v.values.length==3); assertEquals(v.values[0],"a"); assertEquals(v.values[1],"b"); assertEquals(v.values[2],"c"); } }