Package org.apache.xmlbeans.impl.store.Splay

Examples of org.apache.xmlbeans.impl.store.Splay.Container


                                    s.getCpForPos( r, s.getPosAfter() ), cchAfter );
   
                                trim( _text );
                            }
   
                            Container stop = (Container) _top;
   
                            if (!stop.isDoc())
                                stop = stop.getContainer();
   
                            Container c = s.getContainer( s.getPosAfter() );
   
                            if (_text.length() > 0)
                            {
                                Container p = c;
   
                                for ( ; p != stop ; p = p.getContainer() )
                                    spaces( _text, 0, _prettyIndent );
   
                                if (_prettyIndent >= 0)
                                {
                                    _text.insert( 0, _newLine );
                                    spaces( _text, 1, _prettyOffset );
                                }
                            }
   
                            if (_prettyIndent >= 0)
                            {
                                _text.append( _newLine );
                                spaces( _text, _text.length(), _prettyOffset );
                            }
   
                            Container p = c;
   
                            if (s.nextNonAttrSplay().isEnd())
                                p = p.getContainer();
   
                            for ( ; p != null && p != stop; p = p.getContainer() )
                                spaces( _text, _text.length(), _prettyIndent );
                        }
   
                        if (_text == null ? cchAfter > 0 : _text.length() > 0)
                        {
View Full Code Here


        clearText();
    }

    private void processEnd ( Splay s )
    {
        Container c = s.getContainer();
       
        QName name =
            _synthElem != null && c == _top
                ? _synthElem
                : c.isBegin() ? c.getName() : null;
       
        if (_wantFragTest && name == null)
        {
            boolean isRoot = s.isRoot();
View Full Code Here

            XmlBeans.assertTrue( s.isTypeable() );

        if (s.isDoc())
            return 0;

        Container parentContainer = s.getContainer();

        Type parentType = parentContainer.getType( getRoot() );

        if (XmlBeans.ASSERTS)
            XmlBeans.assertTrue( parentType != null );

        TypeStoreUser parentUser = parentType._user;

        if (s.isAttr())
            return parentUser.get_attributeflags( s.getName() );

        int f = parentUser.get_elementflags( s.getName() );

        if (f != -1)
            return f;

        TypeStoreVisitor visitor = parentUser.new_visitor();

        if (visitor == null)
            return 0;

        if (XmlBeans.ASSERTS)
            XmlBeans.assertTrue( !parentContainer.isLeaf() );
       
        for ( Splay t = parentContainer.nextSplay() ; ; t = t.nextSplay() )
        {
            switch ( t.getKind() )
            {
            case Splay.END :
                if (XmlBeans.ASSERTS)
View Full Code Here

            XmlBeans.assertTrue( s.isTypeable() );

        if (s.isDoc())
            return null;
       
        Container parentContainer = s.getContainer();

        TypeStoreUser parentUser = parentContainer.getType( getRoot() )._user;
       
        if (s.isAttr())
            return parentUser.get_attribute_field( s.getName() );

        if (XmlBeans.ASSERTS)
        {
            XmlBeans.assertTrue( s.isBegin() );
            XmlBeans.assertTrue( !parentContainer.isLeaf() );
        }

        TypeStoreVisitor visitor = parentUser.new_visitor();

        if (visitor == null)
            return null;

        for ( Splay t = parentContainer.nextSplay() ; ; t = t.nextSplay() )
        {
            switch ( t.getKind() )
            {
            case Splay.END :
                if (XmlBeans.ASSERTS)
View Full Code Here

            XmlBeans.assertTrue( s.isTypeable() );

        if (s.isDoc())
            return null;

        Container parentContainer = s.getContainer();

        Type parentType = parentContainer.getType( getRoot() );

        if (XmlBeans.ASSERTS)
            XmlBeans.assertTrue( parentType != null );

        TypeStoreUser parentUser = parentType._user;

        if (s.isAttr())
            return parentUser.get_default_attribute_text( s.getName() );

        String result = parentUser.get_default_element_text( s.getName() );

        if (result != null)
            return result;

        TypeStoreVisitor visitor = parentUser.new_visitor();

        if (visitor == null)
            return null;

        if (XmlBeans.ASSERTS)
            XmlBeans.assertTrue( !parentContainer.isLeaf() );
       
        for ( Splay t = parentContainer.nextSplay() ; ; t = t.nextSplay() )
        {
            switch ( t.getKind() )
            {
            case Splay.END :
                if (XmlBeans.ASSERTS)
View Full Code Here

        if (i < 0)
            throw new IndexOutOfBoundsException();

        Root r = getRoot();
        Container c = (Container) s;

        Begin nthBegin = r.findNthBegin( c, name, null, i );

        if (nthBegin == null)
        {
View Full Code Here

        if (i < 0)
            throw new IllegalStateException();

        Root r = getRoot();
        Container c = (Splay.Container) s;

        Begin nthBegin = r.findNthBegin(c, null, set, i);

        if (nthBegin == null)
        {
View Full Code Here

        assert s.isTypeable();

        if (s.isDoc())
            return null;

        Container parentContainer = s.getContainer();

        Type parentType = parentContainer.getType( getRoot() );

        assert parentType != null;

        TypeStoreUser parentUser = parentType._user;

        if (s.isAttr())
            return parentUser.get_default_attribute_text( s.getName() );

        String result = parentUser.get_default_element_text( s.getName() );

        if (result != null)
            return result;

        TypeStoreVisitor visitor = parentUser.new_visitor();

        if (visitor == null)
            return null;

        assert !parentContainer.isLeaf();
       
        for ( Splay t = parentContainer.nextSplay() ; ; t = t.nextSplay() )
        {
            switch ( t.getKind() )
            {
            case Splay.END :
                assert false;
View Full Code Here

        if (i < 0)
            throw new IndexOutOfBoundsException();

        Root r = getRoot();
        Container c = (Container) s;

        Begin nthBegin = r.findNthBegin( c, name, null, i );

        if (nthBegin == null)
        {
View Full Code Here

        if (i < 0)
            throw new IllegalStateException();

        Root r = getRoot();
        Container c = (Splay.Container) s;

        Begin nthBegin = r.findNthBegin(c, null, set, i);

        if (nthBegin == null)
        {
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.impl.store.Splay.Container

Copyright © 2018 www.massapicom. 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.