Package org.apache.maven.internal.xml
Class XmlPlexusConfiguration
java.lang.Object
org.apache.maven.internal.xml.XmlPlexusConfiguration
- All Implemented Interfaces:
org.codehaus.plexus.configuration.PlexusConfiguration
public class XmlPlexusConfiguration
extends Object
implements org.codehaus.plexus.configuration.PlexusConfiguration
A PlexusConfiguration implementation that wraps an XmlNode instead of copying its entire hierarchy.
This provides better performance by avoiding deep copying of the XML structure.
This implementation supports both read and write operations. When write operations are performed, new XmlNode instances are created to maintain immutability, and internal caches are cleared.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.plexus.configuration.PlexusConfigurationorg.codehaus.plexus.configuration.PlexusConfigurationvoidaddChild(org.codehaus.plexus.configuration.PlexusConfiguration configuration) getAttribute(String paramName) getAttribute(String name, String defaultValue) String[]org.codehaus.plexus.configuration.PlexusConfigurationgetChild(int i) org.codehaus.plexus.configuration.PlexusConfigurationorg.codehaus.plexus.configuration.PlexusConfigurationintorg.codehaus.plexus.configuration.PlexusConfiguration[]org.codehaus.plexus.configuration.PlexusConfiguration[]getChildren(String name) getName()getValue()voidsetAttribute(String name, String value) voidvoidorg.codehaus.plexus.configuration.PlexusConfigurationsetValueAndGetSelf(String value) static org.codehaus.plexus.configuration.PlexusConfigurationtoPlexusConfiguration(XmlNode node) toString()
-
Constructor Details
-
XmlPlexusConfiguration
-
-
Method Details
-
toPlexusConfiguration
public static org.codehaus.plexus.configuration.PlexusConfiguration toPlexusConfiguration(XmlNode node) -
getName
- Specified by:
getNamein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
setName
-
getValue
- Specified by:
getValuein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getValue
- Specified by:
getValuein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
setValue
- Specified by:
setValuein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
setValueAndGetSelf
-
setAttribute
- Specified by:
setAttributein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getAttribute
- Specified by:
getAttributein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getAttribute
- Specified by:
getAttributein interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getChild
- Specified by:
getChildin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getChild
public org.codehaus.plexus.configuration.PlexusConfiguration getChild(int i) - Specified by:
getChildin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getChild
public org.codehaus.plexus.configuration.PlexusConfiguration getChild(String child, boolean createChild) - Specified by:
getChildin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getChildren
public org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren()- Specified by:
getChildrenin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getChildren
- Specified by:
getChildrenin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
addChild
public void addChild(org.codehaus.plexus.configuration.PlexusConfiguration configuration) - Specified by:
addChildin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
addChild
-
addChild
- Specified by:
addChildin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceorg.codehaus.plexus.configuration.PlexusConfiguration
-
toString
-