Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | Static Public Member Functions | List of all members
XalanParsedURI Class Reference

URI handling (hopefully) according to RFC2396. More...

#include <XalanParsedURI.hpp>

Public Types

enum  eComponent { d_scheme = 1, d_authority = 2, d_query = 4, d_fragment = 8 }
 

Public Member Functions

 XalanParsedURI (MemoryManager &theManager)
 Default constructor. More...
 
 XalanParsedURI (const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen, MemoryManager &theManager)
 Constructor which parses the passed in uri. More...
 
 XalanParsedURI (const XalanDOMString &uriString, MemoryManager &theManager)
 Constructor which parses the passed in uri. More...
 
MemoryManager & getMemoryManager ()
 
void parse (const XalanDOMChar *uriString, XalanDOMString::size_type uriStringLen)
 Parse the passed in uri. More...
 
void parse (const XalanDOMString &uriString)
 Parse the passed in uri. More...
 
XalanDOMStringmake (XalanDOMString &theResult) const
 Reassemble the uri components to make a complete URI. More...
 
void resolve (const XalanParsedURI &base)
 Resolve this URI relative to another, according to RFC2396. More...
 
void resolve (const XalanDOMChar *base, const XalanDOMString::size_type baseLen)
 Resolve this URI relative to another. More...
 
void resolve (const XalanDOMString &base)
 Resolve this URI relative to another. More...
 
const XalanDOMStringgetScheme () const
 Get the scheme component. More...
 
bool isSchemeDefined () const
 See if the scheme component is defined. More...
 
void setScheme (const XalanDOMChar *scheme)
 Set the scheme component. More...
 
void setScheme (const XalanDOMString &scheme)
 Set the scheme component. More...
 
const XalanDOMStringgetAuthority () const
 Get the authority component. More...
 
bool isAuthorityDefined () const
 See if the authority component is defined. More...
 
void setAuthority (const XalanDOMChar *authority)
 Set the authority component. More...
 
void setAuthority (const XalanDOMString &authority)
 Set the authority component. More...
 
const XalanDOMStringgetPath () const
 Get the path component. More...
 
void setPath (const XalanDOMChar *path)
 Set the path component. More...
 
void setPath (const XalanDOMString &path)
 Set the path component. More...
 
const XalanDOMStringgetQuery () const
 Get function to get the query component. More...
 
bool isQueryDefined () const
 See if the query component is defined. More...
 
void setQuery (const XalanDOMChar *query)
 Set the query component. More...
 
void setQuery (const XalanDOMString &query)
 Set the query component. More...
 
const XalanDOMStringgetFragment () const
 Get the fragment component. More...
 
bool isFragmentDefined () const
 See if the fragment component is defined. More...
 
void setFragment (const XalanDOMChar *fragment)
 Set the fragment component. More...
 
void setFragment (const XalanDOMString &fragment)
 Set the fragment component. More...
 
unsigned int getDefined () const
 Get the defined components mask. More...
 
void setDefined (unsigned int defined)
 Set the defined components mask. More...
 

Static Public Member Functions

static XalanDOMStringresolve (const XalanDOMChar *relative, XalanDOMString::size_type relativeLen, const XalanDOMChar *base, XalanDOMString::size_type baseLen, XalanDOMString &theResult)
 Resolve the one URI relative to another. More...
 
static XalanDOMStringresolve (const XalanDOMString &relative, const XalanDOMString &base, XalanDOMString &theResult)
 Resolve the one URI relative to another. More...
 

Detailed Description

URI handling (hopefully) according to RFC2396.

Definition at line 41 of file XalanParsedURI.hpp.

Member Enumeration Documentation

◆ eComponent

Enumerator
d_scheme 
d_authority 
d_query 
d_fragment 

Definition at line 53 of file XalanParsedURI.hpp.

Constructor & Destructor Documentation

◆ XalanParsedURI() [1/3]

XalanParsedURI::XalanParsedURI ( MemoryManager &  theManager)
inline

Default constructor.

Definition at line 65 of file XalanParsedURI.hpp.

◆ XalanParsedURI() [2/3]

XalanParsedURI::XalanParsedURI ( const XalanDOMChar *  uriString,
XalanDOMString::size_type  uriStringLen,
MemoryManager &  theManager 
)
inline

Constructor which parses the passed in uri.

Parameters
uriStringURI to parse
uriStringLenLength of the URI string

Definition at line 81 of file XalanParsedURI.hpp.

◆ XalanParsedURI() [3/3]

XalanParsedURI::XalanParsedURI ( const XalanDOMString uriString,
MemoryManager &  theManager 
)
inline

Constructor which parses the passed in uri.

Parameters
uriStringURI to parse

Definition at line 100 of file XalanParsedURI.hpp.

Member Function Documentation

◆ getAuthority()

const XalanDOMString& XalanParsedURI::getAuthority ( ) const
inline

Get the authority component.

Definition at line 252 of file XalanParsedURI.hpp.

◆ getDefined()

unsigned int XalanParsedURI::getDefined ( ) const
inline

Get the defined components mask.

Definition at line 378 of file XalanParsedURI.hpp.

◆ getFragment()

const XalanDOMString& XalanParsedURI::getFragment ( ) const
inline

Get the fragment component.

Definition at line 344 of file XalanParsedURI.hpp.

◆ getMemoryManager()

MemoryManager& XalanParsedURI::getMemoryManager ( )
inline

Definition at line 114 of file XalanParsedURI.hpp.

◆ getPath()

const XalanDOMString& XalanParsedURI::getPath ( ) const
inline

Get the path component.

Definition at line 286 of file XalanParsedURI.hpp.

◆ getQuery()

const XalanDOMString& XalanParsedURI::getQuery ( ) const
inline

Get function to get the query component.

Definition at line 310 of file XalanParsedURI.hpp.

◆ getScheme()

const XalanDOMString& XalanParsedURI::getScheme ( ) const
inline

Get the scheme component.

Definition at line 218 of file XalanParsedURI.hpp.

◆ isAuthorityDefined()

bool XalanParsedURI::isAuthorityDefined ( ) const
inline

See if the authority component is defined.

Definition at line 260 of file XalanParsedURI.hpp.

◆ isFragmentDefined()

bool XalanParsedURI::isFragmentDefined ( ) const
inline

See if the fragment component is defined.

Definition at line 352 of file XalanParsedURI.hpp.

◆ isQueryDefined()

bool XalanParsedURI::isQueryDefined ( ) const
inline

See if the query component is defined.

Definition at line 318 of file XalanParsedURI.hpp.

◆ isSchemeDefined()

bool XalanParsedURI::isSchemeDefined ( ) const
inline

See if the scheme component is defined.

Definition at line 226 of file XalanParsedURI.hpp.

◆ make()

XalanDOMString& XalanParsedURI::make ( XalanDOMString theResult) const

Reassemble the uri components to make a complete URI.

Returns
The reassembled URI

◆ parse() [1/2]

void XalanParsedURI::parse ( const XalanDOMChar *  uriString,
XalanDOMString::size_type  uriStringLen 
)

Parse the passed in uri.

Parameters
uriStringURI to parse
uriStringLenLength of the URI string

◆ parse() [2/2]

void XalanParsedURI::parse ( const XalanDOMString uriString)
inline

Parse the passed in uri.

Parameters
uriStringURI to parse
uriStringLenLength of the URI string

Definition at line 135 of file XalanParsedURI.hpp.

◆ resolve() [1/5]

void XalanParsedURI::resolve ( const XalanParsedURI base)

Resolve this URI relative to another, according to RFC2396.

Parameters
baseThe base URI to use during resolution.

◆ resolve() [2/5]

void XalanParsedURI::resolve ( const XalanDOMChar *  base,
const XalanDOMString::size_type  baseLen 
)
inline

Resolve this URI relative to another.

Parameters
baseThe base URI string
baseLenThe length of the base URI

Definition at line 161 of file XalanParsedURI.hpp.

◆ resolve() [3/5]

void XalanParsedURI::resolve ( const XalanDOMString base)
inline

Resolve this URI relative to another.

Parameters
baseThe base URI string

Definition at line 175 of file XalanParsedURI.hpp.

◆ resolve() [4/5]

static XalanDOMString& XalanParsedURI::resolve ( const XalanDOMChar *  relative,
XalanDOMString::size_type  relativeLen,
const XalanDOMChar *  base,
XalanDOMString::size_type  baseLen,
XalanDOMString theResult 
)
static

Resolve the one URI relative to another.

The URI string to resolve The lengh of the relative URI string The base URI string The length of the base URI string

◆ resolve() [5/5]

static XalanDOMString& XalanParsedURI::resolve ( const XalanDOMString relative,
const XalanDOMString base,
XalanDOMString theResult 
)
inlinestatic

Resolve the one URI relative to another.

The URI string to resolve The base URI string

Definition at line 206 of file XalanParsedURI.hpp.

◆ setAuthority() [1/2]

void XalanParsedURI::setAuthority ( const XalanDOMChar *  authority)
inline

Set the authority component.

Also sets the authority defined flag.

Definition at line 268 of file XalanParsedURI.hpp.

◆ setAuthority() [2/2]

void XalanParsedURI::setAuthority ( const XalanDOMString authority)
inline

Set the authority component.

Also sets the authority defined flag.

Definition at line 277 of file XalanParsedURI.hpp.

◆ setDefined()

void XalanParsedURI::setDefined ( unsigned int  defined)
inline

Set the defined components mask.

Definition at line 386 of file XalanParsedURI.hpp.

◆ setFragment() [1/2]

void XalanParsedURI::setFragment ( const XalanDOMChar *  fragment)
inline

Set the fragment component.

Also sets the fragment defined flag.

Definition at line 360 of file XalanParsedURI.hpp.

◆ setFragment() [2/2]

void XalanParsedURI::setFragment ( const XalanDOMString fragment)
inline

Set the fragment component.

Also sets the fragment defined flag.

Definition at line 369 of file XalanParsedURI.hpp.

◆ setPath() [1/2]

void XalanParsedURI::setPath ( const XalanDOMChar *  path)
inline

Set the path component.

Definition at line 294 of file XalanParsedURI.hpp.

◆ setPath() [2/2]

void XalanParsedURI::setPath ( const XalanDOMString path)
inline

Set the path component.

Definition at line 302 of file XalanParsedURI.hpp.

◆ setQuery() [1/2]

void XalanParsedURI::setQuery ( const XalanDOMChar *  query)
inline

Set the query component.

Also sets the query defined flag.

Definition at line 326 of file XalanParsedURI.hpp.

◆ setQuery() [2/2]

void XalanParsedURI::setQuery ( const XalanDOMString query)
inline

Set the query component.

Also sets the query defined flag.

Definition at line 335 of file XalanParsedURI.hpp.

◆ setScheme() [1/2]

void XalanParsedURI::setScheme ( const XalanDOMChar *  scheme)
inline

Set the scheme component.

Also sets the scheme defined flag.

Definition at line 234 of file XalanParsedURI.hpp.

◆ setScheme() [2/2]

void XalanParsedURI::setScheme ( const XalanDOMString scheme)
inline

Set the scheme component.

Also sets the scheme defined flag.

Definition at line 243 of file XalanParsedURI.hpp.


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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo