private static void factorySetupType(XmlSchemaAttribute element, SchemaCollection schemaCollection, AttributeInfo attributeInfo) { attributeInfo.type = element.getSchemaType(); if (attributeInfo.type == null) { if (element.getSchemaTypeName().equals(Constants.XSD_ANYTYPE)) { attributeInfo.anyType = true; } else { attributeInfo.type = schemaCollection.getTypeByQName(element.getSchemaTypeName()); if (attributeInfo.type == null && !element.getSchemaTypeName() .getNamespaceURI().equals(Constants.URI_2001_SCHEMA_XSD)) { JavascriptUtils.unsupportedConstruct("MISSING_TYPE", element.getSchemaTypeName() .toString(), element.getQName(), element); } } } else if (attributeInfo.type.getQName() != null && Constants.XSD_ANYTYPE.equals(attributeInfo.type.getQName())) { attributeInfo.anyType = true; } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
if (item instanceof XmlSchemaAttribute) { final XmlSchemaAttribute attribute = (XmlSchemaAttribute) item; final Object old = typeInfo.attributes.put(attribute.getQName().getLocalPart(), attribute.getSchemaTypeName()); if (old != null) { throw new IllegalArgumentException("Complain to your expert group member, spec does not support attributes with the same local name and differing namespaces: original: " + old + ", duplicate local name: " + attribute);
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
private void addOneSchemaCrossImports(XmlSchema schema) { /* * We need to visit all the top-level items. */ for (XmlSchemaElement element : schema.getElements().values()) { addElementCrossImportsElement(schema, element); } for (XmlSchemaAttribute attribute : schema.getAttributes().values()) { XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName()); XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName()); } for (XmlSchemaType type : schema.getSchemaTypes().values()) { addCrossImportsType(schema, type); } }
attType = processPrimitiveType(attribute.getSchemaTypeName()); attribute.getSchemaType(), null, false); } else { membertype = processPrimitiveType(attribute.getSchemaTypeName());
throws SchemaCompilationException { QName schemaTypeName = att.getSchemaTypeName(); if (schemaTypeName != null) { if (att.getWireName() != null) { if (attributeSimpleType == null) { QName attributeSchemaQname = att.getSchemaTypeName(); if (attributeSchemaQname != null) { resolvedSchema = getParentSchema(parentSchema, attributeSchemaQname, QName schemaTypeQName = att.getSchemaTypeName(); if (schemaTypeQName == null) {
throws SchemaCompilationException { QName schemaTypeName = att.getSchemaTypeName(); if (schemaTypeName != null) { if (att.getWireName() != null) { if (attributeSimpleType == null) { QName attributeSchemaQname = att.getSchemaTypeName(); if (attributeSchemaQname != null) { resolvedSchema = getParentSchema(parentSchema, attributeSchemaQname, QName schemaTypeQName = att.getSchemaTypeName(); if (schemaTypeQName == null) {
DBConstants.DBSFields.COLUMN, DBConstants.DBSFields.ATTRIBUTE, namespace, sequenceDataAttr.getSchemaTypeName(), new HashSet<String>(), DBConstants.DataCategory.VALUE, DBConstants.ResultTypes.XML, null, ParamValue.PARAM_VALUE_SCALAR, null));