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

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

本文整理了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

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");
}

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

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");
}

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

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");
}

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

/**
 * Creates new XmlSchemaAttribute
 */
public XmlSchemaAttribute() {
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  use = new XmlSchemaUse(Constants.BlockConstants.NONE);
}

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

/**
 * Creates new XmlSchemaAttribute
 */
public XmlSchemaAttribute() {
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  use = new XmlSchemaUse(Constants.BlockConstants.NONE);
}

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

/**
 * Creates new XmlSchemaAttribute
 */
public XmlSchemaAttribute() {
  form = new XmlSchemaForm(XmlSchemaForm.NONE);
  use = new XmlSchemaUse(Constants.BlockConstants.NONE);
}

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

/**
 * 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);
}

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

/**
 * 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);
}

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

/**
 * 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);
}

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

/**
 * 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);
}

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

attr.form = new XmlSchemaForm(formValue);

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

attr.form = new XmlSchemaForm(formValue);

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

attr.form = new XmlSchemaForm(formValue);

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

/**
 * 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();
}

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

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

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

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

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

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

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

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

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

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

相关文章