org.codehaus.aspectwerkz.xmldef.definition
Class AdviceDefinition

java.lang.Object
  extended byorg.codehaus.aspectwerkz.xmldef.definition.AdviceDefinition
All Implemented Interfaces:
java.io.Serializable

public class AdviceDefinition
extends java.lang.Object
implements java.io.Serializable

Holds the advice definition.

Author:
Jonas Bonér
See Also:
Serialized Form

Constructor Summary
AdviceDefinition()
           
 
Method Summary
 void addParameter(java.lang.String name, java.lang.String value)
          Adds a new parameter to the advice.
 java.lang.String getAdviceClassName()
          Returns the class name of the advice.
 java.lang.String getAttribute()
          Returns the attribute.
 java.lang.String getDeploymentModel()
          Returns the the deployment model for the advice
 java.lang.String getName()
          Returns the name of the advice.
 java.util.Map getParameters()
          Returns the parameters as a Map.
 void setAdviceClassName(java.lang.String adviceClassName)
          Sets the class name of the advice.
 void setAttribute(java.lang.String attribute)
          Sets the attribute.
 void setDeploymentModel(java.lang.String deploymentModel)
          Sets the deployment model for the advice.
 void setName(java.lang.String name)
          Sets the name of the advice.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdviceDefinition

public AdviceDefinition()
Method Detail

getName

public java.lang.String getName()
Returns the name of the advice.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name of the advice.

Parameters:
name - the name

getAdviceClassName

public java.lang.String getAdviceClassName()
Returns the class name of the advice.

Returns:
the class name of the advice

setAdviceClassName

public void setAdviceClassName(java.lang.String adviceClassName)
Sets the class name of the advice.

Parameters:
adviceClassName - the class name of the advice

getDeploymentModel

public java.lang.String getDeploymentModel()
Returns the the deployment model for the advice

Returns:
the deployment model

setDeploymentModel

public void setDeploymentModel(java.lang.String deploymentModel)
Sets the deployment model for the advice.

Parameters:
deploymentModel - the deployment model

getAttribute

public java.lang.String getAttribute()
Returns the attribute.

Returns:
the attribute

setAttribute

public void setAttribute(java.lang.String attribute)
Sets the attribute.

Parameters:
attribute - the attribute

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String value)
Adds a new parameter to the advice.

Parameters:
name - the name of the parameter
value - the value for the parameter

getParameters

public java.util.Map getParameters()
Returns the parameters as a Map.

Returns:
the parameters


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.