All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shaded.org.apache.maven.model.ConfigurationContainer Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.9.1,
// any modifications will be overwritten.
// ==============================================================

package shaded.shaded.org.apache.maven.model;

/**
 * Contains the configuration information of the container like
 * Plugin.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class ConfigurationContainer
    implements java.io.Serializable, java.lang.Cloneable, shaded.shaded.org.apache.maven.model.InputLocationTracker
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * 
     *             
     *             Whether any configuration should be propagated
     * to child POMs. Note: While the type
     *             of this field is String for
     * technical reasons, the semantic type is actually
     *             Boolean. Default value is
     * true.
     *             
     *           
     */
    private String inherited;

    /**
     * 
     *             
     *             

The configuration as DOM object.

*

By default, every element content is trimmed, * but starting with Maven 3.1.0, you can add * xml:space="preserve" to elements * you want to preserve whitespace.

*

You can control how child POMs inherit * configuration from parent POMs by adding * combine.children * or combine.self attributes to the * children of the configuration element:

*
    *
  • combine.children: available * values are merge (default) and * append,
  • *
  • combine.self: available values * are merge (default) and * override.
  • *
*

See POM * Reference documentation and * Xpp3DomUtils * for more information.

* * */ private Object configuration; /** * Field locations. */ private java.util.Map locations; //-----------/ //- Methods -/ //-----------/ /** * Method clone. * * @return ConfigurationContainer */ public ConfigurationContainer clone() { try { ConfigurationContainer copy = (ConfigurationContainer) super.clone(); if ( this.configuration != null ) { copy.configuration = new org.codehaus.plexus.util.xml.Xpp3Dom( (org.codehaus.plexus.util.xml.Xpp3Dom) this.configuration ); } if ( copy.locations != null ) { copy.locations = new java.util.LinkedHashMap( copy.locations ); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- ConfigurationContainer clone() /** * Get

The configuration as DOM object.

*

By default, every element content is trimmed, * but starting with Maven 3.1.0, you can add * xml:space="preserve" to elements * you want to preserve whitespace.

*

You can control how child POMs inherit * configuration from parent POMs by adding * combine.children * or combine.self attributes to the * children of the configuration element:

*
    *
  • combine.children: available * values are merge (default) and * append,
  • *
  • combine.self: available values * are merge (default) and * override.
  • *
*

See POM * Reference documentation and * Xpp3DomUtils * for more information.

* * @return Object */ public Object getConfiguration() { return this.configuration; } //-- Object getConfiguration() /** * Get whether any configuration should be propagated to child * POMs. Note: While the type * of this field is String for * technical reasons, the semantic type is actually * Boolean. Default value is * true. * * @return String */ public String getInherited() { return this.inherited; } //-- String getInherited() /** * * * @param key * @return InputLocation */ public InputLocation getLocation( Object key ) { return ( locations != null ) ? locations.get( key ) : null; } //-- InputLocation getLocation( Object ) /** * Set

The configuration as DOM object.

*

By default, every element content is trimmed, * but starting with Maven 3.1.0, you can add * xml:space="preserve" to elements * you want to preserve whitespace.

*

You can control how child POMs inherit * configuration from parent POMs by adding * combine.children * or combine.self attributes to the * children of the configuration element:

*
    *
  • combine.children: available * values are merge (default) and * append,
  • *
  • combine.self: available values * are merge (default) and * override.
  • *
*

See POM * Reference documentation and * Xpp3DomUtils * for more information.

* * @param configuration */ public void setConfiguration( Object configuration ) { this.configuration = configuration; } //-- void setConfiguration( Object ) /** * Set whether any configuration should be propagated to child * POMs. Note: While the type * of this field is String for * technical reasons, the semantic type is actually * Boolean. Default value is * true. * * @param inherited */ public void setInherited( String inherited ) { this.inherited = inherited; } //-- void setInherited( String ) /** * * * @param key * @param location */ public void setLocation( Object key, InputLocation location ) { if ( location != null ) { if ( this.locations == null ) { this.locations = new java.util.LinkedHashMap(); } this.locations.put( key, location ); } } //-- void setLocation( Object, InputLocation ) public boolean isInherited() { return ( inherited != null ) ? Boolean.parseBoolean( inherited ) : true; } public void setInherited( boolean inherited ) { this.inherited = String.valueOf( inherited ); } private boolean inheritanceApplied = true; public void unsetInheritanceApplied() { this.inheritanceApplied = false; } public boolean isInheritanceApplied() { return inheritanceApplied; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy