public class CollectionWrapper extends MBScriptableObject implements org.mozilla.javascript.Wrapper
Constructor and Description |
---|
CollectionWrapper()
Default Constructor (for rhino).
|
Modifier and Type | Method and Description |
---|---|
CollectionWrapper |
(JavaScript Function) addItem(java.lang.Object theValue)
Appends the specified element to the collection.
|
boolean |
(JavaScript Function) contains(java.lang.Object theValue)
Test collection to see if it contains a specified value.
|
int |
(JavaScript Function) indexOf(java.lang.Object theValue)
Returns the index of the value in the collection.
|
boolean |
(JavaScript Function) isEmpty()
Returns true if empty, false if not.
|
java.lang.String |
(JavaScript Function) toString()
Returns the string form of the collection.
|
CollectionIterator |
(JavaScript Getter) iterator()
Returns an iterator over the elements in this list in proper sequence.
|
int |
(JavaScript Getter) length()
Returns the number of components in the collection.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public CollectionIterator (JavaScript Getter) iterator()
public CollectionWrapper (JavaScript Function) addItem(java.lang.Object theValue) throws MalformedXmpFieldException
theValue
- the element to be appended.MalformedXmpFieldException
public boolean (JavaScript Function) contains(java.lang.Object theValue)
theValue
- The test value.public int (JavaScript Getter) length()
public boolean (JavaScript Function) isEmpty()
public int (JavaScript Function) indexOf(java.lang.Object theValue)
theValue
- public java.lang.String (JavaScript Function) toString()
Copyright © 2017 MediaBeacon, Inc. All Rights Reserved.