shibsp::DOMPropertySet Class Reference

DOM-based property set implementation. More...

#include <shibsp/util/DOMPropertySet.h>

Inheritance diagram for shibsp::DOMPropertySet:

shibsp::PropertySet shibsp::AbstractHandler shibsp::AssertionConsumerService List of all members.

Public Member Functions

const PropertySetgetParent () const
 Returns parent of this PropertySet, if any.
void setParent (const PropertySet *parent)
 Establishes a "parent" PropertySet to supply inherited settings.
std::pair< bool, bool > getBool (const char *name, const char *ns=NULL) const
 Returns a boolean-valued property.
std::pair< bool, const char * > getString (const char *name, const char *ns=NULL) const
 Returns a string-valued property.
std::pair< bool, const XMLCh * > getXMLString (const char *name, const char *ns=NULL) const
 Returns a Unicode string-valued property.
std::pair< bool, unsigned
int > 
getUnsignedInt (const char *name, const char *ns=NULL) const
 Returns an unsigned integer-valued property.
std::pair< bool, int > getInt (const char *name, const char *ns=NULL) const
 Returns an integer-valued property.
void getAll (std::map< std::string, const char * > &properties) const
 Returns a map of all known properties in string form.
const PropertySetgetPropertySet (const char *name, const char *ns=shibspconstants::ASCII_SHIB2SPCONFIG_NS) const
 Returns a nested property set.
const xercesc::DOMElement * getElement () const
 Returns a DOM element representing the property container, if any.
void load (const xercesc::DOMElement *e, xmltooling::logging::Category *log=NULL, xercesc::DOMNodeFilter *filter=NULL, const std::map< std::string, std::string > *remapper=NULL)
 Loads the property set from a DOM element.

Detailed Description

DOM-based property set implementation.


Member Function Documentation

void shibsp::DOMPropertySet::getAll ( std::map< std::string, const char * > &  properties  )  const [virtual]

Returns a map of all known properties in string form.

Parameters:
properties map to populate

Implements shibsp::PropertySet.

std::pair<bool,bool> shibsp::DOMPropertySet::getBool ( const char *  name,
const char *  ns = NULL 
) const [virtual]

Returns a boolean-valued property.

Parameters:
name property name
ns property namespace, or NULL
Returns:
a pair consisting of a NULL indicator and the property value iff the indicator is true

Implements shibsp::PropertySet.

const xercesc::DOMElement* shibsp::DOMPropertySet::getElement (  )  const [virtual]

Returns a DOM element representing the property container, if any.

Returns:
a DOM element, or NULL

Implements shibsp::PropertySet.

std::pair<bool,int> shibsp::DOMPropertySet::getInt ( const char *  name,
const char *  ns = NULL 
) const [virtual]

Returns an integer-valued property.

Parameters:
name property name
ns property namespace, or NULL
Returns:
a pair consisting of a NULL indicator and the property value iff the indicator is true

Implements shibsp::PropertySet.

const PropertySet* shibsp::DOMPropertySet::getParent (  )  const [virtual]

Returns parent of this PropertySet, if any.

Returns:
the parent object, or NULL

Implements shibsp::PropertySet.

const PropertySet* shibsp::DOMPropertySet::getPropertySet ( const char *  name,
const char *  ns = shibspconstants::ASCII_SHIB2SPCONFIG_NS 
) const [virtual]

Returns a nested property set.

Parameters:
name nested property set name
ns nested property set namespace, or NULL
Returns:
the nested property set, or NULL

Implements shibsp::PropertySet.

std::pair<bool,const char*> shibsp::DOMPropertySet::getString ( const char *  name,
const char *  ns = NULL 
) const [virtual]

Returns a string-valued property.

Parameters:
name property name
ns property namespace, or NULL
Returns:
a pair consisting of a NULL indicator and the property value iff the indicator is true

Implements shibsp::PropertySet.

std::pair<bool,unsigned int> shibsp::DOMPropertySet::getUnsignedInt ( const char *  name,
const char *  ns = NULL 
) const [virtual]

Returns an unsigned integer-valued property.

Parameters:
name property name
ns property namespace, or NULL
Returns:
a pair consisting of a NULL indicator and the property value iff the indicator is true

Implements shibsp::PropertySet.

std::pair<bool,const XMLCh*> shibsp::DOMPropertySet::getXMLString ( const char *  name,
const char *  ns = NULL 
) const [virtual]

Returns a Unicode string-valued property.

Parameters:
name property name
ns property namespace, or NULL
Returns:
a pair consisting of a NULL indicator and the property value iff the indicator is true

Implements shibsp::PropertySet.

void shibsp::DOMPropertySet::load ( const xercesc::DOMElement *  e,
xmltooling::logging::Category *  log = NULL,
xercesc::DOMNodeFilter *  filter = NULL,
const std::map< std::string, std::string > *  remapper = NULL 
)

Loads the property set from a DOM element.

Parameters:
e root element of property set
log optional log object for tracing
filter optional filter controls what child elements to include as nested PropertySets
remapper optional map of property rename rules for legacy property support

void shibsp::DOMPropertySet::setParent ( const PropertySet parent  )  [virtual]

Establishes a "parent" PropertySet to supply inherited settings.

Parameters:
parent the parent PropertySet to use

Implements shibsp::PropertySet.


The documentation for this class was generated from the following file:
Generated on Thu Jun 10 23:41:17 2010 for shibboleth-2.3.1 by  doxygen 1.4.7