public ATermAppl getValue( int i ) { Object value = values.get( i ); String lexical = valueSpace.getLexicalForm( value ); // xsdlib wrongly expects the gMonth value to be in the format --MM-- // whereas the correct format is --MM. This small hack removes the // string "--" from the end of xsdlib generated lexical representation // to create a valid gMonth value assert lexical.endsWith( "--" ); assert lexical.length() == 6; lexical = lexical.substring( 0, 4 ); return ATermUtils.makeTypedLiteral( lexical, getPrimitiveType().getURI() ); } }
public ATermAppl getValue( int i ) { Object value = values.get( i ); // System.out.println(this + " " + i + " " + value); String lexical = valueSpace.getLexicalForm( value ); return ATermUtils.makeTypedLiteral( lexical, getPrimitiveType().getURI() ); }