gpt4 book ai didi

org.eclipse.xsd.util.XSDUtil类的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 17:21:05 24 4
gpt4 key购买 nike

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

XSDUtil介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

protected final AttributeType xsAnyType() {
  XSDSchema schema = XSDUtil.getSchemaForSchema(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
  for ( Iterator i = schema.getTypeDefinitions().iterator(); i.hasNext(); ) {
    XSDTypeDefinition t = (XSDTypeDefinition) i.next();
    if ( XS.ANYTYPE.getLocalPart().equals( t.getName() ) ) {
      return findType(t);
    }
  }
  throw new IllegalStateException("XS schema not present");
}

代码示例来源:origin: geotools/geotools

int pType = XSDUtil.nodeType(particle.getElement());

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

new Object [] 
       populateDiagnostic
        (xsdDiagnostic,
         "content-valid.1", 
         new Object [] { XSDConstants.uri(child), xsdComplexTypeDefinition.getURI(), getExpected(state) })
      }));
   xsdDiagnostic.setAnnotationURI(part + "#" + anchor);
         new Object [] 
          populateDiagnostic
           (xsdDiagnostic,
            "content-valid.3", 
   new Object [] 
    populateDiagnostic
     (xsdDiagnostic,
      "content-valid.2", 
      new Object [] { xsdComplexTypeDefinition.getURI(), getExpected(state) }) 
   }));
xsdDiagnostic.setAnnotationURI(part + "#" + anchor);

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

/**
 * Checks the given element's content against the complex type with a given name retrieved from the given schema.
 * @param schema the schema used to retrieve the complex type definition.
 * @param complexTypeName the name of the complex type.
 * @param part annotation part.
 * @param anchor annotation anchor.
 * @param element the element whose content to check.
 * @return a list of partially populated XSDDiagnostics---the primary component is not set---or the empty list if the content is valid.
 * @since 2.5
 */
public static List<XSDDiagnostic> checkComplexContent(XSDSchema schema, String complexTypeName, String part, String anchor, Element element)
{
 XSDComplexTypeDefinition xsdComplexTypeDefinition = schema.resolveComplexTypeDefinition(complexTypeName);
 return checkComplexContent(xsdComplexTypeDefinition, part, anchor, element);
}

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

if (value.contains("child:") && xsdSimpleTypeDefinition != null && XSDUtil.isSchemaForSchemaNamespace(xsdSimpleTypeDefinition.getTargetNamespace()))

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

protected XSDDiagnostic checkComplexContent
 (XSDComplexTypeDefinition xsdComplexTypeDefinition,
  String part, 
  String anchor, 
  Element element)
{
 List<XSDDiagnostic> xsdDiagnostics = XSDUtil.checkComplexContent(xsdComplexTypeDefinition, part, anchor, element);
 for (XSDDiagnostic xsdDiagnostic : xsdDiagnostics)
 {
  xsdDiagnostic.setPrimaryComponent(this);
 }
 getDiagnostics().addAll(xsdDiagnostics);
 return xsdDiagnostics.isEmpty() ? null : xsdDiagnostics.get(xsdDiagnostics.size() - 1);
}

代码示例来源:origin: geotools/geotools

public static void main(String[] args) throws Exception {
  XSDSchema schema = XSDUtil.getSchemaForSchema(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
  SchemaGenerator generator = new SchemaGenerator(schema);
  generator.setComplexTypes(false);
  generator.setFollowComplexTypes(false);
  generator.setSimpleTypes(true);
  generator.generate();
}

代码示例来源:origin: geotools/geotools

int pType = XSDUtil.nodeType(particle.getElement());

代码示例来源:origin: geotools/geotools

XSDUtil.getSchemaForSchema(XSDUtil.SCHEMA_FOR_SCHEMA_URI_2001)
    .getSimpleTypeIdMap()
    .get("string");

代码示例来源:origin: org.geotools/gt2-xml-core

int pType = XSDUtil.nodeType(particle.getElement());

代码示例来源:origin: org.eclipse/org.eclipse.xsd

XSDSchema xsdSchemaForSchema = XSDUtil./*{@link XSDUtil#getSchemaForSchema */getSchemaForSchema/*}*/(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
ResourceSet resourceSet = xsdSchemaForSchema./*{@link EObject#eResource */eResource/*}*/()./*{@link Resource#getResourceSet */getResourceSet/*}*/();

代码示例来源:origin: org.geotools/gt2-xml-xsd

int pType = XSDUtil.nodeType(particle.getElement());

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

XSDSchema xsdSchemaForSchema = XSDUtil./*{@link XSDUtil#getSchemaForSchema */getSchemaForSchema/*}*/(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
ResourceSet resourceSet = xsdSchemaForSchema./*{@link EObject#eResource */eResource/*}*/()./*{@link Resource#getResourceSet */getResourceSet/*}*/();

代码示例来源:origin: org.geotools.xsd/gt-core

int pType = XSDUtil.nodeType(particle.getElement());

代码示例来源:origin: org.geotools.xsd/gt-core

XSDSimpleTypeDefinition type = (XSDSimpleTypeDefinition) XSDUtil.getSchemaForSchema(XSDUtil.SCHEMA_FOR_SCHEMA_URI_2001)
                                .getSimpleTypeIdMap()
                                .get("string");

代码示例来源:origin: org.geotools/gt2-xml-core

XSDSimpleTypeDefinition type = (XSDSimpleTypeDefinition) XSDUtil.getSchemaForSchema(XSDUtil.SCHEMA_FOR_SCHEMA_URI_2001)
                                .getSimpleTypeIdMap()
                                .get("string");

代码示例来源:origin: org.geotools/gt2-xml-xsd

XSDUtil.getSchemaForSchema( XSDUtil.SCHEMA_FOR_SCHEMA_URI_2001 )
.getSimpleTypeIdMap().get( "string" );

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