org.alfresco.repo.forms.script
Class ScriptFieldDefinition

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by org.alfresco.repo.forms.script.ScriptFieldDefinition
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public class ScriptFieldDefinition
extends org.mozilla.javascript.ScriptableObject

FieldDefinition JavaScript Object. This object acts as a wrapper for the Java object FieldDefinition and all of its subclasses also.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Method Summary
 java.lang.Object get(java.lang.String name, org.mozilla.javascript.Scriptable start)
          This method retrieves a named property value in the normal (Mozilla JS) way.
 java.lang.String getClassName()
           
 boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
           
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public java.lang.Object get(java.lang.String name,
                            org.mozilla.javascript.Scriptable start)
This method retrieves a named property value in the normal (Mozilla JS) way. If the named property is not found, an attempt is made to discover a Java accessor method appropriate to the named property e.g. getFoo() or isFoo() for a property named 'foo'. If such an accessor method is found, it is invoked and the value is returned. (If there are both a getFoo() and an isFoo() method, then the getFoo() method is invoked.)

Specified by:
get in interface org.mozilla.javascript.Scriptable
Overrides:
get in class org.mozilla.javascript.ScriptableObject
Parameters:
name - the named property
start - the object in which the lookup began
Returns:
the property value if found, else NOT_FOUND.
See Also:
Scriptable.get(String, Scriptable)

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface org.mozilla.javascript.Scriptable
Specified by:
getClassName in class org.mozilla.javascript.ScriptableObject
See Also:
Scriptable.getClassName()

has

public boolean has(java.lang.String name,
                   org.mozilla.javascript.Scriptable start)
Specified by:
has in interface org.mozilla.javascript.Scriptable
Overrides:
has in class org.mozilla.javascript.ScriptableObject
See Also:
Scriptable.has(String, Scriptable)


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