public Iterator<XSElementDecl> elementDecl(XSElementDecl decl) { return singleton(decl.getSubstAffiliation()); }
public Iterator<XSElementDecl> elementDecl(XSElementDecl decl) { return singleton(decl.getSubstAffiliation()); }
public Iterator<XSElementDecl> elementDecl(XSElementDecl decl) { return singleton(decl.getSubstAffiliation()); }
public Iterator<XSElementDecl> elementDecl(XSElementDecl decl) { return singleton(decl.getSubstAffiliation()); }
public Iterator<XSElementDecl> elementDecl(XSElementDecl decl) { return singleton(decl.getSubstAffiliation()); }
private QName getSubstitutionHead(XSElementDecl element) { XSElementDecl head = element.getSubstAffiliation(); if (head == null) { return null; } else { return new QName(head.getTargetNamespace(), head.getName()); } }
public QName getRootSubsitutionGroup() { XSElementDecl tmp = element; XSElementDecl head = null; while ((tmp = tmp.getSubstAffiliation()) != null) head = tmp; return (head != null) ? new QName(head.getTargetNamespace(), head.getName()) : null; }
public boolean substitutes(String namespaceURI, String localName) { XSElementDecl tmp = element; while ((tmp = tmp.getSubstAffiliation()) != null) { if (namespaceURI.equals(tmp.getTargetNamespace()) && localName.equals(tmp.getName())) return true; } return false; }
public QName getSubsitutionGroup() { XSElementDecl head = element.getSubstAffiliation(); return (head != null) ? new QName(head.getTargetNamespace(), head.getName()) : null; }
private void convertElement(String mainURI, XSElementDecl element, OntClass parent) { XSType elementType = element.getType(); String URI = getURI(mainURI, element); OntClass elementClass = null; if (element.isGlobal()) { if (elementType.isSimpleType()) { elementClass = convertSimpleType(mainURI, elementType.asSimpleType(), URI); } else if (elementType.isComplexType()) { elementClass = convertComplexType(mainURI, elementType.asComplexType(), URI); } } XSElementDecl subs = element.getSubstAffiliation(); if (subs != null && elementClass != null) { OntClass subsClass = ontology.createClass(getURI(mainURI, subs)); LOGGER.debug("Adding superclass: {}", subsClass); subsClass.addSubClass(elementClass); } } // mainURI is schema-specific
XSElementDecl top = decl.getSubstAffiliation(); if(top!=null) { CElement topci = selector.bindToType(top,decl);
return false; // not a complex type if(decl.getSubstitutables().size()>1 || decl.getSubstAffiliation()!=null)
return false; // not a complex type if(decl.getSubstitutables().size()>1 || decl.getSubstAffiliation()!=null)
XSElementDecl top = decl.getSubstAffiliation(); if(top!=null) { CElement topci = selector.bindToType(top,decl);
XSElementDecl top = decl.getSubstAffiliation(); if(top!=null) { CElement topci = selector.bindToType(top,decl);
XSElementDecl top = decl.getSubstAffiliation(); if(top!=null) { CElement topci = selector.bindToType(top,decl);
return false; // not a complex type if(decl.getSubstitutables().size()>1 || decl.getSubstAffiliation()!=null)
return false; // not a complex type if(decl.getSubstitutables().size()>1 || decl.getSubstAffiliation()!=null)
return false; // not a complex type if(decl.getSubstitutables().size()>1 || decl.getSubstAffiliation()!=null)
XSElementDecl top = decl.getSubstAffiliation(); if(top!=null) { CElement topci = selector.bindToType(top,decl);