org.alfresco.repo.jscript
Class Behaviour

java.lang.Object
  extended by 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

See Also:
Serialized Form

Constructor Summary
Behaviour(ServiceRegistry services, java.lang.String name, java.lang.Object[] args)
          Constructor
 
Method Summary
 java.io.Serializable[] getArgs()
          The argument values
 java.lang.String getName()
          Get the policy name
 void setScope(org.mozilla.javascript.Scriptable scope)
          Set the Scriptable global scope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Behaviour

public Behaviour(ServiceRegistry services,
                 java.lang.String name,
                 java.lang.Object[] args)
Constructor

Parameters:
services - the service registry
name - the name of the policy associated with this behaviour
args - the argument values
Method Detail

setScope

public void setScope(org.mozilla.javascript.Scriptable scope)
Description copied from interface: Scopeable
Set the Scriptable global scope

Specified by:
setScope in interface Scopeable
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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.