本文整理了Java中org.apache.ws.commons.schema.XmlSchemaForm.<init>()
方法的一些代码示例,展示了XmlSchemaForm.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaForm.<init>()
方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaForm
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!