gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-26 13:01:05 30 4
gpt4 key购买 nike

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

XSDAttributeGroupDefinition.getName介绍

暂无

代码示例

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

protected void buildAttributeGroupIndex() {
  attributeGroupIndex = new HashMap();
  for (int i = 0; i < schemas.length; i++) {
    XSDSchema schema = schemas[i];
    for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext(); ) {
      XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g.next();
      QName qName = new QName(group.getTargetNamespace(), group.getName());
      attributeGroupIndex.put(qName, group);
    }
  }
}

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

protected void buildAttributeGroupIndex() {
  attributeGroupIndex = new HashMap();
  for (int i = 0; i < schemas.length; i++) {
    XSDSchema schema = schemas[i];
    for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext();) {
      XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g.next();
      QName qName = new QName(group.getTargetNamespace(), group.getName());
      attributeGroupIndex.put(qName, group);
    }
  }
}

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

protected void buildAttributeGroupIndex() {
  attributeGroupIndex = new HashMap();
  for (int i = 0; i < schemas.length; i++) {
    XSDSchema schema = schemas[i];
    for (Iterator g = schema.getAttributeGroupDefinitions().iterator(); g.hasNext();) {
      XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g.next();
      QName qName = new QName(group.getTargetNamespace(), group.getName());
      attributeGroupIndex.put(qName, group);
    }
  }
}

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

protected void buildAttributeGroupIndex() {
  attributeGroupIndex = new HashMap();
  for (int i = 0; i < schemas.length; i++) {
    XSDSchema schema = schemas[i];
    for (Iterator g = schema.getAttributeGroupDefinitions().iterator();
        g.hasNext();) {
      XSDAttributeGroupDefinition group = (XSDAttributeGroupDefinition) g
        .next();
      QName qName = new QName(group.getTargetNamespace(),
          group.getName());
      attributeGroupIndex.put(qName, group);
    }
  }
}

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

public String getText()
{
 XSDAttributeGroupDefinition xsdAttributeGroupDefinition = (XSDAttributeGroupDefinition) target;
 String result = xsdAttributeGroupDefinition.isAttributeGroupDefinitionReference() ? xsdAttributeGroupDefinition.getQName() : xsdAttributeGroupDefinition.getName();
 return result == null ? Messages._UI_LABEL_ABSENT : result;
}

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

@Override
public String getText(Object object)
{
 XSDAttributeGroupDefinition xsdAttributeGroupDefinition = ((XSDAttributeGroupDefinition)object);
 String result =  
  xsdAttributeGroupDefinition.isAttributeGroupDefinitionReference() ?
   xsdAttributeGroupDefinition.getQName() :
   xsdAttributeGroupDefinition.getName();
 return result == null ? XSDEditPlugin.INSTANCE.getString("_UI_Absent_label") : result;
}

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

@Override
public Object caseXSDAttributeGroupDefinition(XSDAttributeGroupDefinition xsdAttributeGroupDefinition)
{
 XSDAttributeGroupDefinition redefinedAttributeGroupDefinition = 
  resolveAttributeGroupDefinition(xsdAttributeGroupDefinition.getName());
 for (XSDSchemaImpl schemaToRedefine : getSchemasToRedefine())
 {
  int index = schemaToRedefine.getAttributeGroupDefinitions().indexOf(redefinedAttributeGroupDefinition);
  if (index != -1)
  {
   schemaToRedefine.getAttributeGroupDefinitions().set(index, xsdAttributeGroupDefinition);
   schemaToRedefine.redefinitionMap.put(xsdAttributeGroupDefinition, redefinedAttributeGroupDefinition);
  }
 }
 return this;
}
@Override

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

@Override
public Object caseXSDAttributeGroupDefinition(XSDAttributeGroupDefinition xsdAttributeGroupDefinition)
{
 XSDAttributeGroupDefinition redefinedAttributeGroupDefinition = 
  resolveAttributeGroupDefinition(xsdAttributeGroupDefinition.getName());
 for (XSDSchemaImpl schemaToRedefine : getSchemasToRedefine())
 {
  int index = schemaToRedefine.getAttributeGroupDefinitions().indexOf(redefinedAttributeGroupDefinition);
  if (index != -1)
  {
   schemaToRedefine.getAttributeGroupDefinitions().set(index, xsdAttributeGroupDefinition);
   schemaToRedefine.redefinitionMap.put(xsdAttributeGroupDefinition, redefinedAttributeGroupDefinition);
  }
 }
 return this;
}
@Override

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

@Override
protected void patch()
{
 analysisState = UNANALYZED;
 super.patch();
 XSDAttributeGroupDefinition theResolvedAttributeGroupDefinition = getResolvedAttributeGroupDefinition();
 if (theResolvedAttributeGroupDefinition != this && 
    (forceResolve || theResolvedAttributeGroupDefinition.getContainer() == null))
 {
  XSDAttributeGroupDefinition newResolvedAttributeGroupDefinition =
   resolveAttributeGroupDefinition
    (theResolvedAttributeGroupDefinition.getTargetNamespace(), theResolvedAttributeGroupDefinition.getName());
  if (forceResolve || newResolvedAttributeGroupDefinition.getContainer() != null)
  {
   handleNewResolvedAttributeGroupDefinition(newResolvedAttributeGroupDefinition);
  }
 }
}

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

@Override
protected void patch()
{
 analysisState = UNANALYZED;
 super.patch();
 XSDAttributeGroupDefinition theResolvedAttributeGroupDefinition = getResolvedAttributeGroupDefinition();
 if (theResolvedAttributeGroupDefinition != this && 
    (forceResolve || theResolvedAttributeGroupDefinition.getContainer() == null))
 {
  XSDAttributeGroupDefinition newResolvedAttributeGroupDefinition =
   resolveAttributeGroupDefinition
    (theResolvedAttributeGroupDefinition.getTargetNamespace(), theResolvedAttributeGroupDefinition.getName());
  if (forceResolve || newResolvedAttributeGroupDefinition.getContainer() != null)
  {
   handleNewResolvedAttributeGroupDefinition(newResolvedAttributeGroupDefinition);
  }
 }
}

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

theResolvedSchema.resolveAttributeGroupDefinition(xsdAttributeGroupDefinition.getName());
if (otherXSDAttributeGroupDefinition.getContainer() == null)
  (XSDDiagnosticSeverity.ERROR_LITERAL,
   "src-redefine.7.2.1",
   xsdAttributeGroupDefinition.getName());

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

(XSDDiagnosticSeverity.ERROR_LITERAL,
 "src-redefine.7.2.1",
 xsdAttributeGroupDefinition.getName());

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

clonedAttributeGroupDefinition.setResolvedAttributeGroupDefinition
 (createUnresolvedAttributeGroupDefinition
  (theResolvedAttributeGroupDefinition.getTargetNamespace(), theResolvedAttributeGroupDefinition.getName()));

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

clonedAttributeGroupDefinition.setResolvedAttributeGroupDefinition
 (createUnresolvedAttributeGroupDefinition
  (theResolvedAttributeGroupDefinition.getTargetNamespace(), theResolvedAttributeGroupDefinition.getName()));

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