private boolean hasAttributes(XmlSchemaComplexType complexType) { // Now lets see if we have any attributes... // This should probably look at the restricted and substitute types too. return complexType.getAnyAttribute() != null || complexType.getAttributes().size() > 0; }
private static boolean hasAttributes(XmlSchemaComplexType complexType) { // Now lets see if we have any attributes... // This should probably look at the restricted and substitute types too. return complexType.getAnyAttribute() != null || !complexType.getAttributes().isEmpty(); }
private static boolean hasAttributes(XmlSchemaComplexType complexType) { // Now lets see if we have any attributes... // This should probably look at the restricted and substitute types too. if (complexType.getAnyAttribute() != null || !complexType.getAttributes().isEmpty()) { return true; } return false; }
private static boolean hasAttributes(XmlSchemaComplexType complexType) { // Now lets see if we have any attributes... // This should probably look at the restricted and substitute types too. if (complexType.getAnyAttribute() != null || !complexType.getAttributes().isEmpty()) { return true; } return false; }
protected static boolean hasAttributes(XmlSchemaComplexType complexType) { // Now lets see if we have any attributes... // This should probably look at the restricted and substitute types too. if (complexType.getAnyAttribute() != null || complexType.getAttributes().getCount() > 0) return true; else return false; }
setupAttr(doc, attrColl, schema, serializedComplexType); XmlSchemaAnyAttribute anyAttribute = complexTypeObj.getAnyAttribute(); if(anyAttribute != null) { serializedComplexType.appendChild(serializeAnyAttribute(doc, anyAttribute, schema));
setupAttr(doc, attrColl, schema, serializedComplexType); XmlSchemaAnyAttribute anyAttribute = complexTypeObj.getAnyAttribute(); if(anyAttribute != null) { serializedComplexType.appendChild(serializeAnyAttribute(doc, anyAttribute, schema));
if (complexType.getAttributes().getCount() != 0 || complexType.getAnyAttribute() != null) {
if (complexType.getAttributes().getCount() != 0 || complexType.getAnyAttribute() != null) {
private BeanWriterMetaInfoHolder processComplexType( QName parentElementQName, XmlSchemaComplexType complexType, XmlSchema parentSchema) throws SchemaCompilationException { XmlSchemaParticle particle = complexType.getParticle(); BeanWriterMetaInfoHolder metaInfHolder = new BeanWriterMetaInfoHolder(); if (particle != null) { //Process the particle processParticle(parentElementQName, particle, metaInfHolder, parentSchema); } if (complexType.isMixed()) { throw new SchemaCompilationException("XSD complexType with mix content not " + "supported in ADB"); } //process attributes - first look for the explicit attributes processAttributes(complexType.getAttributes(), metaInfHolder, parentSchema); //process any attribute //somehow the xml schema parser does not seem to pickup the any attribute!! XmlSchemaAnyAttribute anyAtt = complexType.getAnyAttribute(); if (anyAtt != null) { processAnyAttribute(metaInfHolder, anyAtt); } //process content ,either complex or simple if (complexType.getContentModel() != null) { processContentModel(complexType.getContentModel(), metaInfHolder, parentSchema); } return metaInfHolder; }
private BeanWriterMetaInfoHolder processComplexType( QName parentElementQName, XmlSchemaComplexType complexType, XmlSchema parentSchema) throws SchemaCompilationException { XmlSchemaParticle particle = complexType.getParticle(); BeanWriterMetaInfoHolder metaInfHolder = new BeanWriterMetaInfoHolder(); if (particle != null) { //Process the particle processParticle(parentElementQName, particle, metaInfHolder, parentSchema); } if (complexType.isMixed()) { throw new SchemaCompilationException("XSD complexType with mix content not " + "supported in ADB"); } //process attributes - first look for the explicit attributes processAttributes(complexType.getAttributes(), metaInfHolder, parentSchema); //process any attribute //somehow the xml schema parser does not seem to pickup the any attribute!! XmlSchemaAnyAttribute anyAtt = complexType.getAnyAttribute(); if (anyAtt != null) { processAnyAttribute(metaInfHolder, anyAtt); } //process content ,either complex or simple if (complexType.getContentModel() != null) { processContentModel(complexType.getContentModel(), metaInfHolder, parentSchema); } return metaInfHolder; }