org.apache.hivemind.definition.impl
Class ConfigurationPointDefinitionImpl

java.lang.Object
  extended by org.apache.hivemind.definition.impl.ExtensionPointDefinitionImpl
      extended by org.apache.hivemind.definition.impl.ConfigurationPointDefinitionImpl
All Implemented Interfaces:
ConfigurationPointDefinition, ExtensionPointDefinition, Locatable

public class ConfigurationPointDefinitionImpl
extends ExtensionPointDefinitionImpl
implements ConfigurationPointDefinition

Default implementation of ConfigurationPointDefinition.

Author:
Achim Huegen

Constructor Summary
ConfigurationPointDefinitionImpl(ModuleDefinition module)
           
ConfigurationPointDefinitionImpl(ModuleDefinition module, java.lang.String id, Location location, Visibility visibility, java.lang.String containerClassName, Occurances expectedContributions)
           
 
Method Summary
 void addContribution(ContributionDefinition contribution)
          Adds a contribution.
 void addParser(ConfigurationParserDefinition parser)
          Adds a parser definition.
 java.lang.String getConfigurationTypeName()
           
 java.util.Collection getContributions()
           
 Occurances getExpectedContributions()
           
 ConfigurationParserDefinition getParser(java.lang.String inputFormat)
          Returns the parsers which is responsible for processing the specified inputFormat.
 java.util.Collection getParsers()
           
 void setConfigurationTypeName(java.lang.String containerClassName)
          Set the class name of the configuration.
 void setExpectedContributions(Occurances expectedContributions)
          Sets the expected number of contributions to the configuration.
 
Methods inherited from class org.apache.hivemind.definition.impl.ExtensionPointDefinitionImpl
getId, getLocation, getModule, getModuleId, getQualifiedId, getVisibility, setId, setLocation, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.definition.ExtensionPointDefinition
getId, getModuleId, getQualifiedId, getVisibility
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

ConfigurationPointDefinitionImpl

public ConfigurationPointDefinitionImpl(ModuleDefinition module)

ConfigurationPointDefinitionImpl

public ConfigurationPointDefinitionImpl(ModuleDefinition module,
                                        java.lang.String id,
                                        Location location,
                                        Visibility visibility,
                                        java.lang.String containerClassName,
                                        Occurances expectedContributions)
Method Detail

getConfigurationTypeName

public java.lang.String getConfigurationTypeName()
Specified by:
getConfigurationTypeName in interface ConfigurationPointDefinition
Returns:
the fully qualified class name of the configuration type
See Also:
ConfigurationPointDefinition.getConfigurationTypeName()

setConfigurationTypeName

public void setConfigurationTypeName(java.lang.String containerClassName)
Set the class name of the configuration.


getExpectedContributions

public Occurances getExpectedContributions()
Specified by:
getExpectedContributions in interface ConfigurationPointDefinition
Returns:
the expected number of contributions to this configuration point
See Also:
ConfigurationPointDefinition.getExpectedContributions()

setExpectedContributions

public void setExpectedContributions(Occurances expectedContributions)
Sets the expected number of contributions to the configuration.


getContributions

public java.util.Collection getContributions()
Specified by:
getContributions in interface ConfigurationPointDefinition
Returns:
the contributions to this configuration as instances of ContributionDefinition
See Also:
ConfigurationPointDefinition.getContributions()

addContribution

public void addContribution(ContributionDefinition contribution)
Description copied from interface: ConfigurationPointDefinition
Adds a contribution.

Specified by:
addContribution in interface ConfigurationPointDefinition
Parameters:
contribution - the contribution
See Also:
ConfigurationPointDefinition.addContribution(org.apache.hivemind.definition.ContributionDefinition)

addParser

public void addParser(ConfigurationParserDefinition parser)
Description copied from interface: ConfigurationPointDefinition
Adds a parser definition.

Specified by:
addParser in interface ConfigurationPointDefinition
Parameters:
parser - the parser
See Also:
ConfigurationPointDefinition.addParser(org.apache.hivemind.definition.ConfigurationParserDefinition)

getParsers

public java.util.Collection getParsers()
Specified by:
getParsers in interface ConfigurationPointDefinition
Returns:
returns all parsers as instances of ConfigurationParserDefinition
See Also:
ConfigurationPointDefinition.getParsers()

getParser

public ConfigurationParserDefinition getParser(java.lang.String inputFormat)
Description copied from interface: ConfigurationPointDefinition
Returns the parsers which is responsible for processing the specified inputFormat.

Specified by:
getParser in interface ConfigurationPointDefinition
Parameters:
inputFormat - the input format
Returns:
the parser
See Also:
ConfigurationPointDefinition.getParser(java.lang.String)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.