|
Rabbit 1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--HopObject | +--XmlMap
A simple HopObject-based, XML-powered property manager.
Its properties are handled as XML elements containing
the corresponding XML-encoded values.
Defined in .jsdoc/XmlMap.js
Fields inherited from class HopObject |
cache, _id, _parent, _prototype
|
Constructor Summary | |
XmlMap
()
Constructs a new XmlMap instance. |
Method Summary | |
Object
|
get(<String> key)
Returns the value of a property of the XmlMap instance. |
HopObject
|
getAll()
Returns the cached property map of the XmlMap instance. |
String
|
getXmlRef()
Gets the name of the property that holds the XML content for this object. |
Array
|
keys()
Get all valid keys of the XmlMap instance. |
void
|
remove(<String> key)
Removes a property from the cache object and updates the XML content at the parent object. |
void
|
removeAll()
Removes all properties and values from the XmlMap instance. |
void
|
set(<String> key, <Object> value)
Sets a property of the cache object and updates the XML content at the parent object. |
Boolean
|
setAll(<HopObject> obj)
Replaces the whole XML-encoded content. |
Number
|
size()
Gets the amount of elements contained by the XmlMap instance. |
String
|
toSource()
Returns the source of the underlying HopObject of the XmlMap instance. |
String
|
toString()
Returns a string representation of the XmlMap instance. |
String
|
valueOf()
Gets the raw, XML-encoded content. |
Methods inherited from class HopObject |
add, addAt, clearCache, contains, count, editor, getById, getChildElement, href, invalidate, list, onRequest, persist, prefetchChildren, removeChild, renderSkin, renderSkinAsString, setParent
|
Constructor Detail |
XmlMap()
Method Detail |
Object get(<String> key)
key
- The name of the desired property
HopObject getAll()
String getXmlRef()
Array keys()
void remove(<String> key)
key
- The name of the desired property
void removeAll()
void set(<String> key, <Object> value)
key
- The name of the desired property
value
- The future value of the property
Boolean setAll(<HopObject> obj)
obj
- The underlying HopObject
Number size()
String toSource()
String toString()
String valueOf()
|
Rabbit 1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |