|
|||||||||
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 FormField 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.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object get(int idx, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public boolean has(java.lang.String name, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
public boolean has(int index, org.mozilla.javascript.Scriptable start)
has
in interface org.mozilla.javascript.Scriptable
has
in class org.mozilla.javascript.ScriptableObject
public java.lang.Object[] getIds()
getIds
in interface org.mozilla.javascript.Scriptable
getIds
in class org.mozilla.javascript.ScriptableObject
public long getLength()
public java.lang.String href(java.lang.Object action) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public int contains(java.lang.Object obj)
obj
- the element to check
public java.lang.String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in class org.mozilla.javascript.ScriptableObject
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getDefaultValue(java.lang.Class hint)
getDefaultValue
in interface org.mozilla.javascript.Scriptable
getDefaultValue
in class org.mozilla.javascript.ScriptableObject
hint
- the type hint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |