public Iterator<XSWildcard> complexType(XSComplexType type) { return singleton(type.getAttributeWildcard()); }
public Iterator<XSWildcard> complexType(XSComplexType type) { return singleton(type.getAttributeWildcard()); }
public Iterator<XSWildcard> complexType(XSComplexType type) { return singleton(type.getAttributeWildcard()); }
public Iterator<XSWildcard> complexType(XSComplexType type) { return singleton(type.getAttributeWildcard()); }
public Iterator<XSWildcard> complexType(XSComplexType type) { return singleton(type.getAttributeWildcard()); }
private void dumpComplexTypeAttribute( XSComplexType type ) { Iterator itr; itr = type.iterateAttGroups(); while(itr.hasNext()) dumpRef( (XSAttGroupDecl)itr.next() ); itr = type.iterateDeclaredAttributeUses(); while(itr.hasNext()) attributeUse( (XSAttributeUse)itr.next() ); XSWildcard awc = type.getAttributeWildcard(); if(awc!=null) wildcard("anyAttribute",awc,""); }
private void dumpComplexTypeAttribute( XSComplexType type ) { Iterator itr; itr = type.iterateAttGroups(); while(itr.hasNext()) dumpRef( (XSAttGroupDecl)itr.next() ); itr = type.iterateDeclaredAttributeUses(); while(itr.hasNext()) attributeUse( (XSAttributeUse)itr.next() ); XSWildcard awc = type.getAttributeWildcard(); if(awc!=null) wildcard("anyAttribute",awc,""); }
private void dumpComplexTypeAttribute( XSComplexType type ) { Iterator itr; itr = type.iterateAttGroups(); while(itr.hasNext()) dumpRef( (XSAttGroupDecl)itr.next() ); itr = type.iterateDeclaredAttributeUses(); while(itr.hasNext()) attributeUse( (XSAttributeUse)itr.next() ); XSWildcard awc = type.getAttributeWildcard(); if(awc!=null) wildcard("anyAttribute",awc,""); }
private void dumpComplexTypeAttribute( XSComplexType type ) { Iterator itr; itr = type.iterateAttGroups(); while(itr.hasNext()) dumpRef( (XSAttGroupDecl)itr.next() ); itr = type.iterateDeclaredAttributeUses(); while(itr.hasNext()) attributeUse( (XSAttributeUse)itr.next() ); XSWildcard awc = type.getAttributeWildcard(); if(awc!=null) wildcard("anyAttribute",awc,""); }
private void dumpComplexTypeAttribute( XSComplexType type ) { Iterator itr; itr = type.iterateAttGroups(); while(itr.hasNext()) dumpRef( (XSAttGroupDecl)itr.next() ); itr = type.iterateDeclaredAttributeUses(); while(itr.hasNext()) attributeUse( (XSAttributeUse)itr.next() ); XSWildcard awc = type.getAttributeWildcard(); if(awc!=null) wildcard("anyAttribute",awc,""); }
XSOMParser parser = new XSOMParser(); //parser.setErrorHandler(...); //parser.setEntityResolver(...); parser.parse(new File(...)); XSSchemaSet sset = parser.getResult(); XSComplexType xt = sset.getComplexType("http://tempuri.org/XMLSchema.xsd", "test"); XSWildcard anyAttr = xt.getAttributeWildcard();
/** * Checks if the particles/attributes defined in the type parameter * collides with the name classes of anc/enc. * * @return true if there's a collision. */ protected boolean checkCollision(NameClass anc, NameClass enc, XSComplexType type) { NameClass[] chnc = characteristicNameClasses.get(type); if (chnc == null) { chnc = new NameClass[2]; chnc[0] = getNameClass(type.getContentType()); // build attribute name classes NameClass nc = NameClass.NULL; Iterator itr = type.iterateAttributeUses(); while( itr.hasNext() ) anc = new ChoiceNameClass(anc, getNameClass(((XSAttributeUse) itr.next()).getDecl())); XSWildcard wc = type.getAttributeWildcard(); if(wc!=null) nc = new ChoiceNameClass(nc, WildcardNameClassBuilder.build(wc)); chnc[1] = nc; characteristicNameClasses.put(type, chnc); } return chnc[0].hasOverlapWith(enc) || chnc[1].hasOverlapWith(anc); }
/** * Checks if the particles/attributes defined in the type parameter * collides with the name classes of anc/enc. * * @return true if there's a collision. */ protected boolean checkCollision(NameClass anc, NameClass enc, XSComplexType type) { NameClass[] chnc = characteristicNameClasses.get(type); if (chnc == null) { chnc = new NameClass[2]; chnc[0] = getNameClass(type.getContentType()); // build attribute name classes NameClass nc = NameClass.NULL; Iterator itr = type.iterateAttributeUses(); while( itr.hasNext() ) anc = new ChoiceNameClass(anc, getNameClass(((XSAttributeUse) itr.next()).getDecl())); XSWildcard wc = type.getAttributeWildcard(); if(wc!=null) nc = new ChoiceNameClass(nc, WildcardNameClassBuilder.build(wc)); chnc[1] = nc; characteristicNameClasses.put(type, chnc); } return chnc[0].hasOverlapWith(enc) || chnc[1].hasOverlapWith(anc); }
/** * Checks if the particles/attributes defined in the type parameter * collides with the name classes of anc/enc. * * @return true if there's a collision. */ protected boolean checkCollision(NameClass anc, NameClass enc, XSComplexType type) { NameClass[] chnc = characteristicNameClasses.get(type); if (chnc == null) { chnc = new NameClass[2]; chnc[0] = getNameClass(type.getContentType()); // build attribute name classes NameClass nc = NameClass.NULL; Iterator itr = type.iterateAttributeUses(); while( itr.hasNext() ) anc = new ChoiceNameClass(anc, getNameClass(((XSAttributeUse) itr.next()).getDecl())); XSWildcard wc = type.getAttributeWildcard(); if(wc!=null) nc = new ChoiceNameClass(nc, WildcardNameClassBuilder.build(wc)); chnc[1] = nc; characteristicNameClasses.put(type, chnc); } return chnc[0].hasOverlapWith(enc) || chnc[1].hasOverlapWith(anc); }
/** * Checks if the particles/attributes defined in the type parameter * collides with the name classes of anc/enc. * * @return true if there's a collision. */ protected boolean checkCollision(NameClass anc, NameClass enc, XSComplexType type) { NameClass[] chnc = characteristicNameClasses.get(type); if (chnc == null) { chnc = new NameClass[2]; chnc[0] = getNameClass(type.getContentType()); // build attribute name classes NameClass nc = NameClass.NULL; Iterator itr = type.iterateAttributeUses(); while( itr.hasNext() ) anc = new ChoiceNameClass(anc, getNameClass(((XSAttributeUse) itr.next()).getDecl())); XSWildcard wc = type.getAttributeWildcard(); if(wc!=null) nc = new ChoiceNameClass(nc, WildcardNameClassBuilder.build(wc)); chnc[1] = nc; characteristicNameClasses.put(type, chnc); } return chnc[0].hasOverlapWith(enc) || chnc[1].hasOverlapWith(anc); }
public XSWildcard getAttributeWildcard() { WildcardImpl complete = localAttWildcard; Iterator itr = iterateAttGroups(); while( itr.hasNext() ) { WildcardImpl w = (WildcardImpl)((XSAttGroupDecl)itr.next()).getAttributeWildcard(); if(w==null) continue; if(complete==null) complete = w; else // TODO: the spec says it's intersection, // but I think it has to be union. complete = complete.union(ownerDocument,w); } if( getDerivationMethod()==RESTRICTION ) return complete; WildcardImpl base=null; XSType baseType = getBaseType(); if(baseType.asComplexType()!=null) base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard(); if(complete==null) return base; if(base==null) return complete; return complete.union(ownerDocument,base); }
public XSWildcard getAttributeWildcard() { WildcardImpl complete = localAttWildcard; Iterator itr = iterateAttGroups(); while( itr.hasNext() ) { WildcardImpl w = (WildcardImpl)((XSAttGroupDecl)itr.next()).getAttributeWildcard(); if(w==null) continue; if(complete==null) complete = w; else // TODO: the spec says it's intersection, // but I think it has to be union. complete = complete.union(ownerDocument,w); } if( getDerivationMethod()==RESTRICTION ) return complete; WildcardImpl base=null; XSType baseType = getBaseType(); if(baseType.asComplexType()!=null) base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard(); if(complete==null) return base; if(base==null) return complete; return complete.union(ownerDocument,base); }
public XSWildcard getAttributeWildcard() { WildcardImpl complete = localAttWildcard; Iterator itr = iterateAttGroups(); while( itr.hasNext() ) { WildcardImpl w = (WildcardImpl)((XSAttGroupDecl)itr.next()).getAttributeWildcard(); if(w==null) continue; if(complete==null) complete = w; else // TODO: the spec says it's intersection, // but I think it has to be union. complete = complete.union(ownerDocument,w); } if( getDerivationMethod()==RESTRICTION ) return complete; WildcardImpl base=null; XSType baseType = getBaseType(); if(baseType.asComplexType()!=null) base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard(); if(complete==null) return base; if(base==null) return complete; return complete.union(ownerDocument,base); }
public XSWildcard getAttributeWildcard() { WildcardImpl complete = localAttWildcard; Iterator itr = iterateAttGroups(); while( itr.hasNext() ) { WildcardImpl w = (WildcardImpl)((XSAttGroupDecl)itr.next()).getAttributeWildcard(); if(w==null) continue; if(complete==null) complete = w; else // TODO: the spec says it's intersection, // but I think it has to be union. complete = complete.union(ownerDocument,w); } if( getDerivationMethod()==RESTRICTION ) return complete; WildcardImpl base=null; XSType baseType = getBaseType(); if(baseType.asComplexType()!=null) base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard(); if(complete==null) return base; if(base==null) return complete; return complete.union(ownerDocument,base); }
public XSWildcard getAttributeWildcard() { WildcardImpl complete = localAttWildcard; Iterator itr = iterateAttGroups(); while( itr.hasNext() ) { WildcardImpl w = (WildcardImpl)((XSAttGroupDecl)itr.next()).getAttributeWildcard(); if(w==null) continue; if(complete==null) complete = w; else // TODO: the spec says it's intersection, // but I think it has to be union. complete = complete.union(ownerDocument,w); } if( getDerivationMethod()==RESTRICTION ) return complete; WildcardImpl base=null; XSType baseType = getBaseType(); if(baseType.asComplexType()!=null) base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard(); if(complete==null) return base; if(base==null) return complete; return complete.union(ownerDocument,base); }