Package org.exist.util.hashtable

Examples of org.exist.util.hashtable.NamePool


        super(null, 0);
        this.context = context;
        this.explicitCreation = explicitCreation;
        this.docId = createDocId();
        if(context == null) {
            namePool = new NamePool();
        } else {
            db = context.getDatabase();
            namePool = context.getSharedNamePool();
        }
    }
View Full Code Here


        final String id_name = "id";
       
        XQueryContext mockContext = EasyMock.createMock(XQueryContext.class);
       
        expect(mockContext.getDatabase()).andReturn(null);
        expect(mockContext.getSharedNamePool()).andReturn(new NamePool());
        //expect(mockContext.getPrefixForURI(ATOM_NS)).andReturn(ATOM_PREFIX).times(2);
       
        replay(mockContext);
       
        MemTreeBuilder builder = new MemTreeBuilder(mockContext);
View Full Code Here

     * @return  the shared name pool
     */
    public NamePool getSharedNamePool()
    {
        if( sharedNamePool == null ) {
            sharedNamePool = new NamePool();
        }
        return( sharedNamePool );
    }
View Full Code Here

TOP

Related Classes of org.exist.util.hashtable.NamePool

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.