org.apache.ws.commons.schema.XmlSchemaForm.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(188)

本文整理了Java中org.apache.ws.commons.schema.XmlSchemaForm.<init>()方法的一些代码示例,展示了XmlSchemaForm.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaForm.<init>()方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaForm
类名称:XmlSchemaForm
方法名:<init>

XmlSchemaForm.<init>介绍

[英]Creates new XmlSchemaForm
[中]创建新的XmlSchemaForm

代码示例

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

  1. XmlSchemaForm getFormDefault(Element el, String attrName) {
  2. if (el.getAttributeNode(attrName) != null) {
  3. String value = el.getAttribute(attrName);
  4. return new XmlSchemaForm(value);
  5. } else
  6. return new XmlSchemaForm("unqualified");
  7. }

代码示例来源:origin: org.apache.ws.schema/XmlSchema

  1. XmlSchemaForm getFormDefault(Element el, String attrName) {
  2. if (el.getAttributeNode(attrName) != null) {
  3. String value = el.getAttribute(attrName);
  4. return new XmlSchemaForm(value);
  5. } else
  6. return new XmlSchemaForm("unqualified");
  7. }

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

  1. XmlSchemaForm getFormDefault(Element el, String attrName) {
  2. if (el.getAttributeNode(attrName) != null) {
  3. String value = el.getAttribute(attrName);
  4. return new XmlSchemaForm(value);
  5. } else
  6. return new XmlSchemaForm("unqualified");
  7. }

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

  1. /**
  2. * Creates new XmlSchemaAttribute
  3. */
  4. public XmlSchemaAttribute() {
  5. form = new XmlSchemaForm(XmlSchemaForm.NONE);
  6. use = new XmlSchemaUse(Constants.BlockConstants.NONE);
  7. }

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

  1. /**
  2. * Creates new XmlSchemaAttribute
  3. */
  4. public XmlSchemaAttribute() {
  5. form = new XmlSchemaForm(XmlSchemaForm.NONE);
  6. use = new XmlSchemaUse(Constants.BlockConstants.NONE);
  7. }

代码示例来源:origin: org.apache.ws.schema/XmlSchema

  1. /**
  2. * Creates new XmlSchemaAttribute
  3. */
  4. public XmlSchemaAttribute() {
  5. form = new XmlSchemaForm(XmlSchemaForm.NONE);
  6. use = new XmlSchemaUse(Constants.BlockConstants.NONE);
  7. }

代码示例来源:origin: org.apache.ws.schema/XmlSchema

  1. /**
  2. * Creates new XmlSchemaElement
  3. */
  4. public XmlSchemaElement() {
  5. constraints = new XmlSchemaObjectCollection();
  6. isAbstract = false;
  7. isNillable = false;
  8. form = new XmlSchemaForm(XmlSchemaForm.NONE);
  9. finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  10. block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  11. }

代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

  1. /**
  2. * Retrieve the XML schema with the given namespace.
  3. * @param cparams Common parameters used in the schema generator
  4. * @param namespace The target namespace of the XML schema
  5. * @return The XML schema object
  6. */
  7. private static XmlSchema retrieveSchema(CommonParams cparams, String namespace) {
  8. Map<String, XmlSchema> schemaMap = cparams.getSchemaMap();
  9. if (!schemaMap.containsKey(namespace)) {
  10. XmlSchema schema = new XmlSchema(namespace, cparams.getXmlSchemaCollection());
  11. schema.setNamespaceContext(new NamespaceMap());
  12. schemaMap.put(namespace, schema);
  13. schema.setElementFormDefault(new XmlSchemaForm(XmlSchemaForm.QUALIFIED));
  14. schema.setAttributeFormDefault(new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED));
  15. }
  16. return schemaMap.get(namespace);
  17. }

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

  1. /**
  2. * Creates new XmlSchemaElement
  3. */
  4. public XmlSchemaElement() {
  5. constraints = new XmlSchemaObjectCollection();
  6. isAbstract = false;
  7. isNillable = false;
  8. form = new XmlSchemaForm(XmlSchemaForm.NONE);
  9. finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  10. block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  11. }

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

  1. /**
  2. * Creates new XmlSchemaElement
  3. */
  4. public XmlSchemaElement() {
  5. constraints = new XmlSchemaObjectCollection();
  6. isAbstract = false;
  7. isNillable = false;
  8. form = new XmlSchemaForm(XmlSchemaForm.NONE);
  9. finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  10. block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  11. }

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

  1. attr.form = new XmlSchemaForm(formValue);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

  1. attr.form = new XmlSchemaForm(formValue);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

  1. attr.form = new XmlSchemaForm(formValue);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

  1. /**
  2. * Creates new XmlSchema
  3. */
  4. public XmlSchema(XmlSchemaCollection parent) {
  5. this.parent = parent;
  6. attributeFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED);
  7. elementFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED);
  8. blockDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  9. finalDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  10. items = new XmlSchemaObjectCollection();
  11. includes = new XmlSchemaObjectCollection();
  12. elements = new XmlSchemaObjectTable();
  13. attributeGroups = new XmlSchemaObjectTable();
  14. attributes = new XmlSchemaObjectTable();
  15. groups = new XmlSchemaObjectTable();
  16. notations = new XmlSchemaObjectTable();
  17. schemaTypes = new XmlSchemaObjectTable();
  18. }

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

  1. if (el.hasAttribute("form")) {
  2. String formDef = el.getAttribute("form");
  3. element.form = new XmlSchemaForm(formDef);
  4. isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

  1. if (el.hasAttribute("form")) {
  2. String formDef = el.getAttribute("form");
  3. element.form = new XmlSchemaForm(formDef);
  4. isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

  1. if (el.hasAttribute("form")) {
  2. String formDef = el.getAttribute("form");
  3. element.form = new XmlSchemaForm(formDef);
  4. isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

  1. attributeFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED);
  2. elementFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED);
  3. blockDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  4. finalDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

  1. attributeFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED);
  2. elementFormDefault = new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED);
  3. blockDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);
  4. finalDefault = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE);

相关文章