Package org.sonatype.plexus.components.sec.dispatcher.model

Examples of org.sonatype.plexus.components.sec.dispatcher.model.Config


        if( cl == null )
            return null;
       
        for( Iterator i = cl.iterator(); i.hasNext(); )
        {
            Config cf = (Config) i.next();
           
            if( !name.equals( cf.getName() ) )
                continue;
           
            List pl = cf.getProperties();
           
            if( pl == null || pl.isEmpty() )
                return null;
           
            Map res = new HashMap( pl.size() );
View Full Code Here


            if ( ( settingsSecurity.getConfigurations() != null ) && ( settingsSecurity.getConfigurations().size() > 0 ) )
            {
                serializer.startTag( NAMESPACE, "configurations" );
                for ( Iterator iter = settingsSecurity.getConfigurations().iterator(); iter.hasNext(); )
                {
                    Config o = (Config) iter.next();
                    writeConfig( o, "configuration", serializer );
                }
                serializer.endTag( NAMESPACE, "configurations" );
            }
            serializer.endTag( NAMESPACE, tagName );
View Full Code Here

     * @return Config
     */
    private Config parseConfig( String tagName, XmlPullParser parser, boolean strict )
        throws IOException, XmlPullParserException
    {
        Config config = new Config();
        java.util.Set parsed = new java.util.HashSet();
        while ( parser.nextTag() == XmlPullParser.START_TAG )
        {
            if ( checkFieldWithDuplicate( parser, "name", null, parsed ) )
            {
                config.setName( getTrimmedValue( parser.nextText() ) );
            }
            else if ( checkFieldWithDuplicate( parser, "properties", null, parsed ) )
            {
                java.util.List properties = new java.util.ArrayList/*<ConfigProperty>*/();
                config.setProperties( properties );
                while ( parser.nextTag() == XmlPullParser.START_TAG )
                {
                    if ( parser.getName().equals( "property" ) )
                    {
                        properties.add( parseConfigProperty( "property", parser, strict ) );
View Full Code Here

TOP

Related Classes of org.sonatype.plexus.components.sec.dispatcher.model.Config

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.