Class Index | File Index

Classes


Class nl.sara.webdav.Privilege

WebDAV ACL privilege
Defined in: privilege.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
The namespace
 
The tag name
 
A NodeList with the value of this privilege
Method Summary
Method Attributes Method Name and Description
<static>  
nl.sara.webdav.Privilege.addCodec(codec)
Adds functions to encode or decode properties This allows exact control in how Privilege.xmlvalue is parsed when getParsedValue() is called and how XML is rebuild when setValueAndRebuildXml() is called.
 
Parses the xmlvalue If a codec for this privilege is specified, it will use this codec to parse the XML nodes.
 
Sets a new value and rebuilds xmlvalue If a codec for this privilege is specified, it will use this codec to rebuild xmlvallue.
 
Overloads the default toString() method so it returns the value of this privilege
Class Detail
nl.sara.webdav.Privilege(xmlNode)
Parameters:
{Node} xmlNode Optional
Optional; the xmlNode describing the privilege object
Field Detail
{String} namespace
The namespace

{String} tagname
The tag name

{NodeList} xmlvalue
A NodeList with the value of this privilege
Method Detail
<static> {void} nl.sara.webdav.Privilege.addCodec(codec)
Adds functions to encode or decode properties This allows exact control in how Privilege.xmlvalue is parsed when getParsedValue() is called and how XML is rebuild when setValueAndRebuildXml() is called. You can specify two functions: 'fromXML and 'toXML'. These should be complementary. That is, toXML should be able to create a NodeList based on the output of fromXML. For example: A == toXML(fromXML(A)) && B == fromXML(toXML(B))
Parameters:
{nl.sara.webdav.Codec} codec
The codec to add
Returns:
{void}

{mixed} getParsedValue()
Parses the xmlvalue If a codec for this privilege is specified, it will use this codec to parse the XML nodes. Else it will attempt to parse it as text or CDATA elements.
Returns:
{mixed} If a codec is specified, the return type depends on that codec. If no codec is specified and at least one node in xmlvalue is not a text or CDATA node, it will return undefined. If xmlvalue is empty, it will return null.

{void} setValueAndRebuildXml(value)
Sets a new value and rebuilds xmlvalue If a codec for this privilege is specified, it will use this codec to rebuild xmlvallue. Else it will attempt to create one CDATA element with the string value of whatever was fiven as parameter.
Parameters:
{mixed} value
The object to base the xmlvalue on
Returns:
{void}

{String} toString()
Overloads the default toString() method so it returns the value of this privilege
Returns:
{String} A string representation of this privilege

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 23 2014 15:51:05 GMT+0200 (CEST)