/** Creates this object from existing XSDatatype. */ public XSDatatypeExp( XSDatatype dt, ExpressionPool _pool ) { super(dt.getName()); this.namespaceUri = dt.getNamespaceUri(); this.dt = dt; this.pool = _pool; this.ownerState = null; this.renderer = null; super.exp = _pool.createData(dt); }
/** Creates this object from existing XSDatatype. */ public XSDatatypeExp( XSDatatype dt, ExpressionPool _pool ) { super(dt.getName()); this.namespaceUri = dt.getNamespaceUri(); this.dt = dt; this.pool = _pool; this.ownerState = null; this.renderer = null; super.exp = _pool.createData(dt); }
/** Creates this object from existing XSDatatype. */ public XSDatatypeExp( XSDatatype dt, ExpressionPool _pool ) { super(dt.getName()); this.namespaceUri = dt.getNamespaceUri(); this.dt = dt; this.pool = _pool; this.ownerState = null; this.renderer = null; super.exp = _pool.createData(dt); }
/** Creates this object from existing XSDatatype. */ public XSDatatypeExp( XSDatatype dt, ExpressionPool _pool ) { super(dt.getName()); this.namespaceUri = dt.getNamespaceUri(); this.dt = dt; this.pool = _pool; this.ownerState = null; this.renderer = null; super.exp = _pool.createData(dt); }
public String getType(Datatype datatype, Datatype originalDatatype) { if (datatype instanceof XSDatatype) { final XSDatatype xsDatatype = (XSDatatype) datatype; final String namespaceUri = xsDatatype.getNamespaceUri(); final String localPart = xsDatatype.getName(); final QName qName = localPart == null ? null : new QName(namespaceUri, localPart); if (datatypeMap.keySet().contains(qName)) { return ((DatatypeResolver) datatypeMap.get(qName)).getType(originalDatatype); } else { // datatype. return getType(xsDatatype.getBaseType(), originalDatatype); } } return null; }
writer.start("data", new String[] { "type", x.getName()});
writer.start("data", new String[] { "type", x.getName()});
writer.start("data", new String[] { "type", x.getName()});
writer.start("data", new String[] { "type", x.getName()});
/** test singleton-ness of built-in datatypes. */ public void testSingletonness() throws Exception { for( int i=0; i<Const.builtinTypeNames.length; i++ ) { String name = Const.builtinTypeNames[i]; XSDatatype dt = DatatypeFactory.getTypeByName(name); assertNotNull(dt); assertEquals("freeze dry test for "+dt.getName(), freezeDry(dt), dt); // it must be singleton. } }