Interface JythonMap
- All Known Implementing Classes:
- AbstractJythonMap,- AbstractMutableJythonMap,- DotReferenceJythonMap,- PropertyTreeScriptWrapper,- PropertyTreeScriptWrapper.ObjectWrapper,- PyJsonObjectAdapter
public interface JythonMap
- 
Method SummaryModifier and TypeMethodDescriptionboolean__contains__(org.python.core.PyObject pyKey) org.python.core.PyObject__finditem__(int key) Look up and return the specified key.org.python.core.PyObject__finditem__(String key) Look up and return the specified key.org.python.core.PyObject__finditem__(org.python.core.PyObject pyKey) Look up and return the specified key.org.python.core.PyObject__iter__()Returns an iterator over this mapping.int__len__()org.python.core.PyObjectget(org.python.core.PyObject pyKey) Get the value for the specified key, orPyNoneif there was no result.org.python.core.PyObjectget(org.python.core.PyObject pyKey, org.python.core.PyObject def) Get the value for the specified key, ordefaultif the key was not present.booleanhas_key(org.python.core.PyObject pyKey) org.python.core.PyListitems()org.python.core.PyObjectorg.python.core.PyObjectiterkeys()org.python.core.PyObjectorg.python.core.PyListkeys()toString()org.python.core.PyListvalues()
- 
Method Details- 
keysorg.python.core.PyList keys()- Returns:
- A list of keys
 
- 
iterkeysorg.python.core.PyObject iterkeys()- Returns:
- an Iterable of keys; see Java2PyIterator
 
- 
valuesorg.python.core.PyList values()- Returns:
- a list of values
 
- 
itervaluesorg.python.core.PyObject itervalues()- Returns:
- an Iterable of values; see Java2PyIterator
 
- 
itemsorg.python.core.PyList items()- Returns:
- a list of items; should be a PyTuple consisting of key: value pairs
 
- 
iteritemsorg.python.core.PyObject iteritems()- Returns:
- an Iterable of items; see Java2PyIterator
 
- 
has_keyboolean has_key(org.python.core.PyObject pyKey) - Returns:
- trueif the underlying map has the requisite key. Usage is generally discouraged - the Pythonic approach is to use- key in mapping.
 
- 
getorg.python.core.PyObject get(org.python.core.PyObject pyKey) Get the value for the specified key, orPyNoneif there was no result. Should not throw an exception.- Parameters:
- pyKey- The key, which may be a string (- PyObject.asString()or a numeric index (- PyObject.asInt()
 
- 
getorg.python.core.PyObject get(org.python.core.PyObject pyKey, org.python.core.PyObject def) Get the value for the specified key, ordefaultif the key was not present.- Parameters:
- pyKey- The pyKey, which may be a string (- PyObject.asString()or a numeric index (- PyObject.asInt()
 
- 
__iter__org.python.core.PyObject __iter__()Returns an iterator over this mapping. For 'dictionary' like classes, should just be the keys.
- 
__contains__boolean __contains__(org.python.core.PyObject pyKey) - Returns:
- trueif the underlying map has the requisite key
 
- 
__len__int __len__()- Returns:
- the length of this mapping.
 
- 
__finditem__Look up and return the specified key.- Throws:
- org.python.core.PyException
 
- 
__finditem__org.python.core.PyObject __finditem__(org.python.core.PyObject pyKey) throws org.python.core.PyException Look up and return the specified key.- Throws:
- org.python.core.PyException
 
- 
__finditem__org.python.core.PyObject __finditem__(int key) throws org.python.core.PyException Look up and return the specified key.- Throws:
- org.python.core.PyException
 
- 
toStringString toString()
 
-