|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
helma.scripting.rhino.PathWrapper
public class PathWrapper
This class wraps around instances of helma.framework.core.RequestPath and exposes them in an array-like fashion to the JavaScript runtime.
RequestPath,
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 |
| Constructor Summary | |
|---|---|
PathWrapper(RhinoCore core)
Zero arg constructor for creating the PathWrapper prototype. |
|
| Method Summary | |
|---|---|
int |
contains(java.lang.Object obj)
Checks if the given object is contained in the request path |
java.lang.Object |
get(int idx,
org.mozilla.javascript.Scriptable start)
Returns a path object in the wrapped path by property name. |
java.lang.Object |
get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
Returns a path object in the wrapped path by property name. |
java.lang.String |
getClassName()
|
java.lang.Object |
getDefaultValue(java.lang.Class hint)
Return a primitive representation for this object. |
java.lang.Object[] |
getIds()
Returns a list of array indices 0..length-1. |
long |
getLength()
Getter for length property. |
boolean |
has(int index,
org.mozilla.javascript.Scriptable start)
Checks if an object with the given index is contained in the path. |
boolean |
has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
Checks if an object with the given name is contained in the path. |
java.lang.String |
href(java.lang.Object action)
Returns the wrapped path rendered as URL path. |
java.lang.String |
toString()
|
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, 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, wait, wait, wait |
| Constructor Detail |
|---|
public PathWrapper(RhinoCore core)
throws org.mozilla.javascript.PropertyException,
java.lang.NoSuchMethodException
org.mozilla.javascript.PropertyException
java.lang.NoSuchMethodException| Method Detail |
|---|
public java.lang.Object get(java.lang.String name,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObject
public java.lang.Object get(int idx,
org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObject
public boolean has(java.lang.String name,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObject
public boolean has(int index,
org.mozilla.javascript.Scriptable start)
has in interface org.mozilla.javascript.Scriptablehas in class org.mozilla.javascript.ScriptableObjectpublic java.lang.Object[] getIds()
getIds in interface org.mozilla.javascript.ScriptablegetIds in class org.mozilla.javascript.ScriptableObjectpublic long getLength()
public java.lang.String href(java.lang.Object action)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic int contains(java.lang.Object obj)
obj - the element to check
public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getDefaultValue(java.lang.Class hint)
getDefaultValue in interface org.mozilla.javascript.ScriptablegetDefaultValue in class org.mozilla.javascript.ScriptableObjecthint - the type hint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||