/** * Convenience method for processing an any attribute property. Required * schema components will be generated and set accordingly. * * @param type the ComplexType which compositor(s) should be added to */ private void addAnyAttributeToSchema(ComplexType type) { AnyAttribute anyAttribute = new AnyAttribute(); anyAttribute.setProcessContents(SKIP); anyAttribute.setNamespace(Constants.ANY_NAMESPACE_OTHER); if (type.getSimpleContent() != null) { SimpleContent content = type.getSimpleContent(); if(content.getExtension() != null){ content.getExtension().setAnyAttribute(anyAttribute); }else if(content.getRestriction() != null){ content.getRestriction().setAnyAttribute(anyAttribute); } } else { type.setAnyAttribute(anyAttribute); } }
anyAttribute.setProcessContents(AnyAttribute.LAX); if (owner instanceof ComplexType) { ((ComplexType)owner).setAnyAttribute(anyAttribute);
anyAttribute.setProcessContents(AnyAttribute.LAX); if (owner instanceof ComplexType) { ((ComplexType)owner).setAnyAttribute(anyAttribute);
/** * Convenience method for processing an any attribute property. Required * schema components will be generated and set accordingly. * * @param type the ComplexType which compositor(s) should be added to */ private void addAnyAttributeToSchema(ComplexType type) { AnyAttribute anyAttribute = new AnyAttribute(); anyAttribute.setProcessContents(SKIP); anyAttribute.setNamespace(Constants.ANY_NAMESPACE_OTHER); if (type.getSimpleContent() != null) { SimpleContent content = type.getSimpleContent(); if(content.getExtension() != null){ content.getExtension().setAnyAttribute(anyAttribute); }else if(content.getRestriction() != null){ content.getRestriction().setAnyAttribute(anyAttribute); } } else { type.setAnyAttribute(anyAttribute); } }
AnyAttribute anyAttribute = new AnyAttribute(); anyAttribute.setProcessContents(AnyAttribute.LAX); ct.setAnyAttribute(anyAttribute); } else if (mapping instanceof AnyObjectMapping) { processAnyMapping(seq, false);
AnyAttribute anyAttribute = new AnyAttribute(); anyAttribute.setProcessContents(AnyAttribute.LAX); ct.setAnyAttribute(anyAttribute); } else if (mapping instanceof XMLAnyObjectMapping) { processAnyMapping(seq, false);
AnyAttribute anyAttribute = new AnyAttribute(); anyAttribute.setProcessContents(AnyAttribute.LAX); ct.setAnyAttribute(anyAttribute); } else if (mapping instanceof AnyObjectMapping) { processAnyMapping(seq, false);