XmlSchemaForm getFormDefault(Element el, String attrName) { if (el.getAttributeNode(attrName) != null) { String value = el.getAttribute(attrName); return new XmlSchemaForm(value); } else return new XmlSchemaForm("unqualified"); }
XmlSchemaForm getFormDefault(Element el, String attrName) { if (el.getAttributeNode(attrName) != null) { String value = el.getAttribute(attrName); return new XmlSchemaForm(value); } else return new XmlSchemaForm("unqualified"); }
XmlSchemaForm getFormDefault(Element el, String attrName) { if (el.getAttributeNode(attrName) != null) { String value = el.getAttribute(attrName); return new XmlSchemaForm(value); } else return new XmlSchemaForm("unqualified"); }
/** * Creates new XmlSchemaAttribute */ public XmlSchemaAttribute() { form = new XmlSchemaForm(XmlSchemaForm.NONE); use = new XmlSchemaUse(Constants.BlockConstants.NONE); }
/** * Creates new XmlSchemaAttribute */ public XmlSchemaAttribute() { form = new XmlSchemaForm(XmlSchemaForm.NONE); use = new XmlSchemaUse(Constants.BlockConstants.NONE); }
/** * Creates new XmlSchemaAttribute */ public XmlSchemaAttribute() { form = new XmlSchemaForm(XmlSchemaForm.NONE); use = new XmlSchemaUse(Constants.BlockConstants.NONE); }
/** * Creates new XmlSchemaElement */ public XmlSchemaElement() { constraints = new XmlSchemaObjectCollection(); isAbstract = false; isNillable = false; form = new XmlSchemaForm(XmlSchemaForm.NONE); finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); }
/** * Retrieve the XML schema with the given namespace. * @param cparams Common parameters used in the schema generator * @param namespace The target namespace of the XML schema * @return The XML schema object */ private static XmlSchema retrieveSchema(CommonParams cparams, String namespace) { Map<String, XmlSchema> schemaMap = cparams.getSchemaMap(); if (!schemaMap.containsKey(namespace)) { XmlSchema schema = new XmlSchema(namespace, cparams.getXmlSchemaCollection()); schema.setNamespaceContext(new NamespaceMap()); schemaMap.put(namespace, schema); schema.setElementFormDefault(new XmlSchemaForm(XmlSchemaForm.QUALIFIED)); schema.setAttributeFormDefault(new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED)); } return schemaMap.get(namespace); }
/** * Creates new XmlSchemaElement */ public XmlSchemaElement() { constraints = new XmlSchemaObjectCollection(); isAbstract = false; isNillable = false; form = new XmlSchemaForm(XmlSchemaForm.NONE); finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); }
/** * Creates new XmlSchemaElement */ public XmlSchemaElement() { constraints = new XmlSchemaObjectCollection(); isAbstract = false; isNillable = false; form = new XmlSchemaForm(XmlSchemaForm.NONE); finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); }
attr.form = new XmlSchemaForm(formValue);
attr.form = new XmlSchemaForm(formValue);
attr.form = new XmlSchemaForm(formValue);
/** * Creates new XmlSchema */ public XmlSchema(XmlSchemaCollection parent) { this.parent = parent; attributeFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED); elementFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED); blockDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); finalDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); items = new XmlSchemaObjectCollection(); includes = new XmlSchemaObjectCollection(); elements = new XmlSchemaObjectTable(); attributeGroups = new XmlSchemaObjectTable(); attributes = new XmlSchemaObjectTable(); groups = new XmlSchemaObjectTable(); notations = new XmlSchemaObjectTable(); schemaTypes = new XmlSchemaObjectTable(); }
if (el.hasAttribute("form")) { String formDef = el.getAttribute("form"); element.form = new XmlSchemaForm(formDef); isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);
if (el.hasAttribute("form")) { String formDef = el.getAttribute("form"); element.form = new XmlSchemaForm(formDef); isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);
if (el.hasAttribute("form")) { String formDef = el.getAttribute("form"); element.form = new XmlSchemaForm(formDef); isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);
attributeFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED); elementFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED); blockDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); finalDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
attributeFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED); elementFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED); blockDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); finalDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);