org.codehaus.aspectwerkz.xmldef.definition
Class AspectDefinition

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

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

Holds the aspect definition.

Author:
Jonas Bonér
See Also:
Serialized Form

Constructor Summary
AspectDefinition()
           
 
Method Summary
 void addBindAdviceRule(BindAdviceRule rule)
          Adds a new bind-advice rule.
 void addBindIntroductionRule(BindIntroductionRule rule)
          Adds a new bind-introduction rule.
 void addControllerDef(ControllerDefinition controllerDef)
          Adds a new controller definition.
 void addPointcutDef(PointcutDefinition pointcut)
          Adds a new pointcut.
 java.util.List getBindAdviceRules()
          Returns a list with the bind-advice rules.
 java.util.List getBindIntroductionRules()
          Returns a list with the bind-introduction rules.
 java.util.Collection getControllerDefs()
          Returns a list with the controllers.
 java.lang.String getExtends()
          Returns the name of the aspect to extend.
 java.lang.String getName()
          Returns the pattern for the aspect
 PointcutDefinition getPointcutDef(java.lang.String pointcut)
          Returns the pointcut definition by its name.
 java.util.Collection getPointcutDefs()
          Returns a list with the pointcuts.
 boolean isAbstract()
          Checks if the aspect is abstract.
 void setAbstract(boolean anAbstract)
          Marks the aspect as abstract.
 void setExtends(java.lang.String anExtends)
          Sets the name of the aspect to extend.
 void setName(java.lang.String name)
          Sets the name for the aspect.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectDefinition

public AspectDefinition()
Method Detail

getName

public java.lang.String getName()
Returns the pattern for the aspect

Returns:
the pattern

setName

public void setName(java.lang.String name)
Sets the name for the aspect.

Parameters:
name - the name

getExtends

public java.lang.String getExtends()
Returns the name of the aspect to extend.

Returns:
the name of the aspect to extend

setExtends

public void setExtends(java.lang.String anExtends)
Sets the name of the aspect to extend.

Parameters:
anExtends - the name of the aspect to extend

getPointcutDefs

public java.util.Collection getPointcutDefs()
Returns a list with the pointcuts.

Returns:
the pointcuts

addPointcutDef

public void addPointcutDef(PointcutDefinition pointcut)
Adds a new pointcut.

Parameters:
pointcut - a pointcut

getControllerDefs

public java.util.Collection getControllerDefs()
Returns a list with the controllers.

Returns:
the controllers

addControllerDef

public void addControllerDef(ControllerDefinition controllerDef)
Adds a new controller definition.

Parameters:
controllerDef - a controller definition

getBindIntroductionRules

public java.util.List getBindIntroductionRules()
Returns a list with the bind-introduction rules.

Returns:
the bind-introduction rules

addBindIntroductionRule

public void addBindIntroductionRule(BindIntroductionRule rule)
Adds a new bind-introduction rule.

Parameters:
rule - an bind-introduction rule

getBindAdviceRules

public java.util.List getBindAdviceRules()
Returns a list with the bind-advice rules.

Returns:
the bind-advice rules

addBindAdviceRule

public void addBindAdviceRule(BindAdviceRule rule)
Adds a new bind-advice rule.

Parameters:
rule - an bind-advice rule

getPointcutDef

public PointcutDefinition getPointcutDef(java.lang.String pointcut)
Returns the pointcut definition by its name.

Parameters:
pointcut - the name of the pointcut
Returns:
the pointcut definition

isAbstract

public boolean isAbstract()
Checks if the aspect is abstract.

Returns:
boolean

setAbstract

public void setAbstract(boolean anAbstract)
Marks the aspect as abstract.

Parameters:
anAbstract - boolean


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