コード例 #1
0
 public Object convertAttributeValue(Element a) {
   String type = a.getAttributeNS(XSI_NS, "type");
   if ((type == null) || ("".equals(type))) {
     System.out.println(
         "----> convertAttributeValue " + type + " " + a.getFirstChild().getNodeValue());
     return a.getFirstChild().getNodeValue();
   } else {
     System.out.println("----> convertAttributeValue " + type);
     return c.convertTypedLiteral(type, "\"" + a.getFirstChild().getNodeValue() + "\"");
   }
 }
コード例 #2
0
 public Object convertTypedLiteral(String datatype, Object value) {
   return c.convertTypedLiteral(datatype, value);
 }