本文整理了Java中org.apache.ws.commons.schema.XmlSchemaForm
类的一些代码示例,展示了XmlSchemaForm
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaForm
类的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaForm
类名称:XmlSchemaForm
[英]Indicates if attributes or elements need to be qualified or left unqualified.
[中]指示属性或元素是否需要限定或保持限定。
代码示例来源:origin: org.apache.cxf/cxf-core
public void setSchema(XmlSchema schema) {
this.schema = schema;
isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
代码示例来源: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.axis2/axis2-kernel
protected XmlSchemaForm getAttrFormDefaultSetting() {
if (FORM_DEFAULT_UNQUALIFIED.equals(getAttrFormDefault())) {
return XmlSchemaForm.schemaValueOf(FORM_DEFAULT_UNQUALIFIED);
} else {
return XmlSchemaForm.schemaValueOf(FORM_DEFAULT_QUALIFIED);
}
}
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
boolean isQualified = schema.getAttributeFormDefault().getValue()
.equals(XmlSchemaForm.QUALIFIED);
if (attr.name != null) {
attr.form = new XmlSchemaForm(formValue);
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
String formQualified = schemaObj.attributeFormDefault.getValue();
String formQualified = schemaObj.elementFormDefault.getValue();
代码示例来源:origin: org.apache.ws.schema/XmlSchema
boolean isQualified = schema.getAttributeFormDefault().getValue()
.equals(XmlSchemaForm.QUALIFIED);
if (attr.name != null) {
attr.form = new XmlSchemaForm(formValue);
代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema
attributeObj.fixedValue);
String formType = attributeObj.form.getValue();
if (!formType.equals(XmlSchemaForm.NONE)) {
formType = convertString(formType);
代码示例来源:origin: apache/cxf
public void setSchema(XmlSchema schema) {
this.schema = schema;
isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema
boolean isQualified = schema.getAttributeFormDefault().getValue().equals(XmlSchemaForm.QUALIFIED);
if (attr.name != null) {
final String name = attr.name;
attr.form = new XmlSchemaForm(formValue);
代码示例来源: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.commons.schema/XmlSchema
attributeObj.fixedValue);
String formType = attributeObj.form.getValue();
if (!formType.equals(XmlSchemaForm.NONE)) {
formType = convertString(formType);
代码示例来源:origin: org.apache.axis2/axis2-kernel
protected XmlSchemaForm getElementFormDefaultSetting() {
if (FORM_DEFAULT_UNQUALIFIED.equals(getElementFormDefault())) {
return XmlSchemaForm.schemaValueOf(FORM_DEFAULT_UNQUALIFIED);
} else {
return XmlSchemaForm.schemaValueOf(FORM_DEFAULT_QUALIFIED);
}
}
代码示例来源:origin: org.apache.cxf/cxf-api
public void setSchema(XmlSchema schema) {
this.schema = schema;
isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
boolean isQualified = schema.getElementFormDefault().getValue().equals(
XmlSchemaForm.QUALIFIED);
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
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
attributeObj.fixedValue);
String formType = attributeObj.form.getValue();
if (!formType.equals(XmlSchemaForm.NONE)) {
formType = convertString(formType);
代码示例来源:origin: apache/axis2-java
protected XmlSchemaForm getAttrFormDefaultSetting() {
if (FORM_DEFAULT_UNQUALIFIED.equals(getAttrFormDefault())) {
return XmlSchemaForm.schemaValueOf(FORM_DEFAULT_UNQUALIFIED);
} else {
return XmlSchemaForm.schemaValueOf(FORM_DEFAULT_QUALIFIED);
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public void setSchema(XmlSchema schema) {
this.schema = schema;
isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED);
isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED);
}
代码示例来源:origin: org.apache.ws.schema/XmlSchema
boolean isQualified = schema.getElementFormDefault().getValue().equals(
XmlSchemaForm.QUALIFIED);
if (el.hasAttribute("form")) {
String formDef = el.getAttribute("form");
element.form = new XmlSchemaForm(formDef);
isQualified = formDef.equals(XmlSchemaForm.QUALIFIED);
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
/**
* Creates new XmlSchemaAttribute
*/
public XmlSchemaAttribute() {
form = new XmlSchemaForm(XmlSchemaForm.NONE);
use = new XmlSchemaUse(Constants.BlockConstants.NONE);
}
内容来源于网络,如有侵权,请联系作者删除!