Package org.alfresco.repo.jscript
Class Behaviour
- java.lang.Object
-
- org.alfresco.repo.jscript.Behaviour
-
- All Implemented Interfaces:
java.io.Serializable,Scopeable
public class Behaviour extends java.lang.Object implements Scopeable, java.io.Serializable
Object representing the behaviour information- Author:
- Roy Wetherall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Behaviour(ServiceRegistry services, java.lang.String name, java.lang.Object[] args)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable[]getArgs()The argument valuesjava.lang.StringgetName()Get the policy namevoidsetScope(org.mozilla.javascript.Scriptable scope)Set the Scriptable global scope
-
-
-
Constructor Detail
-
Behaviour
public Behaviour(ServiceRegistry services, java.lang.String name, java.lang.Object[] args)
Constructor- Parameters:
services- the service registryname- the name of the policy associated with this behaviourargs- the argument values
-
-
Method Detail
-
setScope
public void setScope(org.mozilla.javascript.Scriptable scope)
Description copied from interface:ScopeableSet the Scriptable global scope- Specified by:
setScopein interfaceScopeable- Parameters:
scope- relative global scope- See Also:
Scopeable.setScope(org.mozilla.javascript.Scriptable)
-
getName
public java.lang.String getName()
Get the policy name- Returns:
- the name of the policy
-
getArgs
public java.io.Serializable[] getArgs()
The argument values- Returns:
- array containing the argument values
-
-