public XSContentType getContentType() { XSType t = baseType.getType(); if(t.asComplexType()!=null) return t.asComplexType().getContentType(); else return t.asSimpleType(); }
public XSContentType getContentType() { XSType t = baseType.getType(); if(t.asComplexType()!=null) return t.asComplexType().getContentType(); else return t.asSimpleType(); }
public XSContentType getContentType() { XSType t = baseType.getType(); if(t.asComplexType()!=null) return t.asComplexType().getContentType(); else return t.asSimpleType(); }
public XSContentType getContentType() { XSType t = baseType.getType(); if(t.asComplexType()!=null) return t.asComplexType().getContentType(); else return t.asSimpleType(); }
public XSContentType getContentType() { XSType t = baseType.getType(); if(t.asComplexType()!=null) return t.asComplexType().getContentType(); else return t.asSimpleType(); }
public Collection<XSAttributeUse> getAttributeUses() { XSComplexType baseType = getBaseType().asComplexType(); if( baseType==null ) return super.getAttributeUses(); // TODO: this is fairly inefficient Map<UName,XSAttributeUse> uses = new HashMap<UName, XSAttributeUse>(); for( XSAttributeUse a : baseType.getAttributeUses()) uses.put(new UName(a.getDecl()),a); uses.keySet().removeAll(prohibitedAtts); for( XSAttributeUse a : super.getAttributeUses()) uses.put(new UName(a.getDecl()),a); return uses.values(); }
public Collection<XSAttributeUse> getAttributeUses() { XSComplexType baseType = getBaseType().asComplexType(); if( baseType==null ) return super.getAttributeUses(); // TODO: this is fairly inefficient Map<UName,XSAttributeUse> uses = new HashMap<UName, XSAttributeUse>(); for( XSAttributeUse a : baseType.getAttributeUses()) uses.put(new UName(a.getDecl()),a); uses.keySet().removeAll(prohibitedAtts); for( XSAttributeUse a : super.getAttributeUses()) uses.put(new UName(a.getDecl()),a); return uses.values(); }
public Collection<XSAttributeUse> getAttributeUses() { XSComplexType baseType = getBaseType().asComplexType(); if( baseType==null ) return super.getAttributeUses(); // TODO: this is fairly inefficient Map<UName,XSAttributeUse> uses = new HashMap<UName, XSAttributeUse>(); for( XSAttributeUse a : baseType.getAttributeUses()) uses.put(new UName(a.getDecl()),a); uses.keySet().removeAll(prohibitedAtts); for( XSAttributeUse a : super.getAttributeUses()) uses.put(new UName(a.getDecl()),a); return uses.values(); }
public Collection<XSAttributeUse> getAttributeUses() { XSComplexType baseType = getBaseType().asComplexType(); if( baseType==null ) return super.getAttributeUses(); // TODO: this is fairly inefficient Map<UName,XSAttributeUse> uses = new HashMap<UName, XSAttributeUse>(); for( XSAttributeUse a : baseType.getAttributeUses()) uses.put(new UName(a.getDecl()),a); uses.keySet().removeAll(prohibitedAtts); for( XSAttributeUse a : super.getAttributeUses()) uses.put(new UName(a.getDecl()),a); return uses.values(); }
protected static String getAnonymousTypeName(XSType type, String fieldName) { if (type.isComplexType()) { XSElementDecl container = type.asComplexType().getScope(); String elName = container.getName(); return elName + ANONYMOUS_TYPE_SUFFIX; } else { return fieldName + ANONYMOUS_TYPE_SUFFIX; } }
private String processType(XSType type, String elementName, XSSchemaSet sset) { if (type instanceof XSComplexType) { return processComplexType(type.asComplexType(), elementName, sset); } else { return processSimpleType(type.asSimpleType(), elementName); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }
public Iterator<XSComponent> elementDecl(XSElementDecl decl) { XSComplexType ct = decl.getType().asComplexType(); if(ct==null) return empty(); else { // also pick up model groups inside this complex type return new Iterators.Union<XSComponent>(singleton(ct),complexType(ct)); } }
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });