Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | List of all members
xalanc::AttributesImpl Class Reference

#include <xalanc/PlatformSupport/AttributesImpl.hpp>

Inheritance diagram for xalanc::AttributesImpl:
[legend]
Collaboration diagram for xalanc::AttributesImpl:
[legend]

Public Types

typedef XalanVector< AttributeVectorEntryExtended * > AttributesVectorType
 

Public Member Functions

 AttributesImpl (MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
 
virtual ~AttributesImpl ()
 
 AttributesImpl (const AttributesImpl &theSource, MemoryManager &theManager)
 
 AttributesImpl (const AttributesType &theSource, MemoryManager &theManager)
 
AttributesImploperator= (const AttributesImpl &theRHS)
 
AttributesImploperator= (const AttributesType &theRHS)
 
virtual XalanSize_t getLength () const
 
virtual const XMLCh * getURI (const XalanSize_t index) const
 
virtual const XMLCh * getLocalName (const XalanSize_t index) const
 
virtual const XMLCh * getQName (const XalanSize_t index) const
 
virtual const XMLCh * getType (const XalanSize_t index) const
 
virtual const XMLCh * getValue (const XalanSize_t index) const
 
virtual bool getIndex (const XMLCh *const uri, const XMLCh *const localPart, XalanSize_t &index) const
 
virtual int getIndex (const XMLCh *const uri, const XMLCh *const localPart) const
 
virtual bool getIndex (const XMLCh *const qName, XalanSize_t &index) const
 
virtual int getIndex (const XMLCh *const qname) const
 
virtual const XMLCh * getType (const XMLCh *const qname) const
 
virtual const XMLCh * getType (const XMLCh *const uri, const XMLCh *const localName) const
 
virtual const XMLCh * getValue (const XMLCh *const qname) const
 
virtual const XMLCh * getValue (const XMLCh *const uri, const XMLCh *const localName) const
 
MemoryManager & getMemoryManager ()
 
virtual void clear ()
 Remove all attributes from the list. More...
 
void addAttribute (const XMLCh *qname, const XMLCh *type, const XMLCh *value)
 Adds an attribute to the attribute list. More...
 
void addAttribute (const XMLCh *uri, const XMLCh *localName, const XMLCh *qname, const XMLCh *type, const XMLCh *value)
 Adds an attribute to the attribute list. More...
 
virtual bool removeAttribute (const XMLCh *qname)
 Removes an attribute from the attribute list. More...
 
void swap (AttributesImpl &theOther)
 Swap the contents of two instances. More...
 
void reserve (XalanSize_t theCount)
 Reserve room for the given number of attributes. More...
 

Detailed Description

Definition at line 48 of file AttributesImpl.hpp.

Member Typedef Documentation

Definition at line 208 of file AttributesImpl.hpp.

Constructor & Destructor Documentation

xalanc::AttributesImpl::AttributesImpl ( MemoryManager &theManager  XALAN_DEFAULT_MEMMGR)
explicit
virtual xalanc::AttributesImpl::~AttributesImpl ( )
virtual
xalanc::AttributesImpl::AttributesImpl ( const AttributesImpl theSource,
MemoryManager &  theManager 
)
xalanc::AttributesImpl::AttributesImpl ( const AttributesType theSource,
MemoryManager &  theManager 
)

Member Function Documentation

void xalanc::AttributesImpl::addAttribute ( const XMLCh *  qname,
const XMLCh *  type,
const XMLCh *  value 
)
inline

Adds an attribute to the attribute list.

Does not check for duplicates.

Parameters
qnameattribute qname
typeattribute type, "CDATA," for example
valueattribute value

Definition at line 147 of file AttributesImpl.hpp.

void xalanc::AttributesImpl::addAttribute ( const XMLCh *  uri,
const XMLCh *  localName,
const XMLCh *  qname,
const XMLCh *  type,
const XMLCh *  value 
)

Adds an attribute to the attribute list.

Does not check for duplicates.

Parameters
uriattribute namespace URI
localNameattribute local name
qnameattribute qname
typeattribute type, "CDATA," for example
valueattribute value
virtual void xalanc::AttributesImpl::clear ( )
virtual

Remove all attributes from the list.

virtual bool xalanc::AttributesImpl::getIndex ( const XMLCh *const  uri,
const XMLCh *const  localPart,
XalanSize_t &  index 
) const
virtual
virtual int xalanc::AttributesImpl::getIndex ( const XMLCh *const  uri,
const XMLCh *const  localPart 
) const
virtual
virtual bool xalanc::AttributesImpl::getIndex ( const XMLCh *const  qName,
XalanSize_t &  index 
) const
virtual
virtual int xalanc::AttributesImpl::getIndex ( const XMLCh *const  qname) const
virtual
virtual XalanSize_t xalanc::AttributesImpl::getLength ( ) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getLocalName ( const XalanSize_t  index) const
virtual
MemoryManager& xalanc::AttributesImpl::getMemoryManager ( )
inline

Definition at line 125 of file AttributesImpl.hpp.

virtual const XMLCh* xalanc::AttributesImpl::getQName ( const XalanSize_t  index) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getType ( const XalanSize_t  index) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getType ( const XMLCh *const  qname) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getType ( const XMLCh *const  uri,
const XMLCh *const  localName 
) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getURI ( const XalanSize_t  index) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getValue ( const XalanSize_t  index) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getValue ( const XMLCh *const  qname) const
virtual
virtual const XMLCh* xalanc::AttributesImpl::getValue ( const XMLCh *const  uri,
const XMLCh *const  localName 
) const
virtual
AttributesImpl& xalanc::AttributesImpl::operator= ( const AttributesImpl theRHS)
AttributesImpl& xalanc::AttributesImpl::operator= ( const AttributesType theRHS)
virtual bool xalanc::AttributesImpl::removeAttribute ( const XMLCh *  qname)
virtual

Removes an attribute from the attribute list.

Parameters
qnameattribute qname
void xalanc::AttributesImpl::reserve ( XalanSize_t  theCount)
inline

Reserve room for the given number of attributes.

Parameters
theCountThe number to reserve

Definition at line 202 of file AttributesImpl.hpp.

void xalanc::AttributesImpl::swap ( AttributesImpl theOther)
inline

Swap the contents of two instances.

This must never throw an exception.

Parameters
thOtherThe instance with which to swap.

Definition at line 190 of file AttributesImpl.hpp.


The documentation for this class was generated from the following file: