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

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

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

XSDAttributeDeclaration.getURI介绍

暂无

代码示例

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

public Object getImmediateNode() {
  // first try regular way
  PropertyType pt = descriptor.getType();
  if (pt instanceof ComplexType) {
    ComplexType ct = (ComplexType) pt;
    PropertyDescriptor ad = ct.getDescriptor("@" + name.getLocalPart());
    if (ad != null) {
      return ad;
    }
  }
  XSDElementDeclaration decl =
      (XSDElementDeclaration) descriptor.getUserData().get(XSDElementDeclaration.class);
  Iterator it = Schemas.getAttributeDeclarations(decl).iterator();
  while (it.hasNext()) {
    XSDAttributeDeclaration attDecl = ((XSDAttributeDeclaration) it.next());
    if (attDecl.getURI()
        .equals(
            (name.getNamespaceURI() == null ? "" : name.getNamespaceURI())
                + "#"
                + name.getLocalPart())) {
      return name;
    }
  }
  return null;
}

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

public Object getImmediateNode() {
   XSDElementDeclaration decl = (XSDElementDeclaration) descriptor.getUserData().get(XSDElementDeclaration.class);
    
   Iterator it = Schemas.getAttributeDeclarations(decl).iterator();
   while (it.hasNext()) {
    XSDAttributeDeclaration attDecl = ((XSDAttributeDeclaration) it.next());
    if ( attDecl.getURI().equals((name.getNamespaceURI()==null?"":name.getNamespaceURI())  + "#" + name.getLocalPart() ))   {
      return name;
    }            
   }    
   return null;
}

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

protected static Map<String, XSDAttributeDeclaration> getProhibitedAttributes(Collection<XSDAttributeGroupContent> xsdAttributeContents)
{
 Map<String, XSDAttributeDeclaration> result = new HashMap<String, XSDAttributeDeclaration>();
 for (XSDAttributeGroupContent xsdAttributeGroupContent :  xsdAttributeContents)
 {
  if (xsdAttributeGroupContent instanceof XSDAttributeGroupDefinition)
  {
   XSDAttributeGroupDefinition xsdAttributeGroupDefinition = (XSDAttributeGroupDefinition)xsdAttributeGroupContent;
   result.putAll(getProhibitedAttributes(xsdAttributeGroupDefinition.getContents()));
  }
  else
  {
   XSDAttributeUse xsdAttributeUse = (XSDAttributeUse)xsdAttributeGroupContent;
   if (xsdAttributeUse.getUse() == XSDAttributeUseCategory.PROHIBITED_LITERAL)
   {
    XSDAttributeDeclaration xsdAttributeDeclaration = xsdAttributeUse.getAttributeDeclaration();
    result.put(xsdAttributeDeclaration.getURI(), xsdAttributeDeclaration);
   }
  }
 }
 return result;
}

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

protected static Map<String, XSDAttributeDeclaration> getProhibitedAttributes(Collection<XSDAttributeGroupContent> xsdAttributeContents)
{
 Map<String, XSDAttributeDeclaration> result = new HashMap<String, XSDAttributeDeclaration>();
 for (XSDAttributeGroupContent xsdAttributeGroupContent :  xsdAttributeContents)
 {
  if (xsdAttributeGroupContent instanceof XSDAttributeGroupDefinition)
  {
   XSDAttributeGroupDefinition xsdAttributeGroupDefinition = (XSDAttributeGroupDefinition)xsdAttributeGroupContent;
   result.putAll(getProhibitedAttributes(xsdAttributeGroupDefinition.getContents()));
  }
  else
  {
   XSDAttributeUse xsdAttributeUse = (XSDAttributeUse)xsdAttributeGroupContent;
   if (xsdAttributeUse.getUse() == XSDAttributeUseCategory.PROHIBITED_LITERAL)
   {
    XSDAttributeDeclaration xsdAttributeDeclaration = xsdAttributeUse.getAttributeDeclaration();
    result.put(xsdAttributeDeclaration.getURI(), xsdAttributeDeclaration);
   }
  }
 }
 return result;
}

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

localAttributeUses.add(xsdAttributeUse.getAttributeDeclaration().getURI());
if (!localAttributeUses.contains(xsdAttributeUse.getAttributeDeclaration().getURI()))

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

localAttributeUses.add(xsdAttributeUse.getAttributeDeclaration().getURI());
if (!localAttributeUses.contains(xsdAttributeUse.getAttributeDeclaration().getURI()))

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

public Object getImmediateNode() {
  // first try regular way
  PropertyType pt = descriptor.getType();
  if (pt instanceof ComplexType) {
    ComplexType ct = (ComplexType) pt;
    PropertyDescriptor ad = ct.getDescriptor("@" + name.getLocalPart());
    if (ad != null) {
      return ad;
    }
  }
  XSDElementDeclaration decl =
      (XSDElementDeclaration) descriptor.getUserData().get(XSDElementDeclaration.class);
  Iterator it = Schemas.getAttributeDeclarations(decl).iterator();
  while (it.hasNext()) {
    XSDAttributeDeclaration attDecl = ((XSDAttributeDeclaration) it.next());
    if (attDecl.getURI()
        .equals(
            (name.getNamespaceURI() == null ? "" : name.getNamespaceURI())
                + "#"
                + name.getLocalPart())) {
      return name;
    }
  }
  return null;
}

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

(XSDDiagnosticSeverity.ERROR_LITERAL, 
    "derivation-ok-restriction.2.1.2", 
    xsdAttributeDeclaration.getURI(),
    baseXSDAttributeDeclaration.getTypeDefinition().getURI());
  (XSDDiagnosticSeverity.ERROR_LITERAL, "derivation-ok-restriction.2.1.1", xsdAttributeDeclaration.getURI());
 (XSDDiagnosticSeverity.ERROR_LITERAL, "derivation-ok-restriction.2.2", xsdAttributeDeclaration.getURI());
(XSDDiagnosticSeverity.ERROR_LITERAL, 
 "derivation-ok-restriction.3", 
 baseXSDAttributeUse.getAttributeDeclaration().getURI());

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

(XSDDiagnosticSeverity.ERROR_LITERAL, 
    "derivation-ok-restriction.2.1.2", 
    xsdAttributeDeclaration.getURI(),
    baseXSDAttributeDeclaration.getTypeDefinition().getURI());
  (XSDDiagnosticSeverity.ERROR_LITERAL, "derivation-ok-restriction.2.1.1", xsdAttributeDeclaration.getURI());
 (XSDDiagnosticSeverity.ERROR_LITERAL, "derivation-ok-restriction.2.2", xsdAttributeDeclaration.getURI());
(XSDDiagnosticSeverity.ERROR_LITERAL, 
 "derivation-ok-restriction.3", 
 baseXSDAttributeUse.getAttributeDeclaration().getURI());

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

if (!uris.add(xsdAttributeDeclaration.getURI()))
  (XSDDiagnosticSeverity.ERROR_LITERAL, "coss-attrGroup.2", xsdAttributeDeclaration.getURI());
   (XSDDiagnosticSeverity.ERROR_LITERAL, "coss-attrGroup.3", xsdAttributeDeclaration.getURI(), idAttribute.getURI());

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

if (!uris.add(xsdAttributeDeclaration.getURI()))
  (XSDDiagnosticSeverity.ERROR_LITERAL, "coss-attrGroup.2", xsdAttributeDeclaration.getURI());
   (XSDDiagnosticSeverity.ERROR_LITERAL, "coss-attrGroup.3", xsdAttributeDeclaration.getURI(), idAttribute.getURI());

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

for (XSDAttributeUse xsdAttributeUse : baseAttributeUses)
 baseAttributeURIs.put(xsdAttributeUse.getAttributeDeclaration().getURI(), xsdAttributeUse);
if (baseAttributeURIs.remove(xsdAttributeDeclaration.getURI()) == null)

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

for (XSDAttributeUse xsdAttributeUse : baseAttributeUses)
 baseAttributeURIs.put(xsdAttributeUse.getAttributeDeclaration().getURI(), xsdAttributeUse);
if (baseAttributeURIs.remove(xsdAttributeDeclaration.getURI()) == null)

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

niceSetAttributeURIValue(theElement, XSDConstants.REF_ATTRIBUTE, theResolvedAttributeDeclaration.getURI());

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

niceSetAttributeURIValue(theElement, XSDConstants.REF_ATTRIBUTE, theResolvedAttributeDeclaration.getURI());

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

(XSDDiagnosticSeverity.ERROR_LITERAL, 
 "_UI_UnresolvedAttributeDeclaration_message", 
 theResolvedAttributeDeclaration.getURI());

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

(XSDDiagnosticSeverity.ERROR_LITERAL, 
 "_UI_UnresolvedAttributeDeclaration_message", 
 theResolvedAttributeDeclaration.getURI());

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

(XSDDiagnosticSeverity.ERROR_LITERAL, 
         "cos-ct-extends.1.2.2", 
         xsdAttributeDeclaration.getURI(),
         baseXSDAttributeDeclaration.getTypeDefinition().getURI());
      (XSDDiagnosticSeverity.ERROR_LITERAL, 
       "cos-ct-extends.1.2.1", 
       baseXSDAttributeDeclaration.getURI());
String uri = xsdAttributeDeclaration.getURI();
if (prohibitedAttributeURIs != null && prohibitedAttributeURIs.containsKey(uri))
   (XSDDiagnosticSeverity.ERROR_LITERAL, "ct-props-correct.5", xsdAttributeDeclaration.getURI(), idAttribute.getURI());

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

(XSDDiagnosticSeverity.ERROR_LITERAL, 
         "cos-ct-extends.1.2.2", 
         xsdAttributeDeclaration.getURI(),
         baseXSDAttributeDeclaration.getTypeDefinition().getURI());
      (XSDDiagnosticSeverity.ERROR_LITERAL, 
       "cos-ct-extends.1.2.1", 
       baseXSDAttributeDeclaration.getURI());
String uri = xsdAttributeDeclaration.getURI();
if (prohibitedAttributeURIs != null && prohibitedAttributeURIs.containsKey(uri))
   (XSDDiagnosticSeverity.ERROR_LITERAL, "ct-props-correct.5", xsdAttributeDeclaration.getURI(), idAttribute.getURI());

相关文章

微信公众号

最新文章

更多