Examples of asComplexType()


Examples of com.sun.xml.xsom.XSType.asComplexType()

    }

    public XSContentType getContentType() {
        XSType t = baseType.getType();
        if(t.asComplexType()!=null)
            return t.asComplexType().getContentType();
        else
            return t.asSimpleType();
    }

    public void run() throws SAXException {
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

       
        if( getDerivationMethod()==RESTRICTION )    return complete;
       
        WildcardImpl base=null;
        XSType baseType = getBaseType();
        if(baseType.asComplexType()!=null)
            base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard();
       
        if(complete==nullreturn base;
        if(base==null)      return complete;
       
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

        if( getDerivationMethod()==RESTRICTION )    return complete;
       
        WildcardImpl base=null;
        XSType baseType = getBaseType();
        if(baseType.asComplexType()!=null)
            base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard();
       
        if(complete==nullreturn base;
        if(base==null)      return complete;
       
        return complete.union(ownerDocument,base);
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

                o = ((XSAttGroupDecl)itr.next()).getAttributeUse(nsURI,localName);
        }
       
        if(o==null) {
            XSType base = getBaseType();
            if(base.asComplexType()!=null)
                o = base.asComplexType().getAttributeUse(nsURI,localName);
        }
       
        return o;
    }
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

        }
       
        if(o==null) {
            XSType base = getBaseType();
            if(base.asComplexType()!=null)
                o = base.asComplexType().getAttributeUse(nsURI,localName);
        }
       
        return o;
    }
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

        this.baseType = _baseType;
        $runtime.addPatcher(this);
        $runtime.addErrorChecker(new Patch() {
            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);
                }
            }
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

        this.loc = $runtime.copyLocator();
    }

    public XSContentType getContentType() {
        XSType t = baseType.getType();
        if(t.asComplexType()!=null)
            return t.asComplexType().getContentType();
        else
            return t.asSimpleType();
    }
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

    }

    public XSContentType getContentType() {
        XSType t = baseType.getType();
        if(t.asComplexType()!=null)
            return t.asComplexType().getContentType();
        else
            return t.asSimpleType();
    }

    public void run() throws SAXException {
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

        // see issue 148. handle complex type extended from another and added mixed=true.
        // the current implementation only works when the base type doesn't define
        // any elements, and we should ideally warn it.
        //
        // also see issue #356 where complex type with simple content can have pointless mixed.
        if(bt.isComplexType() && !bt.asComplexType().isMixed()
        && ct.isMixed() && ct.getDerivationMethod()==XSType.EXTENSION
        && ct.getContentType().asParticle()!=null)
            return true;

        return false;
View Full Code Here

Examples of com.sun.xml.xsom.XSType.asComplexType()

       
        if( getDerivationMethod()==RESTRICTION )    return complete;
       
        WildcardImpl base=null;
        XSType baseType = getBaseType();
        if(baseType.asComplexType()!=null)
            base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard();
       
        if(complete==nullreturn base;
        if(base==null)      return complete;
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.