org.apache.hivemind.definition.impl
Class ExtensionPointDefinitionImpl

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

public class ExtensionPointDefinitionImpl
extends java.lang.Object
implements ExtensionPointDefinition

Default implementation of ExtensionPointDefinition.

Author:
Achim Huegen

Constructor Summary
ExtensionPointDefinitionImpl(ModuleDefinition module)
           
ExtensionPointDefinitionImpl(ModuleDefinition module, java.lang.String id, Location location, Visibility visibility)
           
 
Method Summary
 java.lang.String getId()
           
 Location getLocation()
          Returns the location from which this object orginates, or null if not known.
protected  ModuleDefinition getModule()
           
 java.lang.String getModuleId()
           
 java.lang.String getQualifiedId()
           
 Visibility getVisibility()
           
 void setId(java.lang.String id)
          Sets the id of the extension point.
 void setLocation(Location location)
          Sets the location of the extension point.
 void setVisibility(Visibility visibility)
          Sets the visibility of the extension point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionPointDefinitionImpl

public ExtensionPointDefinitionImpl(ModuleDefinition module)

ExtensionPointDefinitionImpl

public ExtensionPointDefinitionImpl(ModuleDefinition module,
                                    java.lang.String id,
                                    Location location,
                                    Visibility visibility)
Method Detail

getModuleId

public java.lang.String getModuleId()
Specified by:
getModuleId in interface ExtensionPointDefinition
Returns:
the id of the module that defined this extension point
See Also:
ExtensionPointDefinition.getModuleId()

getModule

protected ModuleDefinition getModule()
Returns:
the module that defined this extension point.

getQualifiedId

public java.lang.String getQualifiedId()
Specified by:
getQualifiedId in interface ExtensionPointDefinition
Returns:
the qualifed id of the extension point (includes module id)
See Also:
ExtensionPointDefinition.getQualifiedId()

getId

public java.lang.String getId()
Specified by:
getId in interface ExtensionPointDefinition
Returns:
the id of the extension point (unqualified, without module id)
See Also:
ExtensionPointDefinition.getId()

setId

public void setId(java.lang.String id)
Sets the id of the extension point.

Parameters:
id - the id (unqualified without module id)

getLocation

public Location getLocation()
Description copied from interface: Locatable
Returns the location from which this object orginates, or null if not known.

Specified by:
getLocation in interface Locatable
See Also:
Locatable.getLocation()

setLocation

public void setLocation(Location location)
Sets the location of the extension point.


getVisibility

public Visibility getVisibility()
Specified by:
getVisibility in interface ExtensionPointDefinition
Returns:
the visibility of the extension point
See Also:
ExtensionPointDefinition.getVisibility()

setVisibility

public void setVisibility(Visibility visibility)
Sets the visibility of the extension point.



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