org.eclipse.xsd.XSDComplexTypeDefinition.getTargetNamespace()方法的使用及代码示例

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

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

XSDComplexTypeDefinition.getTargetNamespace介绍

暂无

代码示例

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

if (!xsdType.getTargetNamespace().equals(schema.getTargetNamespace())) {
  return findType(xsdType);

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

if (!xsdType.getTargetNamespace().equals(schema.getTargetNamespace())) {
  return findType(xsdType);

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

/**
 * @param schema
 * @return
 */
public List getComplexTypes(XSDSchema schema, boolean showFromIncludes)
{
 List allTypes = schema.getTypeDefinitions();
 List list = new ArrayList();
 for (Iterator i = allTypes.iterator(); i.hasNext();)
 {
  XSDTypeDefinition td = (XSDTypeDefinition) i.next();
  if (td instanceof XSDComplexTypeDefinition)
  {
   XSDComplexTypeDefinition ct = (XSDComplexTypeDefinition) td;
   if (isSameNamespace(ct.getTargetNamespace(),schema.getTargetNamespace()) && (ct.getRootContainer() == schema || showFromIncludes))
   {
    list.add(ct);
   }
  }
 }
 List adapterList = new ArrayList();
 populateAdapterList(list, adapterList);
 return adapterList;
}

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

if (baseCT.getTargetNamespace() != null && !baseCT.getTargetNamespace().equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001))

代码示例来源:origin: org.geotools/gt-app-schema

public AttributeDescriptor getDescriptor(final Name descriptorName,
    XSDComplexTypeDefinition typeDef, XSDElementDeclaration elemDecl,
    CoordinateReferenceSystem crs) {
  AttributeDescriptor descriptor = descriptorRegistry.get(descriptorName);
  if (descriptor == null) {
    try {
      if (elemDecl == null) {
        elemDecl = getElementDeclaration(descriptorName);
      }
    } catch (NoSuchElementException e) {
      String msg = "Type not found for "
          + descriptorName
          + " at type container "
          + (typeDef == null ? null : typeDef.getTargetNamespace() + "#"
              + typeDef.getName() + " at "
              + typeDef.getSchema().getSchemaLocation());
      NoSuchElementException nse = new NoSuchElementException(msg);
      nse.initCause(e);
      throw nse;
    }
    descriptor = createAttributeDescriptor(typeDef, elemDecl, crs);
    LOGGER.finest("Registering attribute descriptor " + descriptor.getName());
    register(descriptor);
  }
  return descriptor;
}

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

else if (XSDConstants.isSchemaForSchemaNamespace(xsdComplexTypeDefinition.getTargetNamespace()))
  EClass result = (EClass)getBuiltInEClassifier(xsdComplexTypeDefinition.getTargetNamespace(), name);
  if (result != null)
 EClass eClass = (EClass)extendedMetaData.getType(xsdComplexTypeDefinition.getTargetNamespace(), xsdComplexTypeDefinition.getName());
 if (eClass != null)

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

else if (XSDConstants.isSchemaForSchemaNamespace(xsdComplexTypeDefinition.getTargetNamespace()))
  EClass result = (EClass)getBuiltInEClassifier(xsdComplexTypeDefinition.getTargetNamespace(), name);
  if (result != null)

相关文章

微信公众号

最新文章

更多