public String getDefaultValueForSimpleType(XmlSchemaType type) { String val = defaultValueForSimpleType.get(type.getName()); if (val == null) { // ints and such return the appropriate 0. return "''"; } return val; }
public String javascriptParseExpression(XmlSchemaType type, String value) { if (!(type instanceof XmlSchemaSimpleType)) { return value; } String name = type.getName(); if (intTypes.contains(name)) { return "parseInt(" + value + ")"; } else if (floatTypes.contains(name)) { return "parseFloat(" + value + ")"; } else if ("boolean".equals(name)) { return "(" + value + " == 'true')"; } else { return value; } }
private void addCorbaTypes(XmlSchema xmlSchemaTypes) throws Exception { Map<QName, XmlSchemaType> objs = xmlSchemaTypes.getSchemaTypes(); CorbaType corbaTypeImpl = null; for (XmlSchemaType type : objs.values()) { boolean anonymous = WSDLTypes.isAnonymous(type.getName()); corbaTypeImpl = helper.convertSchemaToCorbaType(type, type.getQName(), null, null, anonymous); if (corbaTypeImpl != null && !helper.isDuplicate(corbaTypeImpl)) { typeMappingType.getStructOrExceptionOrUnion().add(corbaTypeImpl); } } addCorbaElements(corbaTypeImpl, xmlSchemaTypes); }
anonymous = true; } else { anonymous = WSDLTypes.isAnonymous(schemaType.getName());
schemaType.getName(), "complexType"));
} else if (schemaType != null) { XmlSchemaType st = schemaType; boolean anonymous = WSDLTypes.isAnonymous(st.getName()); QName typeName = null; if (anonymous) {
if (schemaType.getName() != null) {
if (schemaType.getName() != null) {
if (schemaType != null && schemaType.getName() != null) {
if (schemaType != null && schemaType.getName() != null) {