Package org.codehaus.dna.impl

Examples of org.codehaus.dna.impl.DefaultConfiguration.makeReadOnly()


    public void testMakeReadOnlyWithNoChildren()
        throws Exception
    {
        final DefaultConfiguration configuration =
            new DefaultConfiguration( "myElement", "file.xml:20", "" );
        configuration.makeReadOnly();
        assertTrue( "configuration.isReadOnly()", configuration.isReadOnly() );
    }

    public void testMakeReadOnlyWithChildren()
        throws Exception
View Full Code Here


        final DefaultConfiguration configuration =
            new DefaultConfiguration( "myElement", "file.xml:20", "" );

        configuration.addChild( new MockConfiguration() );

        configuration.makeReadOnly();
        assertTrue( "configuration.isReadOnly()", configuration.isReadOnly() );
    }

    public void testToString()
        throws Exception
View Full Code Here

                                       final Configuration base )
        throws ConfigurationException
    {
        final DefaultConfiguration layer = doSplit( merged, base, false );

        layer.makeReadOnly();

        return layer;
    }

    private static DefaultConfiguration doSplit( final Configuration merged,
View Full Code Here

            {
                final DefaultConfiguration layerChild = doSplit( kids[ i ],
                                                                 mergedWith,
                                                                 keyAttr );

                layerChild.makeReadOnly();

                layer.addChild( layerChild );
            }
        }
    }
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.