gpt4 book ai didi

org.apache.ws.commons.schema.XmlSchemaUse类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 10:26:40 32 4
gpt4 key购买 nike

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

XmlSchemaUse介绍

[英]Indicator of how the attribute is used.
[中]属性使用方式的指示器。

代码示例

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

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

代码示例来源:origin: apache/cxf

public boolean isOptional() {
  return !use.equals(XmlSchemaUse.REQUIRED);
}

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

attribute.setAttribute("id", attributeObj.id);
String useType = attributeObj.use.getValue();
if (!useType.equals(Constants.BlockConstants.NONE)) {
  useType = convertString(useType);

代码示例来源:origin: apache/axis2-java

String use = att.getUse().toString();
if (USE_NONE.equals(use) || USE_OPTIONAL.equals(use)) {
  metainf.addtStatus(att.getWireName(), SchemaConstants.OPTIONAL_TYPE);
                  SchemaConstants.ATTRIBUTE_TYPE);
      String use = att.getUse().toString();
      if (USE_NONE.equals(use) || USE_OPTIONAL.equals(use)) {
        metainf.addtStatus(att.getWireName(), SchemaConstants.OPTIONAL_TYPE);
            SchemaConstants.ATTRIBUTE_TYPE);
String use = att.getUse().toString();
if (USE_NONE.equals(use) || USE_OPTIONAL.equals(use)) {
  metainf.addtStatus(att.getWireName(), SchemaConstants.OPTIONAL_TYPE);

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

attribute.setAttribute("id", attributeObj.id);
String useType = attributeObj.use.getValue();
if (!useType.equals(Constants.BlockConstants.NONE)) {
  useType = convertString(useType);

代码示例来源:origin: org.apache.axis2/axis2-adb-codegen

String use = att.getUse().toString();
if (USE_NONE.equals(use) || USE_OPTIONAL.equals(use)) {
  metainf.addtStatus(att.getWireName(), SchemaConstants.OPTIONAL_TYPE);
                  SchemaConstants.ATTRIBUTE_TYPE);
      String use = att.getUse().toString();
      if (USE_NONE.equals(use) || USE_OPTIONAL.equals(use)) {
        metainf.addtStatus(att.getWireName(), SchemaConstants.OPTIONAL_TYPE);
            SchemaConstants.ATTRIBUTE_TYPE);
String use = att.getUse().toString();
if (USE_NONE.equals(use) || USE_OPTIONAL.equals(use)) {
  metainf.addtStatus(att.getWireName(), SchemaConstants.OPTIONAL_TYPE);

代码示例来源: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/com.springsource.org.apache.ws.commons.schema

attribute.setAttribute("id", attributeObj.id);
String useType = attributeObj.use.getValue();
if (!useType.equals(Constants.BlockConstants.NONE)) {
  useType = convertString(useType);

代码示例来源: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.commons.schema/XmlSchema

attr.use = new XmlSchemaUse(useType);

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

attr.use = new XmlSchemaUse(useType);

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

attr.use = new XmlSchemaUse(useType);

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

/**
 * Adds the given parameter to the complex type.
 * @param complexType The complex type which the attribute will be added to
 * @param name The name of the attribute
 * @param xsdType The type of the attribute
 */
@SuppressWarnings("unchecked")
private static void addAttributeToComplexType(XmlSchemaComplexType complexType, String name,
    QName xsdType) {
  XmlSchemaAttribute attr = new XmlSchemaAttribute();
  attr.setName(name);
  attr.setSchemaTypeName(xsdType);
  attr.setUse(new XmlSchemaUse("optional"));
  XmlSchemaAttribute tmpAttr;
  for (Iterator<XmlSchemaAttribute> itr = complexType.getAttributes().getIterator(); 
       itr.hasNext();) {
    tmpAttr = itr.next();
    if (tmpAttr.getName().equals(attr.getName())) {
      /* current attribute is already set, nothing more to do */
      return;
    }
  }
  complexType.getAttributes().add(attr);
}

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com