org.codehaus.plexus.registry
Class RegistryPlexusConfiguration

java.lang.Object
  extended by org.codehaus.plexus.registry.RegistryPlexusConfiguration
All Implemented Interfaces:
org.codehaus.plexus.configuration.PlexusConfiguration

public class RegistryPlexusConfiguration
extends java.lang.Object
implements org.codehaus.plexus.configuration.PlexusConfiguration

An implementation of the Plexus Configuration interface backed by a registry.


Constructor Summary
RegistryPlexusConfiguration(Registry registry)
           
RegistryPlexusConfiguration(java.lang.String name, Registry registry, Registry parent)
           
 
Method Summary
 void addChild(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration)
           
 java.lang.String getAttribute(java.lang.String name)
           
 java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
           
 java.lang.String[] getAttributeNames()
           
 org.codehaus.plexus.configuration.PlexusConfiguration getChild(int i)
           
 org.codehaus.plexus.configuration.PlexusConfiguration getChild(java.lang.String name)
           
 org.codehaus.plexus.configuration.PlexusConfiguration getChild(java.lang.String name, boolean createChild)
           
 int getChildCount()
           
 org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren()
           
 org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren(java.lang.String name)
           
 java.lang.String getName()
           
 Registry getRegistry()
           
 java.lang.String getValue()
           
 java.lang.String getValue(java.lang.String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryPlexusConfiguration

public RegistryPlexusConfiguration(Registry registry)

RegistryPlexusConfiguration

public RegistryPlexusConfiguration(java.lang.String name,
                                   Registry registry,
                                   Registry parent)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.codehaus.plexus.configuration.PlexusConfiguration

getValue

public java.lang.String getValue()
Specified by:
getValue in interface org.codehaus.plexus.configuration.PlexusConfiguration

getValue

public java.lang.String getValue(java.lang.String defaultValue)
Specified by:
getValue in interface org.codehaus.plexus.configuration.PlexusConfiguration

getAttributeNames

public java.lang.String[] getAttributeNames()
Specified by:
getAttributeNames in interface org.codehaus.plexus.configuration.PlexusConfiguration

getAttribute

public java.lang.String getAttribute(java.lang.String name)
                              throws org.codehaus.plexus.configuration.PlexusConfigurationException
Specified by:
getAttribute in interface org.codehaus.plexus.configuration.PlexusConfiguration
Throws:
org.codehaus.plexus.configuration.PlexusConfigurationException

getAttribute

public java.lang.String getAttribute(java.lang.String name,
                                     java.lang.String defaultValue)
Specified by:
getAttribute in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChild

public org.codehaus.plexus.configuration.PlexusConfiguration getChild(java.lang.String name)
Specified by:
getChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChild

public org.codehaus.plexus.configuration.PlexusConfiguration getChild(int i)
Specified by:
getChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChild

public org.codehaus.plexus.configuration.PlexusConfiguration getChild(java.lang.String name,
                                                                      boolean createChild)
Specified by:
getChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChildren

public org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren()
Specified by:
getChildren in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChildren

public org.codehaus.plexus.configuration.PlexusConfiguration[] getChildren(java.lang.String name)
Specified by:
getChildren in interface org.codehaus.plexus.configuration.PlexusConfiguration

addChild

public void addChild(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration)
Specified by:
addChild in interface org.codehaus.plexus.configuration.PlexusConfiguration

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface org.codehaus.plexus.configuration.PlexusConfiguration

getRegistry

public Registry getRegistry()


Copyright © 2001-2011 Codehaus. All Rights Reserved.